From 3bd34b9d50958241955ce1b641af78273fe5f3fe Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Thu, 13 Aug 2015 13:25:59 +0100 Subject: Added the Game class A game may be started when two players are available. Signed-off-by: Olivier Gayot --- Game.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Game.cpp (limited to 'Game.cpp') diff --git a/Game.cpp b/Game.cpp new file mode 100644 index 0000000..e5e492f --- /dev/null +++ b/Game.cpp @@ -0,0 +1,10 @@ +#include +#include "Game.h" + +Game::Game(Player &p1, Player &p2) + : _p1(p1), _p2(p2) +{ + std::clog << "Creating game with players "; + std::clog << "[" << _p1.name() << ", " << _p2.name() << "]"; + std::clog << std::endl; +} -- cgit v1.2.3