Ejemplo n.º 1
0
 public static IBet GenerateBet(int playerChoice, int choice, IBet playerBet)
 {
     if (playerChoice == 1)
     {
         playerBet = new BetNumbers(choice);
         return(playerBet);
     }
     else if (playerChoice == 2)
     {
         playerBet = new BetRedBlack(choice);
         return(playerBet);
     }
     else if (playerChoice == 3)
     {
         playerBet = new BetEvensOdds(choice);
         return(playerBet);
     }
     else if (playerChoice == 4)
     {
         playerBet = new BetHighLow(choice);
         return(playerBet);
     }
     else if (playerChoice == 5)
     {
         playerBet = new BetStreets(choice);
         return(playerBet);
     }
     else if (playerChoice == 6)
     {
         playerBet = new BetSplit(choice);
         return(playerBet);
     }
     else if (playerChoice == 7)
     {
         playerBet = new BetDozens(choice);
         return(playerBet);
     }
     else if (playerChoice == 8)
     {
         playerBet = new BetDoubleRows(choice);
         return(playerBet);
     }
     else if (playerChoice == 9)
     {
         playerBet = new BetCorner(choice);
         return(playerBet);
     }
     else if (playerChoice == 10)
     {
         playerBet = new BetColumns(choice);
         return(playerBet);
     }
     return(playerBet);
 }
Ejemplo n.º 2
0
        public static int PickBettingOption(int playerChoice)
        {
            int choice = 0;

            if (playerChoice == 1)
            {
                BetNumbers genericBet = new BetNumbers(0);
                genericBet.DisplayBetChoices();
                Console.Write("Enter the number of the specific bet you want: ");
                choice = Convert.ToInt32(Console.ReadLine());
            }
            else if (playerChoice == 2)
            {
                BetRedBlack genericBet = new BetRedBlack(0);
                genericBet.DisplayBetChoices();
                Console.Write("Enter the number of the specific bet you want: ");
                choice = Convert.ToInt32(Console.ReadLine());
            }
            else if (playerChoice == 3)
            {
                BetEvensOdds genericBet = new BetEvensOdds(0);
                genericBet.DisplayBetChoices();
                Console.Write("Enter the number of the specific bet you want: ");
                choice = Convert.ToInt32(Console.ReadLine());
            }
            else if (playerChoice == 4)
            {
                BetHighLow genericBet = new BetHighLow(0);
                genericBet.DisplayBetChoices();
                Console.Write("Enter the number of the specific bet you want: ");
                choice = Convert.ToInt32(Console.ReadLine());
            }
            else if (playerChoice == 5)
            {
                BetStreets genericBet = new BetStreets(0);
                genericBet.DisplayBetChoices();
                Console.Write("Enter the number of the specific bet you want: ");
                choice = Convert.ToInt32(Console.ReadLine());
            }
            else if (playerChoice == 6)
            {
                BetSplit genericBet = new BetSplit(0);
                genericBet.DisplayBetChoices();
                Console.Write("Enter the number of the specific bet you want: ");
                choice = Convert.ToInt32(Console.ReadLine());
            }
            else if (playerChoice == 7)
            {
                BetDozens genericBet = new BetDozens(0);
                genericBet.DisplayBetChoices();
                Console.Write("Enter the number of the specific bet you want: ");
                choice = Convert.ToInt32(Console.ReadLine());
            }
            else if (playerChoice == 8)
            {
                BetDoubleRows genericBet = new BetDoubleRows(0);
                genericBet.DisplayBetChoices();
                Console.Write("Enter the number of the specific bet you want: ");
                choice = Convert.ToInt32(Console.ReadLine());
            }
            else if (playerChoice == 9)
            {
                BetCorner genericBet = new BetCorner(0);
                genericBet.DisplayBetChoices();
                Console.Write("Enter the number of the specific bet you want: ");
                choice = Convert.ToInt32(Console.ReadLine());
            }
            else if (playerChoice == 10)
            {
                BetColumns genericBet = new BetColumns(0);
                genericBet.DisplayBetChoices();
                Console.Write("Enter the number of the specific bet you want: ");
                choice = Convert.ToInt32(Console.ReadLine());
            }
            return(choice);
        }