Activity

z2

Rewrote word search. Each word is converted into a constraint (minimum/maximum letter count requirements, green letters, invalid letters for every slot), then these constraints are merged into a single one. This works when you actually enter something Wordle gives you, but I haven’t figured out a robust way to detect when the input words/colors are impossible.

Also I wasted a lot of time on a zipfunction for tuples

Attachment
Attachment
Attachment
0
z2

So my last search implementation was just wrong, like incorrect. It still is but at least I made a debugging ui. I’ll do the actual thinking/debugging later.

Did a big rewrite of all the types, I now use a 0-25 integer to represent letters and conversions are everywhere. This also makes hover type hints unreadable, they look like

type Word = [0 | 1 | 2 | 5 | 3 | 4 | 22 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 23 | 24 | 25, 0 | 1 | 2 | 5 | 3 | 4 | 22 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 23 | 24 | 25, 0 | 1 | 2 | 5 | 3 | 4 | 22 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 23 | 24 | 25, 0 | 1 | 2 | 5 | 3 | 4 | 22 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 23 | 24 | 25, 0 | 1 | 2 | 5 | 3 | 4 | 22 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 23 | 24 | 25]

I also tried to get a web worker to search every pair of words for bugs. I won’t be trying that again in the near future.

Attachment
0
z2

I thought I had a previous devlog, but it wasn’t saved because of a flavortown website bug. So massive devlog it is :)

User input works now:

  • since I’m not using actual text inputs, reimplemented typing letters and backspace (+ ctrl backspace to delete word)
  • arrow keys to change the focused letter/word
  • set letter color to [blank, yellow, green] with [spacebar, -, +]
    Also added a word list I found somewhere (credits coming soon) and implemented the actual searching.

I’ve gotten more comfortable using Typescript and SolidJS. Future roadmap includes making this actually good looking and easy to use (mobile will be fun), ranking the search results by word frequency, and finding out how to deploy this to Github pages

Attachment
0
z2

First devlog. Basically nothing right now

Attachment
0