This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <cassert> | |
// Class for keeping track of the game state | |
// as well as the winner | |
class tictactoe_board { | |
public: | |
tictactoe_board () : | |
empty_spaces(9), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <cassert> | |
class tictactoe_game { | |
public: | |
tictactoe_game(); | |
~tictactoe_game() = default; | |
void play (); |