Skip to content

Instantly share code, notes, and snippets.

View debamitro's full-sized avatar

Debamitro Chakraborti debamitro

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