game: Added simple functions

This commit is contained in:
2023-05-01 13:25:45 +10:00
parent 1ad2f6d3f3
commit 3307b01bf2
3 changed files with 370 additions and 3 deletions

View File

@@ -422,8 +422,6 @@ public class State {
if (player.canPlay(this)) moveLeft = true;
}
}
return !resourcesLeft || !moveLeft;
}
@@ -597,6 +595,11 @@ public class State {
// endregion
// region String conversion
/**
* Convert board to stateString format string
* @return String stateString
*/
@Override
public String toString() {
String str = "a " + boardHeight + " " + getNumPlayers() + "; c " + getCurrentPlayerID() + " " + getCurrentPhase() + "; ";