-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.h
58 lines (43 loc) · 901 Bytes
/
types.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
45
46
47
48
49
50
51
52
53
54
55
56
57
//types.h
// Project GO
// Created by Graham, Jacob, and Chandler
#ifndef types_h
#define types_h
//typedef enum { FALSE, TRUE } bool;
typedef enum Status{ENABLED, DISABLED} Status;
typedef enum Color{ BLACK, WHITE, NONE } Color;
typedef enum State{PLAYER1, PLAYER2} State;
struct Pairs{
int row;
int col;
} Pairs = {99,99};
typedef struct Pairs Pair;
typedef struct Button{
Status current_status;
Color color;
Pair pair;
} Button;
typedef struct PairList{
Pair data;
Pair last;
struct PairList * next;
} PairList;
typedef struct Board{
Button *buttons;
int count;
} Board;
char name[81][10];
State turn;
GtkWidget *window;
Button board[81];
int board_count;
GtkWidget * Player_1_Score;
int p1_Score = 0;
int p2_Score = 0;
GtkWidget * Player_2_Score;
gchar* player_1_Name;
gchar* player_2_Name;
const char * name_1;
const char * name_2;
GtkWidget * Turn;
#endif /* types_h */