2 * This file is licensed under the GPLv2 license
4 * Luiz Fernando N. Capitulino
5 * <lcapitulino@gmail.com>
13 GAME_OK
, /* no error */
14 GAME_FINISHED
, /* game is finished */
15 GAME_REST_TURN
, /* restarted the current turn */
19 GAME_MODE_NORMAL
, /* normal tic tac toe rules */
20 GAME_MODE_FULL
, /* board is full */
23 /* Players are represented by pieces */
24 #define GAME_PLAYER_1 GAME_PIECE_P1
25 #define GAME_PLAYER_2 GAME_PIECE_P2
26 #define GAME_PLAYER_3 GAME_PIECE_P3
28 /* Indicates when a new turn happen */
29 #define GAME_NEW_TURN (GAME_PLAYER_3 + 1)
31 extern int game_current_player
;
32 extern enum game_mode game_mode
;