-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.h
33 lines (24 loc) · 736 Bytes
/
game.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
#pragma once
// game.h : This is the header file of game.cpp
//lab4
//Team : Amanda
// Team memebers : Zhanqi Zhang, Zuyu Liao, Xinyi Wu
//Purpose: =>The Lab4 program is used to build and play the tic-tac-toe game
// =>This head file is used declare and define functions, enumerations and other features to the program
#include <iostream>
#include <vector>
#include <string>
using namespace std;
#ifndef GAME_H
#define GAME_H
//Declare enum for piece colors
enum color {
red = 0, RED = 0, black = 1, BLACK = 0, white = 2, WHITE = 2, invalid = 3, no_color = 4, blue = 5, BLUE = 5
};
//Declare and define a struct to represent a game piece
struct game_piece {
color c_;
string name_;
string display_as_;
};
#endif