Skip to content

Commit

Permalink
Update BoardListener.java
Browse files Browse the repository at this point in the history
  • Loading branch information
kek-Sec committed Feb 7, 2022
1 parent eb0bf06 commit 1a1062c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ public void mouseClicked(java.awt.event.MouseEvent e) {
// if square is mine
if (square.isMine()) {
game.displayMines(squares);
return;
}
// if square is not mine
game.revealAdjacentSquares(row, col, squares);

}
// if right click
Expand Down

0 comments on commit 1a1062c

Please sign in to comment.