From 4ef50178329718fa8d59e02e705cbba955da6de4 Mon Sep 17 00:00:00 2001 From: dawidg81 Date: Sun, 25 Jan 2026 11:58:09 +0100 Subject: Added tile randomization --- src/game/.game.cpp.swp | Bin 0 -> 12288 bytes src/game/game.cpp | 7 +++++++ 2 files changed, 7 insertions(+) create mode 100644 src/game/.game.cpp.swp (limited to 'src') diff --git a/src/game/.game.cpp.swp b/src/game/.game.cpp.swp new file mode 100644 index 0000000..ed064ef Binary files /dev/null and b/src/game/.game.cpp.swp differ 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 #include #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; + } + } } -- cgit v1.2.3