diff options
author | eug-vs <eug-vs@keemail.me> | 2021-06-10 13:17:55 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2021-06-10 13:17:55 +0300 |
commit | 3d356b409005ffeadfc8493dadfec5dc8cd4f4d4 (patch) | |
tree | 27f1d9e0d2f77261f164b8e9fba6963e4c38586d /src/pieces.h | |
parent | c8b8b85bc4f24a10b86abbdf71ff47009ba73c55 (diff) | |
download | c-chess-3d356b409005ffeadfc8493dadfec5dc8cd4f4d4.tar.gz |
feat: print chess board to stdout, remove ncurses
Diffstat (limited to 'src/pieces.h')
-rw-r--r-- | src/pieces.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/pieces.h b/src/pieces.h new file mode 100644 index 0000000..10d4eec --- /dev/null +++ b/src/pieces.h @@ -0,0 +1,24 @@ +#define WHITE 0b0000 +#define BLACK 0b0001 + +#define EMPTY 0b0000 +#define VISUAL 0b0001 + +#define PAWN 0b0010 +#define KNIGHT 0b0100 +#define BISHOP 0b0110 +#define ROOK 0b1000 +#define QUEEN 0b1010 +#define KING 0b1100 + + +char* pieces[] = { + ".", "#", + "♟︎", "♙", + "♞", "♘", + "♝", "♗", + "♜", "♖", + "♛", "♕", + "♚", "♔", +}; + |