Add the basic code to make othello playable without any rule checks
[Project_algorithmic_C.git] / lib / ui.h
1 /*
2 * =====================================================================================
3 *
4 * Filename: ui.h
5 *
6 * Description: Header for user interface routines
7 *
8 * Version: 1.0
9 * Created: 15/03/2017 20:07:12
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 UI_H
20 #define UI_H
21
22 #include <ncurses.h>
23
24 #include "constants.h"
25
26 int prompt_values(WINDOW* windows, int base_y, int base_x, const char* msg, int* y, char* x);
27
28 int map_col_letter_to_int(char c);
29
30 /* ncurses printing */
31 void print_board(int y, int x);
32 void print_pawns(int base_y, int base_x, unsigned int pawn_array[board_size][board_size]);
33
34 /* non ncurses printing */
35
36 #endif /* UI_H */