Polymeron comments on Thoughts on the Singularity Institute (SI) - Less Wrong
You are viewing a comment permalink. View the original post to see all comments and the full post content.
You are viewing a comment permalink. View the original post to see all comments and the full post content.
Comments (1270)
Indeed, using a very straightforward Huffman encoding (1 bit for an for empty cell, 3 bits for pawns) you can get it down to 24 bytes for the board alone. Was an interesting puzzle.
Looking up "prior art" on the subject, you also need 2 bytes for things like "may castle", and other more obscure rules.
There's further optimizations you can do, but they are mostly for the average case, not the worst case.
I didn't consider using 3 bits for pawns! Thanks for that :) I did account for such variables as may castle and whose turn it is.