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