pseudocode algo for the game

This commit is contained in:
Odweta
2026-02-17 16:21:45 +01:00
parent 021dbb9c11
commit d94e04f8ef
6 changed files with 40 additions and 8 deletions
+7 -2
View File
@@ -12,9 +12,14 @@
* 6 - king
*/
#include <stdbool.h>
// board size constraints
#define BOARD_HORIZONTAL 8
#define BOARD_VERTICAL 8
//int board[BOARD_VERTICAL][BOARD_HORIZONTAL];
// just a simple type abstraction
typedef int board_t[BOARD_HORIZONTAL][BOARD_VERTICAL];
// the default arrangment of pieces on the board
#define BOARD_DEFAULT_CONFIG \
@@ -29,6 +34,6 @@
}
// initializes the board with the default configuration of pieces
bool init_board();
bool init_board(board_t *board);
#endif // CHESS_H