summaryrefslogtreecommitdiff
path: root/include/game.h
blob: 5ab589b32e935dbf0373e08a6d1b41ae8cf1ea56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef _GAME
#define _GAME

#include "types.h"

/*
 * Implements the main game loop. Returns the final state of the board.
 */
Board game_loop(Board);

/*
 * Return 1 if the received player is checkmated. Returns 0 otherwise.
 */
int game_is_checkmate(Board board, Color color);

#endif
nihil fit ex nihilo