From 5346878d98d08bd8805521bd1ba451587870b7ec Mon Sep 17 00:00:00 2001 From: KonstantinosGal <56201820+KonstantinosGal@users.noreply.github.com> Date: Fri, 27 Aug 2021 02:12:57 +0300 Subject: [PATCH] Show window when user wins --- Code/src/minesweeper/Game.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/src/minesweeper/Game.java b/Code/src/minesweeper/Game.java index 5bc9254..6078975 100644 --- a/Code/src/minesweeper/Game.java +++ b/Code/src/minesweeper/Game.java @@ -621,7 +621,7 @@ public boolean isFinished() cellSolution = Integer.toString(cells[x][y].getSurroundingMines()); if(cells[x][y].getMine()) - cellSolution = "F"; + cellSolution = ""; // Compare the player's "answer" to the solution. if(!cells[x][y].getContent().equals(cellSolution))