aboutsummaryrefslogtreecommitdiffstats
path: root/src/Gameboard.h
diff options
context:
space:
mode:
authorGravatar alecdwm 2015-01-28 20:06:01 +1000
committerGravatar alecdwm 2015-01-28 20:09:43 +1000
commit300b8a6734f52bd25bfe542d8e4405e122e81b51 (patch)
tree008c7ec1d9c26efadfa1a0009148f66c9f0b34b1 /src/Gameboard.h
parent12d1ab840ea5fa1ec3fdda380f95ae79bdc60548 (diff)
Moved src to src folder
Added short readme description
Diffstat (limited to 'src/Gameboard.h')
-rw-r--r--src/Gameboard.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Gameboard.h b/src/Gameboard.h
new file mode 100644
index 0000000..3be9c0e
--- /dev/null
+++ b/src/Gameboard.h
@@ -0,0 +1,17 @@
+#pragma once
+#include <string>
+#include <iostream>
+
+using namespace std;
+
+class Gameboard {
+public:
+ Gameboard();
+ void printGameboard();
+ bool playMove(char symbol,int y,int x);
+ bool checkWin(int playerID,char symbol);
+private:
+ char _defaultSymbol = '#';
+ char _gameboard[3][3];
+ string _winner;
+};