diff options
author | daniel-Jones <daniel@danieljon.es> | 2018-09-06 22:38:55 +0930 |
---|---|---|
committer | daniel-Jones <daniel@danieljon.es> | 2018-09-06 22:38:55 +0930 |
commit | d844919907573cfd7dd3f602026e60e6d4ff27d2 (patch) | |
tree | 3ff98f931ea17c9d6956da2a31394cd831019840 /constants.cpp | |
parent | 63296bcb085a42ce0ef04738899f720b3469b1ce (diff) | |
download | qtminesweeper-d844919907573cfd7dd3f602026e60e6d4ff27d2.tar.gz qtminesweeper-d844919907573cfd7dd3f602026e60e6d4ff27d2.zip |
added conversions for 1d->2d mapping. auto-reveals all cells now. generates random mines.
Diffstat (limited to 'constants.cpp')
-rw-r--r-- | constants.cpp | 3 |
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; |