2024-04-03 23:36:30

Stream of consciousness on efficient URL encoding of a Scrabble game…

The board is 15×15, so 225 spaces. We’ll need the “bag”, so 100 tiles but only actually 86 once game starts. 2 “racks” of 7 letters. And the score.

Each space can be empty, letter, blank tile with associated letter.

So all tiles/spaces can fit in 5 bits (up to 32 combos).

It would be good to represent plays as row/col/tile. But I THINK that’s harder to decode. Though row+col fits in 8 bits. Hmm…