aboutsummaryrefslogtreecommitdiff
path: root/include/game.hpp
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-03-18 21:36:21 +0100
committerCharles <sircharlesaze@gmail.com>2020-03-18 21:36:21 +0100
commitcae4150779c587edcc40b75f04624ab3971bbed6 (patch)
treed4d8a749ddcd7fdedc1cb5d3b9265e5df196f9f3 /include/game.hpp
parent79ab0bdeedd6e7f97b4c246b4319af5eac545061 (diff)
download2048-cae4150779c587edcc40b75f04624ab3971bbed6.tar.gz
2048-cae4150779c587edcc40b75f04624ab3971bbed6.tar.bz2
2048-cae4150779c587edcc40b75f04624ab3971bbed6.zip
random spawn
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 a644799..488f74b 100644
--- a/include/game.hpp
+++ b/include/game.hpp
@@ -1,6 +1,9 @@
#ifndef GAME_HPP
# define GAME_HPP
+#include <cstdlib>
+#include "2048.hpp"
+
class Game
{
public:
@@ -8,6 +11,9 @@ class Game
~Game();
int getSize();
int at(int x, int y);
+ void move(Direction direction);
+ void spawn();
+ bool lost();
private:
int size;