zkayser / chess

2 stars 0 forks source link

Chess/encode moves #38

Closed zkayser closed 1 year ago

zkayser commented 1 year ago

Encodes a move struct into a 16-bit integer, where bits:

1-3 --> The from file of the move 4-6 --> The from rank of the move 7-9 --> The to file of the move 10-12 --> The to rank of the move 13-16 --> Special flags denoting types of move, capture, promotion, etc.

Closes #37