state: isPhaseOver cleaned up code

This commit is contained in:
Nathan Woodburn 2023-05-08 13:25:28 +10:00
parent 8a4e83b9a7
commit 9381eedf5f
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -416,8 +416,7 @@ public class State {
boolean moveLeft = false;
int numSettlers = 30 - ((numPlayers - 2) * 5);
for (Player p: players) {
boolean canPlay = false;
if (p.getVillages().length < 5) canPlay = true;
boolean canPlay = p.getVillages().length < 5;
if (p.getSettlers().length < numSettlers) canPlay = true;
if (canPlay) {
if (p.canPlay(this)) moveLeft = true;