Exemple #1
0
        public static void GetBetType()
        {
            Console.WriteLine("Try your luck and Place your bet!!");
            Console.WriteLine("Choose bet type: Black, Red, Even, Odd, Low, High, Dozens, Columns, Street, 6 Number, Split, Corner, Single");
            //Loop for input validation --Andrew Hejl
            string betType = "";

            betType = GetInput();
            Tuple <int, string> wheelLands;

            for (; ;)
            {
                switch (betType)
                {
                case "black":
                case "red":
                    Console.WriteLine($"Your bet type was: {betType}. You have a 47.37% chance of winning!");
                    wheelLands = Wheel.SpinWheel();
                    CheckWin.CheckRedBlack(wheelLands, betType);
                    return;

                case "even":
                case "odd":
                    Console.WriteLine($"Your bet type was: {betType}. You have a 47.37% chance of winning!");
                    wheelLands = Wheel.SpinWheel();
                    CheckWin.CheckEvenOdd(wheelLands, betType);
                    return;

                case "low":
                case "high":
                    Console.WriteLine($"Your bet type was: {betType}. You have a 47.37% chance of winning!");
                    wheelLands = Wheel.SpinWheel();
                    CheckWin.CheckLowHigh(wheelLands, betType);
                    return;

                case "single":
                    Console.WriteLine($"Your bet type was: {betType}. You have a 2.63% chance of winning!");
                    wheelLands = Wheel.SpinWheel();
                    CheckWin.CheckSingle(wheelLands, betType);
                    return;

                //case "dozens":
                //    Console.WriteLine($"Your bet type was: {betType}. You have a 31.58% chance of winning!");
                //    return;

                //case "columns":
                //    Console.WriteLine($"Your bet type was: {betType}. You have a 31.58% chance of winning!");
                //    return;

                //case "street":
                //    Console.WriteLine($"Your bet type was: {betType}. You have a 7.89% chance of winning!");
                //    return;

                //case "6 numbers":
                //    Console.WriteLine($"Your bet type was: {betType}. You have a 15.79% chance of winning!");
                //    return;

                //case "split":
                //    Console.WriteLine($"Your bet type was: {betType}. You have a 5.26% chance of winning!");
                //    return;

                //case "corner":
                //    Console.WriteLine($"Your bet type was: {betType}. You have a 10.53% chance of winning!");
                //    return;

                default:
                    Console.WriteLine("BetType not valid start over.");
                    betType = GetInput();
                    break;
                }
            }
        }
Exemple #2
0
        public static void LetsPlay()
        {
            Wheel  wheel  = new Wheel();
            Gamble gamble = new Gamble();
            Bet    bet    = new Bet();

            int[]  ball      = wheel.Spin();
            int    whatColor = ball[0];
            int    land      = wheel.Lands(ball);
            string color     = wheel.RedOrBlack(whatColor).ToLower();

            int typeOfBet = gamble.YourBet();

            bool youWon;

            switch (typeOfBet)
            {
            case 1:
                youWon = bet.NumbersBet(land);
                if (youWon == true)
                {
                    Console.WriteLine("WINNER");
                }
                else
                {
                    Console.WriteLine("YAH F****N LOST");
                }
                break;

            case 2:
                youWon = bet.EvenOdd(land);
                if (youWon == true)
                {
                    Console.WriteLine("Winner");
                }
                else
                {
                    Console.WriteLine("Broke Bitch");
                }
                break;

            case 3:
                youWon = bet.ColorsBet(color);
                if (youWon == true)
                {
                    Console.WriteLine("Dan go buy another boat!");
                }
                else
                {
                    Console.WriteLine("Dan please... stop gambling");
                }
                break;

            case 4:
                youWon = bet.LowHigh(land);
                if (youWon == true)
                {
                    Console.WriteLine("Dan lives in Vegas");
                }
                else
                {
                    Console.WriteLine("Dan... please leave");
                }
                break;

            case 5:
                youWon = bet.Dozens(land);
                if (youWon == true)
                {
                    Console.WriteLine("DAN GO BUY SOME PEPSI!!");
                }
                else
                {
                    Console.WriteLine("Dan spilled his diet Pepsi");
                }
                break;
            }
        }
Exemple #3
0
 static void Main(string[] args)
 {
     Wheel.PrintWheel();
     Bet.GetBetType();
 }