Last active
January 4, 2016 15:19
Chess positions for http://codegolf.stackexchange.com/questions/19397/smallest-chess-board-compression.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NB. I7 bits | |
1 | |
1111 | |
1 101 1 | |
0 101 001 | |
---- | |
Current turn: white's turn to play. | |
Castling: White may castle? left right | |
Black may castle? left right | |
+-----------------+ | |
| ♚ ♔ | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
+-----------------+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NB. I79 bits | |
1 NB. white's turn | |
1111 NB. both players may castle on both sides | |
1 011 1 NB. black rook right next to an imaginary before-top-left-corner | |
tile. | |
1 001 1 NB. black knight right next to the previous rook. | |
1 010 1 NB. black bishop | |
1 100 1 NB. black queen | |
1 101 1 NB. black king | |
1 010 1 NB. black bishop | |
1 001 1 NB. black knight | |
1 011 1 NB. black rook | |
1 000 1 NB. black pawn, right next to the previous piece since we're | |
enumerating line-by-line. (This is on position A7.) | |
1 000 1 | |
1 000 1 | |
1 000 1 | |
1 000 1 | |
1 000 1 | |
1 000 1 | |
1 000 1 | |
0 000 0|00|000|0000|00111 NB. white pawn, after skipping 32 tiles since last piece. | |
0 000 1 NB. white pawn right next to last one | |
0 000 1 | |
0 000 1 | |
0 000 1 | |
0 000 1 | |
0 000 1 | |
0 000 1 | |
0 011 1 NB. white rook | |
0 001 1 NB. white knight | |
0 010 1 NB. white bishop | |
0 101 1 NB. white king | |
0 100 1 NB. white queen | |
0 010 1 NB. white bishop | |
0 001 1 NB. white knight | |
0 011 1 NB. white rook | |
---- | |
Current turn: white's turn to play. | |
Castling: White may castle? left right | |
Black may castle? left right | |
+-----------------+ | |
| ♜ ♞ ♝ ♛ ♚ ♝ ♞ ♜ | | |
| ♟ ♟ ♟ ♟ ♟ ♟ ♟ ♟ | | |
| | | |
| | | |
| | | |
| | | |
| ♙ ♙ ♙ ♙ ♙ ♙ ♙ ♙ | | |
| ♖ ♘ ♗ ♔ ♕ ♗ ♘ ♖ | | |
+-----------------+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NB. 2I7 bits | |
1 | |
1111 | |
1 011 1 | |
1 100 001 | |
1 101 001 | |
1 011 010 | |
1 000 1 | |
1 000 001 | |
1 000 010 | |
1 001 010 | |
1 000 1 | |
1 000 001 | |
1 010 001 | |
1 000 001 | |
0 001 001 | |
0 000 001 | |
1 000 1 | |
1 000 001 | |
1 010 1 | |
0 000 001 | |
0 000 010 | |
1 001 001 | |
0 010 001 | |
0 001 001 | |
0 000 010 | |
0 000 001 | |
0 000 1 | |
0 000 001 | |
0 010 001 | |
0 000 001 | |
0 011 001 | |
0 100 001 | |
0 101 001 | |
0 011 010 | |
---- | |
Current turn: white's turn to play. | |
Castling: White may castle? left right | |
Black may castle? left right | |
+-----------------+ | |
| ♜ ♛ ♚ ♜ | | |
| ♟ ♟ ♟ | | |
| ♞ ♟ ♟ ♝ ♟ | | |
| ♘ ♙ ♟ ♟ ♝ | | |
| ♙ ♙ ♞ | | |
| ♗ ♘ ♙ ♙ | | |
| ♙ ♙ ♗ ♙ | | |
| ♖ ♕ ♔ ♖ | | |
+-----------------+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NB. I3O bits | |
(not a legal position, but the colour/kind of piece doesn't affect the size) | |
1 | |
1111 | |
0 000 1 | |
0 000 000001 | |
0 000 000001 | |
0 000 000001 | |
0 000 000001 | |
0 000 000001 | |
0 000 000001 | |
0 000 000001 | |
0 000 000001 | |
0 000 000001 | |
0 000 000001 | |
0 000 000001 | |
0 000 000001 | |
---- | |
Current turn: white's turn to play. | |
Castling: White may castle? left right | |
Black may castle? left right | |
+-----------------+ | |
| ♙ ♙ | | |
| ♙ ♙ | | |
| ♙ | | |
| ♙ ♙ | | |
| ♙ | | |
| ♙ ♙ | | |
| ♙ ♙ | | |
| ♙ | | |
+-----------------+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment