sudo legal moves

This commit is contained in:
2024-03-10 17:40:49 +01:00
parent 5964cd7239
commit 5b4dbee026
5 changed files with 462 additions and 51 deletions

View File

@ -1,9 +1,13 @@
#ifndef CHESS_TYPES_H
#define CHESS_TYPES_H
#include <stdbool.h>
#include <stdint.h>
#define BOARD_SIZE 8
#define TOTAL_BOARD_SIZE BOARD_SIZE * BOARD_SIZE
#define LENGTH(array) (sizeof array / sizeof *array)
#define NOT_SELECTED UINT_LEAST8_MAX
enum pieces {
NOTHING,
@ -19,3 +23,5 @@ struct piece_t {
uint_least8_t type;
bool white;
};
#endif