Rectify winner display

This commit is contained in:
Eideen 2021-05-04 00:07:06 +02:00
parent ed6ab60fbb
commit 2ed5251f9b

View File

@ -56,7 +56,7 @@ public class Game {
return players[1];
remainingShip = players[1].getShips().parallelStream().filter(ship -> !ship.isDrown()).findFirst().orElse(null);
if(remainingShip == null)
return players[1];
return players[0];
return null;
}