Example #1
0
 @Override
 public boolean isWin() {
   return getMines().size() == 0 && !sapper.isDead();
 }
Example #2
0
 @Override
 public boolean isGameOver() {
   return sapper.isDead() || isEmptyDetectorButPresentMines() || isWin();
 }