back
19 comments
Something that could be pretty cool to do with this is generate a `og:image` based on the state in the URL. This way, the actual game would render in iMessage & all rather than having to screenshot it.
Great idea! I got an ugly prototype of that working (at least in discord)

The code change: https://www.val.town/pulls/8cb2f7a0-14aa-11ef-95c7-cab58f787...

Here is the link to the actual instance of static wordle (No JavaScript required):

https://stevekrouse-staticwordle.web.val.run/

There are bugs in how it handles duplicate letters. See this example, https://stevekrouse-staticwordle.web.val.run/eyJhbnN3ZXIiOiJ...
Yeah the duplicate letters is bugged and also it lets you enter invalid words.
"Static" means no app code on server.

Every website in history runs app code on client (HTML is a programming language)

Not once has the been my definition of a static site. Static to me has always been flat files that do not need to have a language on the server process them like PHP making calls to a MySQL database. If you download a static site and then clicked Save from the browser, you could then open the saved HTML content and it appear exactly as it did from calling the URL.
> do not need to have a language on the server process them like PHP making calls to a MySQL database.

Yes, that's what I said.

> If you download a static site and then clicked Save from the browser, you could then open the saved HTML content and it appear exactly as it did from calling the URL.

I don't really follow this. You could do that for literally any website, not just static sites.

> You could do that for literally any website, not just static sites.

Except you can't for any website that updates the page with AJAX calls to update the page in whatever manner. If it's a static site, links from one page will go to another flat file again without needing to retrieve anything rendered by a server. This isn't really a difficult concept to understand, yet it is somehow constantly being confused

This is pretty fun. Kinda wonder if it has to be so slow to update given that everything is local. Or does it have to do a round trip to the server on every click?

Bug report: this gives a yellow square for a letter that should be gray, when that letter occurs elsewhere in the word and the guess already has it in the right place. So e.g. if the word is ABCDE and you guess ABCDD it gives green for the first D and yellow for the second D (which should be gray).

Latency is really bad. Interesting idea but it’s not really usable.
Where in the world are you located? (I work at val.town)
love this. next up, let's see if you can achieve Static Minecraft!
Love this. Would it be possible to read in a daily-changing starting word state that then gets stored via URL as preservation? That'd bring it a little nearer to classic wordle.
In one of the guesses, I wish to reuse a grey letter to make a valid word, but it won't let me.

Edit: It allows me to guess invalid words.

inb4 takedown notice from NY Times
True. rename to Statiordle. So catchy
Stop calling these apps static! That ain't static!