~skiqqy/tgb

tgb/include/engine.h -rw-r--r-- 437 bytes
17c656c6Stephen Cochrane Updated README 1 year, 1 month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* LICENSE: GPL3 */
/* Written by Skiqqy */
/* Interface for the chess engine. */

struct state {
    int winner;
    int turn;
    void *other;
};

/* Core functions allowing us to play a game. */
int *initgame();
int islegal(int player, int *move, int *board);
int *move(int *move, int *board);
struct state *gamestate(int *board);

/* This will be used in the later project disussed in the readme */
int eval(int player, int *board);