summaryrefslogtreecommitdiff
path: root/src/game/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/game.cpp')
-rw-r--r--src/game/game.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/game.cpp b/src/game/game.cpp
index 4f6ef41..2b5df1f 100644
--- a/src/game/game.cpp
+++ b/src/game/game.cpp
@@ -1,3 +1,4 @@
+#include <cstdlib>
#include <iostream>
#include "globals.hpp"
using namespace std;
@@ -59,4 +60,10 @@ void game(int diff){
break;
}
+
+ for(int i = 0; i < boardHeight; i++){
+ for(int j = 0; j < boardWidth; j++){
+ board[i][j] = rand() % 1;
+ }
+ }
}