4 ms·
you probably can encode a whole board in a small-ish string, something you can put in a url hash. But chess game is also a history of moves.
by codesnik 4y ago
you probably can encode a whole board in a small-ish string, something you can put in a url hash. But chess game is also a history of moves.
- darkr 4y agoPretty sure you could fit it in a 64 bit int/bitmap. Potentially some SIMD optimisations could be done in this direction
- moomoo11 4y agoI have played chess maybe 5 times in my life.. so I have no idea but.. Maybe you could store all the moves in an array of 2 byte ints. I doubt you can have more than 32k moves in a chess game. Assume 10kb per game in memory. You can run 1 million games on 10gb. Store the moves in the end, run your analysis, etc. Or am I missing something?