summaryrefslogtreecommitdiff
path: root/constants.cpp
diff options
context:
space:
mode:
authordaniel-Jones <daniel@danieljon.es>2018-09-06 22:38:55 +0930
committerdaniel-Jones <daniel@danieljon.es>2018-09-06 22:38:55 +0930
commitd844919907573cfd7dd3f602026e60e6d4ff27d2 (patch)
tree3ff98f931ea17c9d6956da2a31394cd831019840 /constants.cpp
parent63296bcb085a42ce0ef04738899f720b3469b1ce (diff)
downloadqtminesweeper-master.tar.gz
qtminesweeper-master.zip
cell generation improvedHEADmaster
added conversions for 1d->2d mapping. auto-reveals all cells now. generates random mines.
Diffstat (limited to 'constants.cpp')
-rw-r--r--constants.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/constants.cpp b/constants.cpp
index 41d7a24..4f012ba 100644
--- a/constants.cpp
+++ b/constants.cpp
@@ -2,6 +2,7 @@
const int BORDEROFFSET = 10;
const int GRIDWIDTH = 200;
-const int GRIDHEIGHT = 600;
+const int GRIDHEIGHT = 200;
const int SQUARESIZE = 20;
const int NUMBEROFCELLS = ((GRIDWIDTH*GRIDHEIGHT)/SQUARESIZE)/SQUARESIZE;
+const int NUMBEROFMINES = NUMBEROFCELLS/SQUARESIZE*1.5;