Coder Social home page Coder Social logo

deykun / diffle-lang Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 98.83 MB

A multilingual word game without a character limit. 🇨🇿 🇩🇪 🇬🇧 🇪🇸 🇫🇮 🇫🇷 🇮🇹 🇵🇱

Home Page: https://deykun.github.io/diffle-lang/

License: MIT License

JavaScript 0.48% HTML 5.33% SCSS 13.96% TypeScript 80.22%
dictionary wordle-like

diffle-lang's People

Contributors

dependabot[bot] avatar deykun avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

diffle-lang's Issues

Remove or make it grey characters Q X V from polish keyboard

If there are no polish characters in the word, we are making them unavailable on the keyboard. The same we could do with Q X V, since polish words does not conain them. Unless there are some which are accepted by dictionary but I tried 'quiz' or 'taxi' and they are not allowed. If this is the case, we can make them unavailable for selection.

Github pages: Uploading thousands of files as artifacts takes over 20 minutes

Because GitHub Pages are simple static sites instead of serving one huge dictionary (over 50MB) to each user. That dictionary is presliced into chunks like chunk-aaa.json, chunk-aal.json, chunk-aar.json etc.

There are around 9,000 small files just for the Polish dictionary (6,500 for spelling words and 2,500 for winning words). Deploying those files takes the majority of the time because the process of moving one file is slow.

That process should be streamlined before adding new languages to the project. Files should be zipped and unzipped, caching is possible since the dictionary doesn't change often.

Possible solutions

actions/upload-artifact#199
https://github.com/marketplace/actions/cache
https://github.com/marketplace/actions/action-zip

Spoilering used words by cheaters is possible

A new day starts at UTC time, which is the same worldwide. However, if someone moves from Poland to the UK and manually adjusts the date instead of changing the timezone in their system, they can create a shared link with a password that will display it to people in regular UTC zones.

Expected behaviour
Such spoilers should be blocked

The optional game duration is displayed in the result for the user

Some users want to know how long it took them to guess the word.

Personally, I want users to guess in the smallest number of letters because it's smart and clever, and that's what really keeps people interested in wordle-like games. Maximizing for time doesn't achieve that.

However, I collect that information to calculate the average and total time spent in different languages, so I can optionaly show it to users interested.

A source:
https://www.hejto.pl/wpis/ta-koncowka-deg-deg-miliony-mozliwosci-14-03-2024-flag-pl-diffle-difflepl-29-lit?commentId=21aa1ee3-523f-40da-8af3-e90948cb5764

Tags are missing when words are not shared

With words:

27.01.2024 – 🇵🇱 #diffle #difflepl

17 liter w 3 słowach
🟢 13  🟡 0  ⚪ 4  🔴 0

https://deykun.github.io/diffle-lang/pl?r=hkSM5MWLsh2YuEGN10ybsNnLxMWL39GbuAjL04CMuMTMuknbu9mM4USNDVCajhSI

Without them:

27.01.2024 – 

17 liter w 3 słowach
🟢 13  🟡 0  ⚪ 4  🔴 0

https://deykun.github.io/diffle-lang/pl

Incorrect hint regarding stats after winning

The hint that should appear for 5, 10, 25, 50, and 75 consecutive wins in a row for the daily challenge doesn't consider the current win but rather the previous one (it's determined before the stat is saved).

It works when we return to the screen, but generally it shows a streak of 5. But when we go to stats we will see a streak of 6 not 5, after returning we doesn't see that number at all because 6 is not promoted.

obraz

First and last letters should take precedence over coupling

Word to guess:
P I R Y T O W Y
It has "Y" 2 times.

Guessing the word "I S K R Y".

Result:

  • I and RY are green
  • RY are connected
  • Y is not marked as ending letter. ⚠️
problem

Preferred result:

  • I and R and Y are green
  • RY are not connected
  • Y is marked as an ending letter.

Validating known neighboring letters in typed words and providing hints if neighboring letters aren't typed next to each other

Now:
obraz
When the user types all the known letters, the keyboard turns green.

After:
After all known letters are typed, the word should be validated for known neighbours.

Message should be displayed:

Your word can't win, but you can use it while searching for the winning word. (winning word contains EX)

End and start affixes should be validated separately too. In the example above, we know that EX cannot be at the beginning.


Users are currently informed when they type a known wrong letter:
obraz

Udostepniony wynik - nie moje rozwiazanie

Po przejsciu do udostepniony wynik wyświetla się rozwiązanie ktore nie jest moje. Jak widaz na załączonym zrzucie mój wynik to 4 słowa, a "udostępniony" to dwa słowa.
419695224_1795965870848589_9050370405414332129_n
419175800_894962212177729_7766936613861718613_n

Missing words from dictionary

I tried using the word "Francja". Got an error saying that it's not an existing word. I suspect it's because in polish, the name of countries start with a capital letter.

Incorrect tip for the typed word - checking the order for two identical letters is broken

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.