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); }
public bool IsCombinationUsedForPlayer(IPlayer player, Combination c) { return(c.UsedByPlayer(player)); }