-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprint.h
44 lines (29 loc) · 888 Bytes
/
print.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#pragma once
#include <ncurses.h>
struct board;
#define MAX_FIELDLENGTH 8
#define PLAYER0_PIECE 'x'
#define PLAYER1_PIECE 'o'
#define PLAYER0_DUALPIECE 'X'
#define PLAYER1_DUALPIECE 'O'
#define EMPTY_SPOT '.'
#define BAR_TOPCHAR '_'
#define BAR_BOTTOMCHAR '_'
#define BAR_MIDDLECHAR '|'
#define OUTSIDE_LABEL "Outside: "
#define OUTSIDE_Y 15
#define OUTSIDE_X 45
#define MATCHSCORE_Y 0
#define MATCHSCORE_X 15
#define PLAYERDISPLAY_Y 14
#define PLAYERDISPLAY_X 45
#define DICE_Y 14
#define DICE_X 55
void printMatchScore(struct board *board);
void printField(WINDOW *window, int player, int pieces, int y, int x,
int direction);
void printBar(WINDOW *window, const int *bar, int y, int x);
void printOutside(struct board *board);
void printPlayer(int player);
void printBoard(WINDOW *window, struct board *board);
void printDice(int *moves, int highlight);