Live data from Hacker News

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

arhamjain.com

11–20 of 53 posts

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

#12
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.

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

#15

Not take away from the brevity of the code, but these 60 lines translate into 168KB of JavaScript.

Wait until you find out how big the browser that runs that code is!

Do you download the browser on every request?

Of course 168kB is still nothing but your comparison is flawed.

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

#16

Not take away from the brevity of the code, but these 60 lines translate into 168KB of JavaScript.

Wait until you find out how big the browser that runs that code is!

This is a blithe statement - the browser isn't downloaded whenever a user navigates to the page. 1/6th of a MB for a page this simple is pretty substantial.

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

#17

Earlier quoted context omitted.

Wait until you find out how big the browser that runs that code is!

Do you download the browser on every request? Of course 168kB is still nothing but your comparison is flawed.

Don’t give web developers any ideas.

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

#18

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…

Haha, I made the exact same mistake in my wordle solver. Well, not a mistake since that's what the worlde docs say.
Post reply on HN