pseudocode algo for the game
This commit is contained in:
+7
-2
@@ -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
|
||||
Reference in New Issue
Block a user