sudo legal moves
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user