repositories
/
Project_algorithmic_C.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add the basic code to make othello playable without any rule checks
[Project_algorithmic_C.git]
/
lib
/
ui.h
diff --git
a/lib/ui.h
b/lib/ui.h
index ad32628042a00fc7f21ec044163fdbdd1359dc66..b24b6740ef63e3320b85364365fecabdb9bf58aa 100644
(file)
--- a/
lib/ui.h
+++ b/
lib/ui.h
@@
-19,11
+19,17
@@
#ifndef UI_H
#define UI_H
#ifndef UI_H
#define UI_H
+#include <ncurses.h>
+
#include "constants.h"
#include "constants.h"
+int prompt_values(WINDOW* windows, int base_y, int base_x, const char* msg, int* y, char* x);
+
+int map_col_letter_to_int(char c);
+
/* ncurses printing */
void print_board(int y, int x);
/* ncurses printing */
void print_board(int y, int x);
-void print_pawns(int pawn_array[board_size][board_size]);
+void print_pawns(int
base_y, int base_x, unsigned int
pawn_array[board_size][board_size]);
/* non ncurses printing */
/* non ncurses printing */