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
Show HN: A simple Wordle clone in 60 lines, using Hyperscript
41–50 of 53 posts
Re: Show HN: A simple Wordle clone in 60 lines, using Hyperscript
#42This 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.
Re: Show HN: A simple Wordle clone in 60 lines, using Hyperscript
#43Re: Show HN: A simple Wordle clone in 60 lines, using Hyperscript
#44Ed, nevermind:
> I highly suggest going to the site and viewing the source!
For chrome on Android:
view-source:https://arhamjain.com/hyperwordle/Re: Show HN: A simple Wordle clone in 60 lines, using Hyperscript
#45Earlier 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
Re: Show HN: A simple Wordle clone in 60 lines, using Hyperscript
#46Though 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
#47Earlier 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.
Re: Show HN: A simple Wordle clone in 60 lines, using Hyperscript
#48hyperscript.org@0.9.4:1 'first in first .guess' is null
Re: Show HN: A simple Wordle clone in 60 lines, using Hyperscript
#49I 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.