Rectify winner display
This commit is contained in:
parent
ed6ab60fbb
commit
2ed5251f9b
@ -56,7 +56,7 @@ public class Game {
|
|||||||
return players[1];
|
return players[1];
|
||||||
remainingShip = players[1].getShips().parallelStream().filter(ship -> !ship.isDrown()).findFirst().orElse(null);
|
remainingShip = players[1].getShips().parallelStream().filter(ship -> !ship.isDrown()).findFirst().orElse(null);
|
||||||
if(remainingShip == null)
|
if(remainingShip == null)
|
||||||
return players[1];
|
return players[0];
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user