Skip to content

Instantly share code, notes, and snippets.

Avatar

Debamitro Chakraborti debamitro

View GitHub Profile
View tictactoe_2.cpp
#include <iostream>
#include <string>
#include <cassert>
class tictactoe_game {
public:
tictactoe_game();
~tictactoe_game() = default;
void play ();
@debamitro
debamitro / tictactoe.cpp
Created Nov 13, 2017
Very simple game of tic-tac-toe in C++
View tictactoe.cpp
#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),