Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
55933ae49e
@ -672,13 +672,31 @@ public class BlueLagoon {
|
||||
// After the endPhase is over, move to the next player
|
||||
state.nextPlayer();
|
||||
|
||||
// if the current player cannot play the move, move to the next player
|
||||
if (!state.getCurrentPlayer().canPlay(state)) state.nextPlayer();
|
||||
// if the current player cannot play, go to the next player
|
||||
int players = state.getNumPlayers();
|
||||
while (!state.getCurrentPlayer().canPlay(state)) {
|
||||
if (players == 1) break;
|
||||
state.nextPlayer();
|
||||
players--;
|
||||
}
|
||||
|
||||
return state.toString();
|
||||
}
|
||||
|
||||
//upStream pull lol
|
||||
// // Tally up the score
|
||||
// else if (state.getCurrentPhase() == 'S') {
|
||||
// state.scorePhase();
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// // After the endPhase is over, move to the next player
|
||||
// state.nextPlayer();
|
||||
//
|
||||
// // if the current player cannot play the move, move to the next player
|
||||
// if (!state.getCurrentPlayer().canPlay(state)) state.nextPlayer();
|
||||
//
|
||||
// return state.toString();
|
||||
// }
|
||||
/**
|
||||
* Given a state string, returns a valid move generated by your AI.
|
||||
* <p>
|
||||
|
Loading…
Reference in New Issue
Block a user