Block a user
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+2
orto == from - 2