Live data from Hacker News

Show HN: A simple Wordle clone in 60 lines, using Hyperscript

arhamjain.com

41–50 of 53 posts

Re: Show HN: A simple Wordle clone in 60 lines, using Hyperscript

#41

every key press takes 4 seconds to update the ui, if this is supposed to be a showcase for hyperscript, its not doing too well.

what machine/browser are you on? the hyperscript runtime is defintely... pedestrian

i tried on ios safari, which is admittedly not a great browser

Re: Show HN: A simple Wordle clone in 60 lines, using Hyperscript

#42
post #9

This is awesome, but there's a slight bug in this implementation: Wordle won't count additional instances of a letter as wrong-position, it'll just flag them as wrong. For example, if the word is TRACE, and I guess TRACT, the first T will be green, but the second T should be black, not yellow. In this implementation, at the moment, TRACT would return GGGGY, but in Wordle it would be GGGGB. I actually made the same mi…

Oh wow, I never noticed that myself. I'll fix it once I'm at my computer, thanks for pointing it out! The fix will probably be something like if letter not in (.bg-warning in first .guess).innerText then add .bg-warning Haven't tested as I'm on my phone, but seems like a simple enough fix.

I have been trying to figure this out myself. The algorithm I'm using is to colour yellow only if the count of that letter before that occurance in the guess, is less than the count of that letter in the target word.

Re: Show HN: A simple Wordle clone in 60 lines, using Hyperscript

#45

Earlier quoted context omitted.

what machine/browser are you on? the hyperscript runtime is defintely... pedestrian

i tried on ios safari, which is admittedly not a great browser

Yeah, that must be a Safari thing. I pulled out my Nexus 5 (circa 2013) and everything feels instant. I don't have any working iOS devices lying around to test on unfortunately.

Re: Show HN: A simple Wordle clone in 60 lines, using Hyperscript

#46
Nice work! I spent some time playing with this today and used it to build a solver algorithm. It's a greedy search through the possible combinations that prioritizes words based on letter frequency and uses the hints provided to whittle down the search space.

Though not enforced by the Hyperwordle clone, the script plays the game on "hard" mode by default where all letter hints must be included in subsequent guesses. Ironically, this constraint made the algorithm more efficient, easy mode tends to take longer and fail more frequently!

Anyone have a better algo yet? https://github.com/rgkimball/wordlebot

Re: Show HN: A simple Wordle clone in 60 lines, using Hyperscript

#47
post #45

Earlier quoted context omitted.

i tried on ios safari, which is admittedly not a great browser

Yeah, that must be a Safari thing. I pulled out my Nexus 5 (circa 2013) and everything feels instant. I don't have any working iOS devices lying around to test on unfortunately.

My Firefox on specced out Intel MBP lags noticeably

Re: Show HN: A simple Wordle clone in 60 lines, using Hyperscript

#49

I found a bug. When there is a repeated character in the guess but not in the word, you’re given an incorrect color key. E.g. Word was GROUP I guessed SPOON Output was green O at location 3 and yellow at 4. Happened for a couple more guesses making me think there is another O eventually to realize there are no more spots and it’s a bug.

wordle-play.com fails the test. wordlegame.org passes. Implementations disagree, but I agree with how you are defining it should work.
Post reply on HN