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