I think you forgot promotion of pawns at the last rank
Maybe, maybe not. Either way, his approach correctly handles promotions.
As for you, it's not just promotions you don't handle. You don't support capturing either! You'd need a length prefix or more bits to encode that a piece is off the board.
In reply to Re^2: [OT] Is It Possible To Serialize A Chess Board In Fewer Than 23 Bytes?
by ikegami
in thread [OT] Is It Possible To Serialize A Chess Board In Fewer Than 23 Bytes?
by Limbic~Region
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |