previous | index | next

The GameInfo Class Header

class GameInfo {
public:
  GameInfo(Player player1, Player player2,
	   GameState initialState);
  Player play();

private:
  Player opponent(Player p);
  bool gameOver();

  Player player1;
  Player player2;
  Player nextToPlay;
  GameState currentState;
};

previous | index | next