-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshared.h
More file actions
executable file
·47 lines (40 loc) · 1.14 KB
/
shared.h
File metadata and controls
executable file
·47 lines (40 loc) · 1.14 KB
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
/***********************************************************************
* COSC1076 - Advanced Programming Techniques
* Semester 2 2016 Assignment #1
* Full Name : Drew Nuttall-Smith
* Student Number : s3545039
* Course Code : COSC1076
* Program Code : BP096
* Start up code provided by Paul Miller
**********************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include <time.h>
#include <ctype.h>
#ifndef SHARED_H
#define SHARED_H
/* definition of the boolean type */
typedef enum
{
FALSE, TRUE
} BOOLEAN;
/* how many colors are their in the game? required by the random number
* generation
*/
#define NUM_COLORS 2
#define NUM_SQUARES 64
/* what values could be contained in a cell on the board? */
enum cell
{
BLANK, RED, BLUE
};
#define MAX_CHAR 56
#define MIN_CHAR 49
/* color codes required to display the tokens on the board */
#define COLOR_RED "\33[31m"
#define COLOR_BLUE "\33[34m"
#define COLOR_RESET "\33[0m"
#endif /* defined SHARED_H */