How to store a chess position in 26 bytes using bit-level magic (2022)
1–10 of 204 posts
Re: How to store a chess position in 26 bytes using bit-level magic (2022)
#2Re: How to store a chess position in 26 bytes using bit-level magic (2022)
#3Re: How to store a chess position in 26 bytes using bit-level magic (2022)
#4> Compressing chess positions for fun and profit
Which unlike that here is correct: you can store a board, the positions, in 26B; not an arbitrary length game!
Re: How to store a chess position in 26 bytes using bit-level magic (2022)
#5Re: How to store a chess position in 26 bytes using bit-level magic (2022)
#6Original title is: > Compressing chess positions for fun and profit Which unlike that here is correct: you can store a board , the positions, in 26B; not an arbitrary length game!
Re: How to store a chess position in 26 bytes using bit-level magic (2022)
#7Re: How to store a chess position in 26 bytes using bit-level magic (2022)
#8Was fun, I was playing code golf with myself. Sadly seem to have lost the code and I didn't use it in the end.
It would probably have been possible to go smaller than I got it by combining it with a sudoku solver, so stop packing positions once it's solvable. But life moved on.
Re: How to store a chess position in 26 bytes using bit-level magic (2022)
#9A chess position , not a game (still very interesting though!)
Re: How to store a chess position in 26 bytes using bit-level magic (2022)
#10Storing a game is also interesting. The number of legal moves varies depending on the position. You could try to define a variable length encoding by giving more likely moves a shorter encoding, but the ordering would need to be deterministic so it could be decoded (running Stockfish for a second isn't).