Kill mega-sena.sh
[lcapit-junk-code.git] / games / ttt3p / ttt3p.h
blob12db5801cf518de8efd449fd3e70fb6bbafe684c
1 /*
2 * This file is licensed under the GPLv2 license
3 *
4 * Luiz Fernando N. Capitulino
5 * <lcapitulino@gmail.com>
6 */
7 #ifndef TTT3P_H
8 #define TTT3P_H
10 #include "board.h"
12 enum game_state {
13 GAME_OK, /* no error */
14 GAME_FINISHED, /* game is finished */
15 GAME_REST_TURN, /* restarted the current turn */
18 enum game_mode {
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;
34 #endif /* TTT3P_H */