- Your game is missing the fun of minesweeper: a timer and the ability to flag mines!
- Also, it will be nice if you had at least a reset button, if not a button to change the number of mines. :)
- Oh yeah, your expansion logic doesn't seem to expand to also include the numbered cells... It only expands the empty ones, leaving the user to have to manually click on the surrounding numbered cells. This diminishes the playing quality somewhat.
- Following from the earlier section, your
Dimensions(20, 20)
can be a bit small for high-DPI displays, it will be nice if you either went with higher values, or look for non-pixel-based scaling alternatives... Here's a related StackOverflow link Here's a related StackOverflow link I found that may be of interest:
- Your game is missing the fun of minesweeper: a timer and the ability to flag mines!
- Also, it will be nice if you had at least a reset button, if not a button to change the number of mines. :)
- Oh yeah, your expansion logic doesn't seem to expand to also include the numbered cells... It only expands the empty ones, leaving the user to have to manually click on the surrounding numbered cells. This diminishes the playing quality somewhat.
- Following from the earlier section, your
Dimensions(20, 20)
can be a bit small for high-DPI displays, it will be nice if you either went with higher values, or look for non-pixel-based scaling alternatives... Here's a related StackOverflow link I found that may be of interest:
- Your game is missing the fun of minesweeper: a timer and the ability to flag mines!
- Also, it will be nice if you had at least a reset button, if not a button to change the number of mines. :)
- Oh yeah, your expansion logic doesn't seem to expand to also include the numbered cells... It only expands the empty ones, leaving the user to have to manually click on the surrounding numbered cells. This diminishes the playing quality somewhat.
- Following from the earlier section, your
Dimensions(20, 20)
can be a bit small for high-DPI displays, it will be nice if you either went with higher values, or look for non-pixel-based scaling alternatives... Here's a related StackOverflow link I found that may be of interest:
As pointed out by @Simon @Simon, it'll be better have methods that directly represents the exact actions we want on a Cell
, i.e. to setMine()
, or check isMine()
, or the more straightforward isChecked()
as opposed to isNotChecked()
. Here they are...
Again, @Simon @Simon has some good pointers about your generateMinesLocation()
method, but I think it can be further improved... by removing it entirely. Why?
As pointed out by @Simon, it'll be better have methods that directly represents the exact actions we want on a Cell
, i.e. to setMine()
, or check isMine()
, or the more straightforward isChecked()
as opposed to isNotChecked()
. Here they are...
Again, @Simon has some good pointers about your generateMinesLocation()
method, but I think it can be further improved... by removing it entirely. Why?
As pointed out by @Simon, it'll be better have methods that directly represents the exact actions we want on a Cell
, i.e. to setMine()
, or check isMine()
, or the more straightforward isChecked()
as opposed to isNotChecked()
. Here they are...
Again, @Simon has some good pointers about your generateMinesLocation()
method, but I think it can be further improved... by removing it entirely. Why?
Just in case you forgot, init()
does the plantMines()
and setCellValues()
for us.
Just in case you forgot, init()
does the plantMines()
and setCellValues()
for us.