diff options
| author | dawidg81 <dawidgorski.m@gmail.com> | 2026-01-28 20:01:46 +0100 |
|---|---|---|
| committer | dawidg81 <dawidgorski.m@gmail.com> | 2026-01-28 20:01:46 +0100 |
| commit | b0edb4219ea4df381d0235aa34b74799334aa0b2 (patch) | |
| tree | 9607358416596125857b25394a267eb562e6fcc5 /src/Game/Game.cpp | |
| parent | 6ce59baf37e6f009fd6854b701f0e3795fa38dc8 (diff) | |
finished merging code and simplifying file structure
Diffstat (limited to 'src/Game/Game.cpp')
| -rw-r--r-- | src/Game/Game.cpp | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/Game/Game.cpp b/src/Game/Game.cpp deleted file mode 100644 index b0f6a80..0000000 --- a/src/Game/Game.cpp +++ /dev/null @@ -1,45 +0,0 @@ -#include "Game.hpp" -#include "../Utils/Utils.hpp" - -#include <cstdlib> -#include <cstdio> -#include <iostream> -#include <string> - -void Game::initDiff(int diff) { - switch (diff) { - case 0: - boardWidth = 9; - boardHeight = 9; - mines = 9; - break; - case 1: - boardWidth = 16; - boardHeight = 16; - mines = 12; - break; - case 2: - boardWidth = 30; - boardHeight = 16; - mines = 16; - break; - case 3: - std::cout << "Editing game parameters\n"; - break; - } -} - -void Game::initBoard() { - for (int i = 0; i < boardHeight; i++) { - for (int j = 0; j < boardWidth; j++) { - bombMap[i][j] = rand() % 2; - } - } - - for (int i = 0; i < boardHeight; i++) { - for (int j = 0; j < boardWidth; j++) { - tileMap[i][j] = 0; - } - } -} - |
