Refactor storing answer in localstorage #126
Replies: 4 comments 4 replies
-
I'm really not worried about this to be honest. It's very easy to cheat at this game if you want to, you wouldn't even do an infinite loop of solving the game because you could just directly update the streak if you wanted to |
Beta Was this translation helpful? Give feedback.
-
As long as there is no global leaderboard, there's no point in trying to prevent cheating. If you want to cheat, you can always do it. You can always go into debug mode and either edit the local storage, or even just the source code for a screen shot. It's like buying a lockable fridge to keep yourself from eating your own ice cream. If you want to destroy your own honest achievements by cheating them, go ahead and do it. 🤷♂️ |
Beta Was this translation helpful? Give feedback.
-
I'll try to explain my POV.
Knowing you can cheat makes a lot of difference when there are sites where you can't cheat. I didn't respond since Katherine said 'shes not worried about cheating'. Subjective, i ignored But you're saying 'theres no point in preventing cheating' -- implies an objective fact... Had to disagree |
Beta Was this translation helpful? Give feedback.
-
This thread was just bumped by a spam bot (I think). But I'll take this opportunity to announce that I have actually some exciting news to share on this one: I have devised a way to encode every possible 5-letter-combination into a number that is guaranteed to be within the range of JavaScript's native "number" type, reversible into these 5 letters as well, and constructed such that the human mind cannot see or estimate from experience with other word-number pairs what the solution might be. ExamplesClose values ⇏ similar wordsBLOOM ⇆ 2.895.986.445.493 Similar words ⇏ close valuesPILED ⇆ 2.319.866.553.677 Larger values ⇏ higher alphabetical sort orderBACON ⇆ 1.892.432.892.527 Higher alphabetical sort order ⇏ larger valuesAGONY ⇆ 3.123.406.018.429 It's convoluted code, and the result is not perfect, but it does a GREAT job for exactly this purpose I think. It could also be used to implement a "Share" feature, where you can generate a link like And the cherry on the icing: since it is all just a (very convoluted, but still) basic mathematical algorithm and not for example a hard-coded dictionary key per answer, adding or removing words from the pool of solutions doesn't break anything. No need to come up with new unique ids every time you add a new word to the list of answers. But also no worries that loading ancient game states might break or months old links will stop working after that particular solution was removed from that list of answers in live. @octokatherine I'd love to keep working on this and other features, and eventually merge them back into your repo. But maintaining independently acceptable pull-requests for such big features that all build on each other (like the hints and my extreme mode) gets increasingly difficult. Please tell me if there are any plans on your side to keep this game updates, otherwise I'll "secede" my fork from yours and implement these advanced features to my liking in my own copy from now on and stop bothering you with merge requests. 🙂 (Edit: I just realized I copied all those numeric values from the output of an old implementation (my first draft); but the points are still true for the new version that I have actually implemented in my local code base.) |
Beta Was this translation helpful? Give feedback.
-
Since wordle comes up with a new word every day, you cannot write an infinite loop to keep solving the puzzle. But since Word Master allows you to play again, one can find the answer in localStorage, and write an infinite loop to keep solving the puzzle.
Demonstration: https://user-images.githubusercontent.com/13913674/154923933-0c0a6431-8bd8-43ba-95d8-5d0ad18ca6f9.mp4
Anything we can do to prevent this?? 🤔🤔
Beta Was this translation helpful? Give feedback.
All reactions