Block a user
Try fo fit move_t in 16 bits ?
Since ffd5d05, flags are values (not bitmasks) meaning that we currently have one unused value in flags (the value 3, using 2 bits). We can use this value to flag promotion.
Other ideas "save…
Piece: remove ugly piece_details array
Try fo fit move_t in 16 bits ?
Done in ffd5d05 :
- move flags are now values (1, 2, 3...) instead of bitmask (1, 2, 4...)
- unique value for castling flag
2 bits left to save to fit into 2 octets (16-bits).
Try fo fit move_t in 16 bits ?
- e.p. flag can be removed:
(piece == PAWN && to == ep)will do the trick - castling flag can be removed: we can test if
to == from+2orto == from - 2