private static string GetState(IBoard board, Player player)
 {
     return
     string.Format(
        "{0}: {1}",
        player,
        board
           .Where(node => node.State.ToUnit(player) > 0)
           .Count());
 }
Beispiel #2
0
 private ReactivePlayer(Player player)
 {
     this.player = player;
 }
Beispiel #3
0
 public void UpdateUnitStatus(Player player)
 {
     labelWho.Text = player.Name;
      labelWho.ForeColor =
     player == Player1
        ? Color.Blue : Color.Red;
 }