#include <Game.h>
Public Member Functions | |
Game () | |
void | playGame (istream &player1, istream &player2, ostream &out) |
Private Attributes | |
string | player1 |
string | player2 |
Board | theBoard |
This is the class that allows us to play the game. It will take two input streams, one for each player, and an output stream for displaying the board and who won.
Game::Game | ( | ) |
The constructor
void Game::playGame | ( | istream & | player1, |
istream & | player2, | ||
ostream & | out | ||
) |
This will play the game. This method will be described in the project description.
|
private |
The name of the first player
|
private |
The name of the second player