Add the basic code to make othello playable without any rule checks
[Project_algorithmic_C.git] / lib / othello.h
CommitLineData
4ddf6f1a
JB
1/*
2 * =====================================================================================
3 *
4 * Filename: othello.h
5 *
6 * Description: Header for othello board handling functions
7 *
8 * Version: 1.0
9 * Created: 25/04/2017 15:16:37
10 * Revision: none
11 * Compiler: gcc
12 *
13 * Author: Jerome Benoit (fraggle), jerome.benoit@piment-noir.org
14 * Organization: Piment Noir
15 *
16 * =====================================================================================
17 */
18
19#ifndef OTHELLO_H
20#define OTHELLO_H
21
2e5c1894
JB
22#include "constants.h"
23
74e2b93b
JB
24/* FIXME: declare and initialize the array here */
25//unsigned int pawns[board_size][board_size];
26
27unsigned int current_player(unsigned int round_count);
28
29int** init_pawns(unsigned int pawn_array[board_size][board_size]);
30
31bool is_box_type(int y, int x, unsigned int pawn_array[board_size][board_size], unsigned int type);
32unsigned int get_box_value(int y, int x, unsigned int pawn_array[board_size][board_size]);
33int** set_pawn(int y, int x, unsigned int type, unsigned int pawn_array[board_size][board_size]);
34
35unsigned int count_pawn_type(unsigned int pawn_array[board_size][board_size], unsigned int type);
2e5c1894 36
4ddf6f1a 37#endif /* OTHELLO_H */