aboutsummaryrefslogtreecommitdiff
path: root/include/game.hpp
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-03-18 20:50:58 +0100
committerCharles <sircharlesaze@gmail.com>2020-03-18 20:50:58 +0100
commit79ab0bdeedd6e7f97b4c246b4319af5eac545061 (patch)
tree841a4fafcd634285cf9a267e0e80550735a154c3 /include/game.hpp
parentb228349c5d3e93e8e58e96efeb332fdb58093f0f (diff)
download2048-79ab0bdeedd6e7f97b4c246b4319af5eac545061.tar.gz
2048-79ab0bdeedd6e7f97b4c246b4319af5eac545061.tar.bz2
2048-79ab0bdeedd6e7f97b4c246b4319af5eac545061.zip
game class, display of the game grid
Diffstat (limited to 'include/game.hpp')
-rw-r--r--include/game.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/game.hpp b/include/game.hpp
new file mode 100644
index 0000000..a644799
--- /dev/null
+++ b/include/game.hpp
@@ -0,0 +1,17 @@
+#ifndef GAME_HPP
+# define GAME_HPP
+
+class Game
+{
+ public:
+ Game(int s);
+ ~Game();
+ int getSize();
+ int at(int x, int y);
+
+ private:
+ int size;
+ int **grid;
+};
+
+#endif