Exemplo n.º 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());
 }
Exemplo n.º 2
0
 private ReactivePlayer(Player player)
 {
     this.player = player;
 }
Exemplo n.º 3
0
 public void UpdateUnitStatus(Player player)
 {
     labelWho.Text = player.Name;
      labelWho.ForeColor =
     player == Player1
        ? Color.Blue : Color.Red;
 }