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
23 lines (18 sloc) 608 Bytes
#ifndef GRID_H
#define GRID_H
#include <iostream>
class Grid
{
public:
Grid();
bool checkWin(char symbol);
void resetGrid();
void printGrid();
int checkChoice(char symbol, int input);
char viewSquare(int position);
private:
const char blankGrid[9] = {'1', '2', '3', '4', '5', '6', '7', '8', '9'}; // Used to reset the main game grid
char grid[9] = {'1', '2', '3', '4', '5', '6', '7', '8', '9'}; // Grid the game is played on and that is displayed to the user
void replaceSquare(char symbol, int input);
};
#endif // GRID_H