Esempio n. 1
0
 private IPocketColor CheckColor(IPocketNumber number)
 {
     if (number == IPocketNumber.Zero)
     {
         return(IPocketColor.Green);
     }
     else if ((number > IPocketNumber.Zero && number < IPocketNumber.Eleven) || (number > IPocketNumber.Eightteen && number < IPocketNumber.Twentynine))
     {
         if ((int)number % 2 == 0)
         {
             return(IPocketColor.Black);
         }
         else
         {
             return(IPocketColor.Red);
         }
     }
     else
     {
         if ((int)number % 2 == 0)
         {
             return(IPocketColor.Red);
         }
         else
         {
             return(IPocketColor.Black);
         }
     }
 }
Esempio n. 2
0
 public NeighbourBet(IPocketNumber firstNumber, IPocketNumber secondNumber)
 {
     FirstNumber  = firstNumber;
     SecondNumber = secondNumber;
     this.Odd     = 2;
     Type         = BetType.Neighbour;
 }
Esempio n. 3
0
 public Pocket(IPocketNumber number)
 {
     Number        = number;
     Color         = CheckColor(number);
     Even          = IsNumberEven((int)number);
     ToNumber      = (int)Number;
     ToColorNumber = (int)Color;
 }
Esempio n. 4
0
 public SingleNumberBet(IPocketNumber number)
 {
     Number   = number;
     this.Odd = 35;
     Type     = BetType.Single;
 }