top | item 38270680

(no title)

nodoodles | 2 years ago

Clever! With bit of more complexity in generation, you can shave off good number of bytes by using shorter id's, I think?

3 characters per id in base36 should do, in reality even less on average, starting from #0. >100KB reduction?

discuss

order

p4bl0|2 years ago

I just saw your comment! I was given the same idea on Mastodon. I did it and got down to 412KB. I'm using a custom base74 so that IDs are max 2 chars.

74 + 74*74 = 5550 which is just above the 5478 game states that have to be represented.

See https://news.ycombinator.com/item?id=38275082