public InbetweenerPlayerDoesNotHaveEnoughCreditsException(Player player, int betAmountThatIsNotValid) : base(player.Name + " does not have enough credits to bet " + betAmountThatIsNotValid.ToString() + " credit" + (betAmountThatIsNotValid != 1 ? "s" : "")) { }
/// <summary> /// Determines whether a Player won or lost the last game that they played. /// </summary> /// <param name="player">The Player you wish to test to see if they won anything.</param> /// <returns>true if the player won the last game.</returns> public bool DidPlayerWinCreditsLastGame(Player player) { return PlayersThatWonCredits.Contains(player); }
public InbetweenerPlayerDoesNotHaveEnoughCreditsException(Player player) : base(player.Name + " does not have enough credits to bet that amount") { }