This is the start of a chess game for RETRO.
It's based heavily on an earlier, two player system for Retro 11.
Begin a private namespace.
Setup the default board.
We use an ASCII character for each piece.
| Char | Represents | | ---- | ---------- | | r | Rook | | n | Knight | | b | Bishop | | q | Queen | | k | King | | p | Pawn |
Lowercase is used for black pieces, UPPERCASE for white.
The default board (named Blank) won't be directly used. I create a second board for the actual gameplay.
Next up, the fundamentals of the display.
It'll display like this:
0_1_2_3_4_5_6_7 +-----------------+ 0 | r n b q k b n r | 1 | p p p p p p p p | 2 | . . . . . . . . | 3 | . . . . . . . . | 4 | . . . . . . . . | 5 | . . . . . . . . | 6 | P P P P P P P P | 7 | R N B Q K B N R | +-----------------+ 0_1_2_3_4_5_6_7
So first up, the columns.
Then a horizontal separator.
And then a row.
Possible Future:
These will be tied together a little later into the top level display word.
Close the private namespace.