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); } } }
public NeighbourBet(IPocketNumber firstNumber, IPocketNumber secondNumber) { FirstNumber = firstNumber; SecondNumber = secondNumber; this.Odd = 2; Type = BetType.Neighbour; }
public Pocket(IPocketNumber number) { Number = number; Color = CheckColor(number); Even = IsNumberEven((int)number); ToNumber = (int)Number; ToColorNumber = (int)Color; }
public SingleNumberBet(IPocketNumber number) { Number = number; this.Odd = 35; Type = BetType.Single; }