Example #1
0
 // returns the outcomes of a player taking a given action
 public Delta[] GetActionDeltas(Player player, PlayerAction a)
 {
     return(a.GetDeltas(player, this));
 }
Example #2
0
 // returns if a move is legal for the given player to make
 public bool IsLegalAction(Player player, PlayerAction a)
 {
     // the action is a legal action for them to play,
     // and they may still play actions
     return(a.IsLegalAction(player) && player.DeployPhases > 0);
 }