initial files

This commit is contained in:
2021-10-27 16:09:56 +02:00
commit 264459dc0f
13 changed files with 1468 additions and 0 deletions

22
src/position.h Normal file
View File

@@ -0,0 +1,22 @@
#ifndef POSITION_H
#define POSITION_H
#include <stdint.h>
#include "board.h"
typedef struct position {
short turn;
short castle;
short clock_50;
short curmove;
SQUARE en_passant;
BOARD *board;
} POS;
void pos_print(POS *pos);
POS *pos_init(POS *pos);
POS *pos_startpos(POS *pos);
POS *pos_create();
#endif