3 ms·
I was wondering on how Stockfish encodes the destination and origin square in 5 bits each. I think they don't, at least the code on github uses 6 bits each, whi
by maverwa 2y ago
I was wondering on how Stockfish encodes the destination and origin square in 5 bits each. I think they don't, at least the code on github uses 6 bits each, which actually gives you 64 possible values, so works out fine:
https://github.com/official-stockfish/Stockfish/blob/master/src/types.h#L351-L361 https://github.com/official-stockfish/Stockfish/blob/master/...
Thats 16 bits.
Thank you for sending me down that (small) rabbit hole!
- zarzavat 2y agoYes you are correct, I had 2^5 = 64 in my head for some reason.