From d844919907573cfd7dd3f602026e60e6d4ff27d2 Mon Sep 17 00:00:00 2001 From: daniel-Jones Date: Thu, 6 Sep 2018 22:38:55 +0930 Subject: cell generation improved added conversions for 1d->2d mapping. auto-reveals all cells now. generates random mines. --- constants.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'constants.cpp') 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; -- cgit v1.2.3