Live data from Hacker News

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

arhamjain.com

51–53 of 53 posts

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

#51
post #9

Earlier quoted context omitted.

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.

Looks good, here are some test cases off the top of my head.

guess: "SASSY", target: "BRASS", expect either "YYBGB" or "BYYGB". I believe your algorithm would return "YYYGB".

guess: "BRASS", target: "SASSY", expect "BBYGY"

guess: "ASSET", target: "BRASS", expect "YYYBB"

guess: "BRASS", target: "ASSET", expect "BBYYY"

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

#52

Earlier quoted context omitted.

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

hyperscript is ~22k gziped and cached after the first request the size is not an issue now, the runtime on the other hand...

wait is this not being compiled to js?

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

#53

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.

if it helps for reproducing: i pressed keys too fast wich was interpreted as a double tap in safari and triggered a zoom in. After zooming back to normal, the lag was even worse.
Post reply on HN