likeawizard / tofiks

UCI chess engine written in Go
GNU General Public License v3.0
16 stars 0 forks source link

Shift 16bits from score to move data types. #53

Closed likeawizard closed 11 months ago

likeawizard commented 11 months ago

Currently the move data structure takes 16bits and the score in the transposition table takes 32bits. 16 bits would allow scores in the range of +/- 32'767. That should be sufficient for any practical +/- Infinity scores for checkmates etc...

And the move type would have free bits for flags like castling, captures etc... which could allow more efficient move ordering and possibly more efficient make-unmake.