summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp60
1 files changed, 0 insertions, 60 deletions
diff --git a/src/game.cpp b/src/game.cpp
deleted file mode 100644
index 3a7f7dc..0000000
--- a/src/game.cpp
+++ /dev/null
@@ -1,60 +0,0 @@
-#include <iostream>
-#include "game.hpp"
-using namespace std;
-
-void game(int diff){
- int boardWidth;
- int boardHeight;
- int board[boardWidth][boardHeight];
- int mines;
-
- 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:
- cout << "Editing game parameters\n";
-
- cout << "Board Width: ";
- cin >> boardWidth;
-
- if(boardWidth > 32){
- cout << "Board width can't be more than 32 cells.\n";
- } else if(boardWidth < 8){
- cout << "Board width can't be less than 8 cells.\n";
- }
-
- cout << "Board Height: ";
- cin >> boardHeight;
-
- if(boardHeight > 32){
- cout << "Board height can't be more than 32 cells.\n";
- }else if(boardHeight < 8){
- cout << "Board height can't be less than 8 cells.\n";
- }
-
- cout << "Mines: ";
- cin >> mines;
-
- if(mines > 16){
- cout << "There can't be more than 16 mines.\n";
- }
-
- break;
- }
-}