state: isPhaseOver cleaned up code
This commit is contained in:
parent
8a4e83b9a7
commit
9381eedf5f
@ -416,8 +416,7 @@ public class State {
|
|||||||
boolean moveLeft = false;
|
boolean moveLeft = false;
|
||||||
int numSettlers = 30 - ((numPlayers - 2) * 5);
|
int numSettlers = 30 - ((numPlayers - 2) * 5);
|
||||||
for (Player p: players) {
|
for (Player p: players) {
|
||||||
boolean canPlay = false;
|
boolean canPlay = p.getVillages().length < 5;
|
||||||
if (p.getVillages().length < 5) canPlay = true;
|
|
||||||
if (p.getSettlers().length < numSettlers) canPlay = true;
|
if (p.getSettlers().length < numSettlers) canPlay = true;
|
||||||
if (canPlay) {
|
if (canPlay) {
|
||||||
if (p.canPlay(this)) moveLeft = true;
|
if (p.canPlay(this)) moveLeft = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user