Esempio n. 1
0
 /// <summary>
 /// Calculates the Draw the probability.
 /// </summary>
 /// <param name="copies">The number of copies to draw from.</param>
 /// <returns>The Draw the probability.</returns>
 internal Double DrawProbability(int copies = 1)
 {
     return(Math.Round(Helper.DrawProbability(copies, Core.Game.Player.DeckCount, 2) * 100, 2));
 }
Esempio n. 2
0
 /// <summary>
 /// Calculates the Draw the probability.
 /// </summary>
 /// <param name="poolsize">The pool size you will draw from.</param>
 /// <param name="copies">The number of copies of a card.</param>
 /// <param name="draw">The number of cards to draw.</param>
 /// <param name="dec">The decimal place to round to.</param>
 /// <returns>The Draw probability.</returns>
 public Double DrawProbability(int poolsize, int copies = 1, int draw = 1, int dec = 0)
 {
     return(Math.Round(
                Helper.DrawProbability(copies, poolsize, draw) * 100, dec));
 }