Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 public void TransitionPenaltyTo(Penalty penalty)
 {
     Penalty = penalty;
 }