summaryrefslogtreecommitdiff
path: root/Game.cpp
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-08-13 13:25:59 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-08-13 13:25:59 +0100
commit3bd34b9d50958241955ce1b641af78273fe5f3fe (patch)
tree2f8c2100d8fb550a8d1fcf7316ed6d0c65b569a3 /Game.cpp
parenta2c97680aee90aa3498c03bb815bc105eb683aef (diff)
Added the Game class
A game may be started when two players are available. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'Game.cpp')
-rw-r--r--Game.cpp10
1 files changed, 10 insertions, 0 deletions
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 <iostream>
+#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;
+}