aboutsummaryrefslogtreecommitdiffstats
path: root/src/Gameboard.h
diff options
context:
space:
mode:
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;
+};