in reply to Re^2: [OT] Is It Possible To Serialize A Chess Board In Fewer Than 23 Bytes?
in thread [OT] Is It Possible To Serialize A Chess Board In Fewer Than 23 Bytes?
> You'd need a length prefix or more bits to encode that a piece is off the board.
Nope. Two pieces can't be on the same field and at least one king must be left. Just position a piece on the (remaining) king to encode capturing.
This discussion is getting useless anyway, BC if the complexity of the task and fuzzy edge cases.
I'd like to see a count of possible board combinations first.
IIRC you have also to encode if a match stops because of resignation or a draw or a stalemate...
So many details.
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: [OT] Is It Possible To Serialize A Chess Board In Fewer Than 23 Bytes?
by ikegami (Patriarch) on Mar 11, 2026 at 13:57 UTC |