blob: 09e07e3d29c42fff669087f393539eb78fed3d20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef _GAME
#define _GAME
#include "types.h"
/*
* Implements the main game loop. Returns the final state of the board.
*/
Board game_loop(Board);
/*
* Check if a move is valid in the received board for the received player.
*/
int game_is_move_valid(Board, Color, Move);
/*
* Return 1 if the received player is checkmated. Returns 0 otherwise.
*/
int game_is_checkmate(Board, Color);
#endif
|