aboutsummaryrefslogtreecommitdiff
path: root/include/game.hpp
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-03-19 09:52:04 +0100
committerCharles <sircharlesaze@gmail.com>2020-03-19 09:52:04 +0100
commit9578de486aa49d4f89548155ab462732e42267cd (patch)
treebbc7cab41a21a4d5619389860b753846e4ec2090 /include/game.hpp
parentcae4150779c587edcc40b75f04624ab3971bbed6 (diff)
download2048-9578de486aa49d4f89548155ab462732e42267cd.tar.gz
2048-9578de486aa49d4f89548155ab462732e42267cd.tar.bz2
2048-9578de486aa49d4f89548155ab462732e42267cd.zip
dirty game logic
Diffstat (limited to 'include/game.hpp')
-rw-r--r--include/game.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/game.hpp b/include/game.hpp
index 488f74b..550b47a 100644
--- a/include/game.hpp
+++ b/include/game.hpp
@@ -2,6 +2,8 @@
# define GAME_HPP
#include <cstdlib>
+#include <vector>
+#include <utility>
#include "2048.hpp"
class Game
@@ -18,6 +20,10 @@ class Game
private:
int size;
int **grid;
+ void mergeRow(std::vector<int> &row);
+ int **gridCopy();
+ bool gridEqual(int **other);
+ void gridDestroy(int **g);
};
#endif