Skip to content
Permalink
84a5f3f603
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
42 lines (31 sloc) 647 Bytes
#ifndef GAME_H
#define GAME_H
#include <string>
#include <iostream>
#include "Grid.h"
#include "Player.h"
#include "AI.h"
class Game
{
public:
Game();
void runGame();
private:
void clearScreen();
void gameIntro();
void gameLoop();
int round();
bool checkWin(char symbol);
void gameWin();
void gameDraw();
void gameOver();
bool playAgain();
void resetGame();
void quitGame();
int moveCounter = 0;
Grid gridObj;
Grid *gridPtr = &gridObj;
Player playerObj;
AI aiObj;
};
#endif // GAME_H