public Player(string name, int ordinal) { if (string.IsNullOrWhiteSpace(name)) { throw new ArgumentException(); } if (ordinal < 0) { throw new ArgumentException(); } Name = name; Ordinal = ordinal; Location = Location.Start; CoinBalance = CoinBalance.Empty; Penalty = Penalty.None; }
public void TransitionPenaltyTo(Penalty penalty) { Penalty = penalty; }