Ejemplo n.º 1
0
        public void SetCombinationForPlayer(IPlayer player, Combination c, IDices dices)
        {
            if (c.UsedByPlayer(player))
            {
                throw new ArgumentException("Combination already set!");
            }

            c.ApplyCombinationForPlayer(player, dices);
            Console.WriteLine("Player " + player.Name + " applied combination " + c.Name + ", with a score of " + c.CalculateScore(dices) + ".");
            OnCombinationApplied(c);
        }
Ejemplo n.º 2
0
 public bool IsCombinationUsedForPlayer(IPlayer player, Combination c)
 {
     return(c.UsedByPlayer(player));
 }