Project 3: Connect 4  Version 4
1-2-3-4 in a row
 All Classes Functions Variables
Public Member Functions | Private Attributes | List of all members
Game Class Reference

#include <Game.h>

Public Member Functions

 Game ()
 
void playGame (istream &player1, istream &player2, ostream &out)
 

Private Attributes

string player1
 
string player2
 
Board theBoard
 

Detailed Description

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.

Constructor & Destructor Documentation

Game::Game ( )

The constructor

Member Function Documentation

void Game::playGame ( istream &  player1,
istream &  player2,
ostream &  out 
)

This will play the game. This method will be described in the project description.

Member Data Documentation

string Game::player1
private

The name of the first player

string Game::player2
private

The name of the second player

Board Game::theBoard
private

The Board


The documentation for this class was generated from the following files: