예제 #1
0
 public (IAction?, Player) Perform(Player player, Player active, IProvinces provinces)
 {
     return(this, provinces.Any(prov => prov.IsAllyOf(player.Id)) ? player : player.Die());
 }
예제 #2
0
 public (IAction[], Player) Perform(Player player, Player active, IProvinces provinces)
 {
     return(new[] { this }, provinces.Any(prov => prov.IsControlledBy(player.Id)) ? player : player.Die());
 }