Example #1
0
        public int CornerBet(int Funds)
        {
Amount:
            Console.WriteLine("How much do you want to bet?");
            if (int.TryParse(Console.ReadLine(), out int Amount))
            {
                if (Amount > Funds)
                {
                    Console.WriteLine("You don't have enough money.");
                    goto Amount;
                }
            }
            else
            {
                Console.WriteLine("We don't accept that kind of currency here.");
                goto Amount;
            }
Bet:
            Console.WriteLine("Pick a number to see the possible corners.");
            string Pick = Console.ReadLine().ToLower();

            if (Pick == "1")
            {
                int i = int.Parse(Pick);
                Console.WriteLine($"1 Corner of {i}, {i + 1}, {i + 3}, and {i + 4}.");

                RandomNumber r   = new RandomNumber();
                int          Hit = r.RandomNumberGenerator();

                Console.WriteLine($"We landed on {Hit}!");
                if (Hit == 0 || Hit == 00)
                {
                    Console.WriteLine("Reroll.");
                    goto Bet;
                }
                if (Hit == i || Hit == i + 1 || Hit == i + 3 || Hit == i + 4)
                {
                    Console.WriteLine("You won!");
                    Funds = Funds + Amount * 8;
                    return(Funds);
                }
                else if (Hit != i || Hit != i + 1 || Hit != i + 3 || Hit != i + 4)
                {
                    Console.WriteLine("You lost...");
                    Funds = Funds - Amount;
                    return(Funds);
                }
            }
            if (Pick == "2")
            {
                int i = int.Parse(Pick);
                Console.WriteLine($"2 Corners. Press 1 for {i}, {i + 1}, {i + 3}, and {i + 4}." +
                                  $"Press 2 for {i - 1}, {i}, {i + 2}, and {i + 3}.");

                string CornerPick = Console.ReadLine();

                if (CornerPick == "1")
                {
                    RandomNumber r   = new RandomNumber();
                    int          Hit = r.RandomNumberGenerator();

                    Console.WriteLine($"We landed on {Hit}!");
                    if (Hit == 0 || Hit == 00)
                    {
                        Console.WriteLine("Reroll.");
                        goto Bet;
                    }
                    if (Hit == i || Hit == i + 1 || Hit == i + 3 || Hit == i + 4)
                    {
                        Console.WriteLine("You won!");
                        Funds = Funds + Amount * 8;
                        return(Funds);
                    }
                    else
                    {
                        Console.WriteLine("You lost...");
                        Funds = Funds - Amount;
                        return(Funds);
                    }
                }
                if (CornerPick == "2")
                {
                    RandomNumber r   = new RandomNumber();
                    int          Hit = r.RandomNumberGenerator();

                    Console.WriteLine($"We landed on {Hit}!");
                    if (Hit == 0 || Hit == 00)
                    {
                        Console.WriteLine("Reroll.");
                        goto Bet;
                    }
                    if (Hit == i - 1 || Hit == i || Hit == i + 2 || Hit == i + 3)
                    {
                        Console.WriteLine("You won!");
                        Funds = Funds + Amount * 8;
                        return(Funds);
                    }
                    else
                    {
                        Console.WriteLine("You lost...");
                        Funds = Funds - Amount;
                        return(Funds);
                    }
                }
                else
                {
                    Console.WriteLine("You won't win that way!");
                    goto Bet;
                }
            }
            if (Pick == "3")
            {
                int i = int.Parse(Pick);
                Console.WriteLine($"1 Corner of {i - 1}, {i}, {i + 2}, and {i + 3}.");

                RandomNumber r   = new RandomNumber();
                int          Hit = r.RandomNumberGenerator();

                Console.WriteLine($"We landed on {Hit}!");
                if (Hit == 0 || Hit == 00)
                {
                    Console.WriteLine("Reroll.");
                    goto Bet;
                }
                if (Hit == i - 1 || Hit == i || Hit == i + 2 || Hit == i + 3)
                {
                    Console.WriteLine("You won!");
                    Funds = Funds + Amount * 8;
                    return(Funds);
                }
                else
                {
                    Console.WriteLine("You lost...");
                    Funds = Funds - Amount;
                    return(Funds);
                }
            }
            if (Pick == "34")
            {
                int i = int.Parse(Pick);
                Console.WriteLine($"1 Corner of {i - 3}, {i - 2}, {i}, and {i + 1}.");

                RandomNumber r   = new RandomNumber();
                int          Hit = r.RandomNumberGenerator();

                Console.WriteLine($"We landed on {Hit}!");
                if (Hit == 0 || Hit == 00)
                {
                    Console.WriteLine("Reroll.");
                    goto Bet;
                }
                if (Hit == i - 3 || Hit == i - 2 || Hit == i || Hit == i + 1)
                {
                    Console.WriteLine("You won!");
                    Funds = Funds + Amount * 8;
                    return(Funds);
                }
                else
                {
                    Console.WriteLine("You lost...");
                    Funds = Funds - Amount;
                    return(Funds);
                }
            }
            if (Pick == "35")
            {
                int i = int.Parse(Pick);
                Console.WriteLine($"2 Corners. Press 1 for {i - 3}, {i - 2}, {i}, and {i + 1}." +
                                  $"Press 2 for {i - 4}, {i - 3}, {i - 1}, and {i}.");

                string CornerPick = Console.ReadLine();

                if (CornerPick == "1")
                {
                    RandomNumber r   = new RandomNumber();
                    int          Hit = r.RandomNumberGenerator();

                    Console.WriteLine($"We landed on {Hit}!");
                    if (Hit == 0 || Hit == 00)
                    {
                        Console.WriteLine("Reroll.");
                        goto Bet;
                    }
                    if (Hit == i - 3 || Hit == i - 2 || Hit == i || Hit == i + 1)
                    {
                        Console.WriteLine("You won!");
                        Funds = Funds + Amount * 8;
                        return(Funds);
                    }
                    else
                    {
                        Console.WriteLine("You lost...");
                        Funds = Funds - Amount;
                        return(Funds);
                    }
                }
                if (CornerPick == "2")
                {
                    RandomNumber r   = new RandomNumber();
                    int          Hit = r.RandomNumberGenerator();

                    Console.WriteLine($"We landed on {Hit}!");
                    if (Hit == 0 || Hit == 00)
                    {
                        Console.WriteLine("Reroll.");
                        goto Bet;
                    }
                    if (Hit == i - 4 || Hit == i - 3 || Hit == i - 1 || Hit == i)
                    {
                        Console.WriteLine("You won!");
                        Funds = Funds + Amount * 8;
                        return(Funds);
                    }
                    else
                    {
                        Console.WriteLine("You lost...");
                        Funds = Funds - Amount;
                        return(Funds);
                    }
                }
                else
                {
                    Console.WriteLine("You won't win that way!");
                    goto Bet;
                }
            }
            if (Pick == "36")
            {
                int i = int.Parse(Pick);
                Console.WriteLine($"1 Corner of {i - 4}, {i - 3}, {i - 1}, and {i}.");

                RandomNumber r   = new RandomNumber();
                int          Hit = r.RandomNumberGenerator();

                Console.WriteLine($"We landed on {Hit}!");
                if (Hit == 0 || Hit == 00)
                {
                    Console.WriteLine("Reroll.");
                    goto Bet;
                }
                if (Hit == i - 4 || Hit == i - 3 || Hit == i - 1 || Hit == i)
                {
                    Console.WriteLine("You won!");
                    Funds = Funds + Amount * 8;
                    return(Funds);
                }
                else
                {
                    Console.WriteLine("You lost...");
                    Funds = Funds - Amount;
                    return(Funds);
                }
            }
            if (Pick == "4" || Pick == "7" || Pick == "10" || Pick == " 13" || Pick == "16" || Pick == "19" || Pick == "22" || Pick == "25" ||
                Pick == "28" || Pick == "31")
            {
                int i = int.Parse(Pick);
                Console.WriteLine($"2 Corners. Press 1 for {i}, {i + 1}, {i + 3}, and {i + 4}." +
                                  $"Press 2 for {i - 3}, {i - 2}, {i}, and {i + 1}.");

                string CornerPick = Console.ReadLine();

                if (CornerPick == "1")
                {
                    RandomNumber r   = new RandomNumber();
                    int          Hit = r.RandomNumberGenerator();

                    Console.WriteLine($"We landed on {Hit}!");
                    if (Hit == 0 || Hit == 00)
                    {
                        Console.WriteLine("Reroll.");
                        goto Bet;
                    }
                    if (Hit == i || Hit == i + 1 || Hit == i + 3 || Hit == i + 4)
                    {
                        Console.WriteLine("You won!");
                        Funds = Funds + Amount * 8;
                        return(Funds);
                    }
                    else
                    {
                        Console.WriteLine("You lost...");
                        Funds = Funds - Amount;
                        return(Funds);
                    }
                }
                if (CornerPick == "2")
                {
                    RandomNumber r   = new RandomNumber();
                    int          Hit = r.RandomNumberGenerator();

                    Console.WriteLine($"We landed on {Hit}!");
                    if (Hit == 0 || Hit == 00)
                    {
                        Console.WriteLine("Reroll.");
                        goto Bet;
                    }
                    if (Hit == i - 3 || Hit == i - 2 || Hit == i || Hit == i + 1)
                    {
                        Console.WriteLine("You won!");
                        Funds = Funds + Amount * 8;
                        return(Funds);
                    }
                    else
                    {
                        Console.WriteLine("You lost...");
                        Funds = Funds - Amount;
                        return(Funds);
                    }
                }
                else
                {
                    Console.WriteLine("You won't win that way!");
                    goto Bet;
                }
            }
            if (Pick == "5" || Pick == "8" || Pick == "11" || Pick == " 14" || Pick == "17" || Pick == "20" || Pick == "23" || Pick == "26" ||
                Pick == "29" || Pick == "32")
            {
                int i = int.Parse(Pick);
                Console.WriteLine($"4 Corners. Press 1 for {i}, {i + 1}, {i + 3}, and {i + 4}." +
                                  $"Press 2 for {i - 1}, {i}, {i + 2}, and {i + 3}. Press 3 for {i - 3}, {i - 2}, {i}, and {i + 1}." +
                                  $"Press 4 for {i - 4}, {i - 3}, {i - 1}, and {i}.");

                string CornerPick = Console.ReadLine();

                if (CornerPick == "1")
                {
                    RandomNumber r   = new RandomNumber();
                    int          Hit = r.RandomNumberGenerator();

                    Console.WriteLine($"We landed on {Hit}!");
                    if (Hit == 0 || Hit == 00)
                    {
                        Console.WriteLine("Reroll.");
                        goto Bet;
                    }
                    if (Hit == i || Hit == i + 1 || Hit == i + 3 || Hit == i + 4)
                    {
                        Console.WriteLine("You won!");
                        Funds = Funds + Amount * 8;
                        return(Funds);
                    }
                    else
                    {
                        Console.WriteLine("You lost...");
                        Funds = Funds - Amount;
                        return(Funds);
                    }
                }
                if (CornerPick == "2")
                {
                    RandomNumber r   = new RandomNumber();
                    int          Hit = r.RandomNumberGenerator();

                    Console.WriteLine($"We landed on {Hit}!");
                    if (Hit == 0 || Hit == 00)
                    {
                        Console.WriteLine("Reroll.");
                        goto Bet;
                    }
                    if (Hit == i - 1 || Hit == i || Hit == i + 2 || Hit == i + 3)
                    {
                        Console.WriteLine("You won!");
                        Funds = Funds + Amount * 8;
                        return(Funds);
                    }
                    else
                    {
                        Console.WriteLine("You lost...");
                        Funds = Funds - Amount;
                        return(Funds);
                    }
                }
                if (CornerPick == "3")
                {
                    RandomNumber r   = new RandomNumber();
                    int          Hit = r.RandomNumberGenerator();

                    Console.WriteLine($"We landed on {Hit}!");
                    if (Hit == 0 || Hit == 00)
                    {
                        Console.WriteLine("Reroll.");
                        goto Bet;
                    }
                    if (Hit == i - 3 || Hit == i - 2 || Hit == i || Hit == i + 1)
                    {
                        Console.WriteLine("You won!");
                        Funds = Funds + Amount * 8;
                        return(Funds);
                    }
                    else
                    {
                        Console.WriteLine("You lost...");
                        Funds = Funds - Amount;
                        return(Funds);
                    }
                }
                if (CornerPick == "4")
                {
                    RandomNumber r   = new RandomNumber();
                    int          Hit = r.RandomNumberGenerator();

                    Console.WriteLine($"We landed on {Hit}!");
                    if (Hit == 0 || Hit == 00)
                    {
                        Console.WriteLine("Reroll.");
                        goto Bet;
                    }
                    if (Hit == i - 4 || Hit == i - 3 || Hit == i - 1 || Hit == i)
                    {
                        Console.WriteLine("You won!");
                        Funds = Funds + Amount * 8;
                        return(Funds);
                    }
                    else
                    {
                        Console.WriteLine("You lost...");
                        Funds = Funds - Amount;
                        return(Funds);
                    }
                }
                else
                {
                    Console.WriteLine("You won't win that way!");
                    goto Bet;
                }
            }
            if (Pick == "6" || Pick == "9" || Pick == "12" || Pick == " 15" || Pick == "18" || Pick == "21" || Pick == "24" || Pick == "27" ||
                Pick == "30" || Pick == "33")
            {
                int i = int.Parse(Pick);
                Console.WriteLine($"2 Corners. Press 1 for {i - 1}, {i}, {i + 2}, and {i + 3}." +
                                  $"Press 2 for {i - 4}, {i - 3}, {i - 1}, and {i}.");

                string CornerPick = Console.ReadLine();

                if (CornerPick == "1")
                {
                    RandomNumber r   = new RandomNumber();
                    int          Hit = r.RandomNumberGenerator();

                    Console.WriteLine($"We landed on {Hit}!");
                    if (Hit == 0 || Hit == 00)
                    {
                        Console.WriteLine("Reroll.");
                        goto Bet;
                    }
                    if (Hit == i - 1 || Hit == i || Hit == i + 2 || Hit == i + 3)
                    {
                        Console.WriteLine("You won!");
                        Funds = Funds + Amount * 8;
                        return(Funds);
                    }
                    else
                    {
                        Console.WriteLine("You lost...");
                        Funds = Funds - Amount;
                        return(Funds);
                    }
                }
                if (CornerPick == "2")
                {
                    RandomNumber r   = new RandomNumber();
                    int          Hit = r.RandomNumberGenerator();

                    Console.WriteLine($"We landed on {Hit}!");
                    if (Hit == 0 || Hit == 00)
                    {
                        Console.WriteLine("Reroll.");
                        goto Bet;
                    }
                    if (Hit == i - 4 || Hit == i - 3 || Hit == i - 1 || Hit == i)
                    {
                        Console.WriteLine("You won!");
                        Funds = Funds + Amount * 8;
                        return(Funds);
                    }
                    else
                    {
                        Console.WriteLine("You lost...");
                        Funds = Funds - Amount;
                        return(Funds);
                    }
                }
                else
                {
                    Console.WriteLine("You won't win that way!");
                    goto Bet;
                }
            }
            else
            {
                Console.WriteLine("You won't win that way!");
                goto Bet;
            }
        }
Example #2
0
        public int ColumnsBet(int Funds)
        {
Bet:
            Console.WriteLine("First Column, Second Column, or Third Column?");
            string UserInput = Console.ReadLine().ToLower();

            if (UserInput == "first column")
            {
                goto Amount;
            }
            if (UserInput == "second column")
            {
                goto Amount;
            }
            if (UserInput == "third column")
            {
                goto Amount;
            }
            else
            {
                Console.WriteLine("You won't win that way!");
                goto Bet;
            }

Amount:
            Console.WriteLine("How much do you want to bet?");
            if (int.TryParse(Console.ReadLine(), out int Amount))
            {
                if (Amount > Funds)
                {
                    Console.WriteLine("You don't have enough money.");
                    goto Amount;
                }
            }
            else
            {
                Console.WriteLine("We don't accept that kind of currency here.");
                goto Amount;
            }

            RandomNumber r   = new RandomNumber();
            int          Hit = r.RandomNumberGenerator();

            if (UserInput == "first column")
            {
                if (Hit == 0 || Hit == 00)
                {
                    Console.WriteLine($"We landed on {Hit}. Reroll.");
                    goto Bet;
                }
                for (int i = 0; i < Number.Length; i++)
                {
                    if (Number[i] == Hit)
                    {
                        Console.WriteLine($"We landed on {Hit}!");
                        if (Hit == 1 || Hit == 4 || Hit == 7 || Hit == 10 || Hit == 13 || Hit == 16 || Hit == 19 || Hit == 22 ||
                            Hit == 25 || Hit == 28 || Hit == 31 || Hit == 34)
                        {
                            Console.WriteLine("You won!");
                            Funds = Funds + Amount * 2;
                            return(Funds);
                        }
                        else
                        {
                            Console.WriteLine("You lost...");
                            Funds = Funds - Amount;
                            return(Funds);
                        }
                    }
                }
            }
            if (UserInput == "second column")
            {
                if (Hit == 0 || Hit == 00)
                {
                    Console.WriteLine($"We landed on {Hit}. Reroll.");
                    goto Bet;
                }
                for (int i = 0; i < Number.Length; i++)
                {
                    if (Number[i] == Hit)
                    {
                        Console.WriteLine($"We landed on {Hit}!");
                        if (Hit == 2 || Hit == 5 || Hit == 8 || Hit == 11 || Hit == 14 || Hit == 17 || Hit == 20 || Hit == 23 ||
                            Hit == 26 || Hit == 29 || Hit == 32 || Hit == 35)
                        {
                            Console.WriteLine("You won!");
                            Funds = Funds + Amount * 2;
                            return(Funds);
                        }
                        else
                        {
                            Console.WriteLine("You lost...");
                            Funds = Funds - Amount;
                            return(Funds);
                        }
                    }
                }
            }
            if (UserInput == "third column")
            {
                if (Hit == 0 || Hit == 00)
                {
                    Console.WriteLine($"We landed on {Hit}. Reroll.");
                    goto Bet;
                }
                for (int i = 0; i < Number.Length; i++)
                {
                    if (Number[i] == Hit)
                    {
                        Console.WriteLine($"We landed on {Hit}!");
                        if (Hit == 3 || Hit == 6 || Hit == 9 || Hit == 12 || Hit == 15 || Hit == 18 || Hit == 21 || Hit == 24 ||
                            Hit == 27 || Hit == 30 || Hit == 33 || Hit == 36)
                        {
                            Console.WriteLine("You won!");
                            Funds = Funds + Amount * 2;
                            return(Funds);
                        }
                        else
                        {
                            Console.WriteLine("You lost...");
                            Funds = Funds - Amount;
                            return(Funds);
                        }
                    }
                }
            }
            return(Funds);
        }
Example #3
0
        public int StreetBet(int Funds)
        {
Bet:
            Console.WriteLine("1, 4, 7, 10, 13, 16, 19, 22, 25, 28, 31, or 34 Streets?");
            string UserInput = Console.ReadLine().ToLower();

            if (UserInput == "1")
            {
                goto Amount;
            }
            if (UserInput == "4")
            {
                goto Amount;
            }
            if (UserInput == "7")
            {
                goto Amount;
            }
            if (UserInput == "10")
            {
                goto Amount;
            }
            if (UserInput == "13")
            {
                goto Amount;
            }
            if (UserInput == "16")
            {
                goto Amount;
            }
            if (UserInput == "19")
            {
                goto Amount;
            }
            if (UserInput == "22")
            {
                goto Amount;
            }
            if (UserInput == "25")
            {
                goto Amount;
            }
            if (UserInput == "28")
            {
                goto Amount;
            }
            if (UserInput == "31")
            {
                goto Amount;
            }
            if (UserInput == "34")
            {
                goto Amount;
            }
            else
            {
                Console.WriteLine("You won't win that way!");
                goto Bet;
            }

Amount:
            Console.WriteLine("How much do you want to bet?");
            if (int.TryParse(Console.ReadLine(), out int Amount))
            {
                if (Amount > Funds)
                {
                    Console.WriteLine("You don't have enough money.");
                    goto Amount;
                }
            }
            else
            {
                Console.WriteLine("We don't accept that kind of currency here.");
                goto Amount;
            }

            RandomNumber r   = new RandomNumber();
            int          Hit = r.RandomNumberGenerator();

            if (UserInput == "1")
            {
                if (Hit == 0 || Hit == 00)
                {
                    Console.WriteLine($"We landed on {Hit}. Reroll.");
                    goto Bet;
                }
                for (int i = 0; i < Number.Length; i++)
                {
                    if (Number[i] == Hit)
                    {
                        Console.WriteLine($"We landed on {Hit}!");
                        if (Hit == 1 || Hit == 2 || Hit == 3)
                        {
                            Console.WriteLine("You won!");
                            Funds = Funds + Amount * 11;
                            return(Funds);
                        }
                        else
                        {
                            Console.WriteLine("You lost...");
                            Funds = Funds - Amount;
                            return(Funds);
                        }
                    }
                }
            }
            if (UserInput == "4")
            {
                if (Hit == 0 || Hit == 00)
                {
                    Console.WriteLine($"We landed on {Hit}. Reroll.");
                    goto Bet;
                }
                for (int i = 0; i < Number.Length; i++)
                {
                    if (Number[i] == Hit)
                    {
                        Console.WriteLine($"We landed on {Hit}!");
                        if (Hit == 4 || Hit == 5 || Hit == 6)
                        {
                            Console.WriteLine("You won!");
                            Funds = Funds + Amount * 11;
                            return(Funds);
                        }
                        else
                        {
                            Console.WriteLine("You lost...");
                            Funds = Funds - Amount;
                            return(Funds);
                        }
                    }
                }
            }
            if (UserInput == "7")
            {
                if (Hit == 0 || Hit == 00)
                {
                    Console.WriteLine($"We landed on {Hit}. Reroll.");
                    goto Bet;
                }
                for (int i = 0; i < Number.Length; i++)
                {
                    if (Number[i] == Hit)
                    {
                        Console.WriteLine($"We landed on {Hit}!");
                        if (Hit == 7 || Hit == 8 || Hit == 9)
                        {
                            Console.WriteLine("You won!");
                            Funds = Funds + Amount * 11;
                            return(Funds);
                        }
                        else
                        {
                            Console.WriteLine("You lost...");
                            Funds = Funds - Amount;
                            return(Funds);
                        }
                    }
                }
            }
            if (UserInput == "10")
            {
                if (Hit == 0 || Hit == 00)
                {
                    Console.WriteLine($"We landed on {Hit}. Reroll.");
                    goto Bet;
                }
                for (int i = 0; i < Number.Length; i++)
                {
                    if (Number[i] == Hit)
                    {
                        Console.WriteLine($"We landed on {Hit}!");
                        if (Hit == 10 || Hit == 11 || Hit == 12)
                        {
                            Console.WriteLine("You won!");
                            Funds = Funds + Amount * 11;
                            return(Funds);
                        }
                        else
                        {
                            Console.WriteLine("You lost...");
                            Funds = Funds - Amount;
                            return(Funds);
                        }
                    }
                }
            }
            if (UserInput == "13")
            {
                if (Hit == 0 || Hit == 00)
                {
                    Console.WriteLine($"We landed on {Hit}. Reroll.");
                    goto Bet;
                }
                for (int i = 0; i < Number.Length; i++)
                {
                    if (Number[i] == Hit)
                    {
                        Console.WriteLine($"We landed on {Hit}!");
                        if (Hit == 13 || Hit == 14 || Hit == 15)
                        {
                            Console.WriteLine("You won!");
                            Funds = Funds + Amount * 11;
                            return(Funds);
                        }
                        else
                        {
                            Console.WriteLine("You lost...");
                            Funds = Funds - Amount;
                            return(Funds);
                        }
                    }
                }
            }
            if (UserInput == "16")
            {
                if (Hit == 0 || Hit == 00)
                {
                    Console.WriteLine($"We landed on {Hit}. Reroll.");
                    goto Bet;
                }
                for (int i = 0; i < Number.Length; i++)
                {
                    if (Number[i] == Hit)
                    {
                        Console.WriteLine($"We landed on {Hit}!");
                        if (Hit == 16 || Hit == 17 || Hit == 18)
                        {
                            Console.WriteLine("You won!");
                            Funds = Funds + Amount * 11;
                            return(Funds);
                        }
                        else
                        {
                            Console.WriteLine("You lost...");
                            Funds = Funds - Amount;
                            return(Funds);
                        }
                    }
                }
            }
            if (UserInput == "19")
            {
                if (Hit == 0 || Hit == 00)
                {
                    Console.WriteLine($"We landed on {Hit}. Reroll.");
                    goto Bet;
                }
                for (int i = 0; i < Number.Length; i++)
                {
                    if (Number[i] == Hit)
                    {
                        Console.WriteLine($"We landed on {Hit}!");
                        if (Hit == 19 || Hit == 22 || Hit == 25)
                        {
                            Console.WriteLine("You won!");
                            Funds = Funds + Amount * 11;
                            return(Funds);
                        }
                        else
                        {
                            Console.WriteLine("You lost...");
                            Funds = Funds - Amount;
                            return(Funds);
                        }
                    }
                }
            }
            if (UserInput == "22")
            {
                if (Hit == 0 || Hit == 00)
                {
                    Console.WriteLine($"We landed on {Hit}. Reroll.");
                    goto Bet;
                }
                for (int i = 0; i < Number.Length; i++)
                {
                    if (Number[i] == Hit)
                    {
                        Console.WriteLine($"We landed on {Hit}!");
                        if (Hit == 22 || Hit == 23 || Hit == 24)
                        {
                            Console.WriteLine("You won!");
                            Funds = Funds + Amount * 11;
                            return(Funds);
                        }
                        else
                        {
                            Console.WriteLine("You lost...");
                            Funds = Funds - Amount;
                            return(Funds);
                        }
                    }
                }
            }
            if (UserInput == "25")
            {
                if (Hit == 0 || Hit == 00)
                {
                    Console.WriteLine($"We landed on {Hit}. Reroll.");
                    goto Bet;
                }
                for (int i = 0; i < Number.Length; i++)
                {
                    if (Number[i] == Hit)
                    {
                        Console.WriteLine($"We landed on {Hit}!");
                        if (Hit == 25 || Hit == 26 || Hit == 27)
                        {
                            Console.WriteLine("You won!");
                            Funds = Funds + Amount * 11;
                            return(Funds);
                        }
                        else
                        {
                            Console.WriteLine("You lost...");
                            Funds = Funds - Amount;
                            return(Funds);
                        }
                    }
                }
            }
            if (UserInput == "28")
            {
                if (Hit == 0 || Hit == 00)
                {
                    Console.WriteLine($"We landed on {Hit}. Reroll.");
                    goto Bet;
                }
                for (int i = 0; i < Number.Length; i++)
                {
                    if (Number[i] == Hit)
                    {
                        Console.WriteLine($"We landed on {Hit}!");
                        if (Hit == 28 || Hit == 29 || Hit == 30)
                        {
                            Console.WriteLine("You won!");
                            Funds = Funds + Amount * 11;
                            return(Funds);
                        }
                        else
                        {
                            Console.WriteLine("You lost...");
                            Funds = Funds - Amount;
                            return(Funds);
                        }
                    }
                }
            }
            if (UserInput == "31")
            {
                if (Hit == 0 || Hit == 00)
                {
                    Console.WriteLine($"We landed on {Hit}. Reroll.");
                    goto Bet;
                }
                for (int i = 0; i < Number.Length; i++)
                {
                    if (Number[i] == Hit)
                    {
                        Console.WriteLine($"We landed on {Hit}!");
                        if (Hit == 31 || Hit == 32 || Hit == 33)
                        {
                            Console.WriteLine("You won!");
                            Funds = Funds + Amount * 11;
                            return(Funds);
                        }
                        else
                        {
                            Console.WriteLine("You lost...");
                            Funds = Funds - Amount;
                            return(Funds);
                        }
                    }
                }
            }
            if (UserInput == "34")
            {
                if (Hit == 0 || Hit == 00)
                {
                    Console.WriteLine($"We landed on {Hit}. Reroll.");
                    goto Bet;
                }
                for (int i = 0; i < Number.Length; i++)
                {
                    if (Number[i] == Hit)
                    {
                        Console.WriteLine($"We landed on {Hit}!");
                        if (Hit == 34 || Hit == 35 || Hit == 36)
                        {
                            Console.WriteLine("You won!");
                            Funds = Funds + Amount * 11;
                            return(Funds);
                        }
                        else
                        {
                            Console.WriteLine("You lost...");
                            Funds = Funds - Amount;
                            return(Funds);
                        }
                    }
                }
            }
            return(Funds);
        }
Example #4
0
        public int LowsHighsBet(int Funds)
        {
Bet:
            Console.WriteLine("Lows or Highs?");
            string UserInput = Console.ReadLine().ToLower();

            if (UserInput == "lows")
            {
                goto Amount;
            }
            if (UserInput == "highs")
            {
                goto Amount;
            }
            else
            {
                Console.WriteLine("You won't win that way!");
                goto Bet;
            }

Amount:
            Console.WriteLine("How much do you want to bet?");
            if (int.TryParse(Console.ReadLine(), out int Amount))
            {
                if (Amount > Funds)
                {
                    Console.WriteLine("You don't have enough money.");
                    goto Amount;
                }
            }
            else
            {
                Console.WriteLine("We don't accept that kind of currency here.");
                goto Amount;
            }

            RandomNumber r   = new RandomNumber();
            int          Hit = r.RandomNumberGenerator();

            if (UserInput == "lows")
            {
                if (Hit == 0 || Hit == 00)
                {
                    Console.WriteLine($"We landed on {Hit}. Reroll.");
                    goto Bet;
                }
                for (int i = 0; i < Number.Length; i++)
                {
                    if (Number[i] == Hit)
                    {
                        Console.WriteLine($"We landed on {Hit}!");
                        if (Hit == 1 || Hit == 2 || Hit == 3 || Hit == 4 || Hit == 5 || Hit == 6 || Hit == 7 || Hit == 8 ||
                            Hit == 9 || Hit == 10 || Hit == 11 || Hit == 12 || Hit == 13 || Hit == 14 || Hit == 15 ||
                            Hit == 16 || Hit == 17 || Hit == 18)
                        {
                            Console.WriteLine("You won!");
                            Funds = Funds + Amount;
                            return(Funds);
                        }
                        else
                        {
                            Console.WriteLine("You lost...");
                            Funds = Funds - Amount;
                            return(Funds);
                        }
                    }
                }
            }
            if (UserInput == "highs")
            {
                if (Hit == 0 || Hit == 00)
                {
                    Console.WriteLine($"We landed on {Hit}. Reroll.");
                    goto Bet;
                }
                for (int i = 0; i < Number.Length; i++)
                {
                    if (Number[i] == Hit)
                    {
                        Console.WriteLine($"We landed on {Hit}!");
                        if (Hit == 1 || Hit == 2 || Hit == 3 || Hit == 4 || Hit == 5 || Hit == 6 || Hit == 7 || Hit == 8 ||
                            Hit == 9 || Hit == 10 || Hit == 11 || Hit == 12 || Hit == 13 || Hit == 14 || Hit == 15 ||
                            Hit == 16 || Hit == 17 || Hit == 18)
                        {
                            Console.WriteLine("You lost...");
                            Funds = Funds - Amount;
                            return(Funds);
                        }
                        else
                        {
                            Console.WriteLine("You won!");
                            Funds = Funds + Amount;
                            return(Funds);
                        }
                    }
                }
            }
            return(Funds);
        }
Example #5
0
        public int SplitBet(int Funds)
        {
            Program p = new Program();

Bet:
            Console.WriteLine("Pick your first number.");
            string UserInput = Console.ReadLine();

            if (UserInput == "1")
            {
Bet2:
                Console.WriteLine("Pick 2 or 4.");
                string UserInput2 = Console.ReadLine();

                if (UserInput2 == "2")
                {
Amount:
                    Console.WriteLine("How much do you want to bet?");
                    if (int.TryParse(Console.ReadLine(), out int Amount))
                    {
                        if (Amount > Funds)
                        {
                            Console.WriteLine("You don't have enough money.");
                            goto Amount;
                        }
                    }
                    else
                    {
                        Console.WriteLine("We don't accept that kind of currency here.");
                        goto Amount;
                    }

                    RandomNumber r   = new RandomNumber();
                    int          Hit = r.RandomNumberGenerator();

                    if (Hit == 0 || Hit == 00)
                    {
                        Console.WriteLine($"We landed on {Hit}. Reroll.");
                        goto Bet;
                    }
                    for (int i = 0; i < Number.Length; i++)
                    {
                        if (Number[i] == Hit)
                        {
                            Console.WriteLine($"We landed on {Hit}!");
                            if (Hit == 1 || Hit == 2)
                            {
                                Console.WriteLine("You won!");
                                Funds = Funds + Amount * 17;
                                return(Funds);
                            }
                            else
                            {
                                Console.WriteLine("You lost...");
                                Funds = Funds - Amount;
                                return(Funds);
                            }
                        }
                    }
                }
                if (UserInput2 == "4")
                {
Amount:
                    Console.WriteLine("How much do you want to bet?");
                    if (int.TryParse(Console.ReadLine(), out int Amount))
                    {
                        if (Amount > Funds)
                        {
                            Console.WriteLine("You don't have enough money.");
                            goto Amount;
                        }
                    }
                    else
                    {
                        Console.WriteLine("We don't accept that kind of currency here.");
                        goto Amount;
                    }

                    RandomNumber r   = new RandomNumber();
                    int          Hit = r.RandomNumberGenerator();

                    if (Hit == 0 || Hit == 00)
                    {
                        Console.WriteLine($"We landed on {Hit}. Reroll.");
                        goto Bet;
                    }
                    for (int i = 0; i < Number.Length; i++)
                    {
                        if (Number[i] == Hit)
                        {
                            Console.WriteLine($"We landed on {Hit}!");
                            if (Hit == 1 || Hit == 4)
                            {
                                Console.WriteLine("You won!");
                                Funds = Funds + Amount * 17;
                                return(Funds);
                            }
                            else
                            {
                                Console.WriteLine("You lost...");
                                Funds = Funds - Amount;
                                return(Funds);
                            }
                        }
                    }
                }
                else
                {
                    Console.WriteLine("You can only pick 2 or 4 to pair with 1.");
                    goto Bet2;
                }
            }
            if (UserInput == "2")
            {
Bet2:
                Console.WriteLine("Pick 1, 3, or 5.");
                string UserInput2 = Console.ReadLine();

                if (UserInput2 == "1")
                {
Amount:
                    Console.WriteLine("How much do you want to bet?");
                    if (int.TryParse(Console.ReadLine(), out int Amount))
                    {
                        if (Amount > Funds)
                        {
                            Console.WriteLine("You don't have enough money.");
                            goto Amount;
                        }
                    }
                    else
                    {
                        Console.WriteLine("We don't accept that kind of currency here.");
                        goto Amount;
                    }

                    RandomNumber r   = new RandomNumber();
                    int          Hit = r.RandomNumberGenerator();

                    if (Hit == 0 || Hit == 00)
                    {
                        Console.WriteLine($"We landed on {Hit}. Reroll.");
                        goto Bet;
                    }
                    for (int i = 0; i < Number.Length; i++)
                    {
                        if (Number[i] == Hit)
                        {
                            Console.WriteLine($"We landed on {Hit}!");
                            if (Hit == 2 || Hit == 1)
                            {
                                Console.WriteLine("You won!");
                                Funds = Funds + Amount * 17;
                                return(Funds);
                            }
                            else
                            {
                                Console.WriteLine("You lost...");
                                Funds = Funds - Amount;
                                return(Funds);
                            }
                        }
                    }
                }
                if (UserInput2 == "3")
                {
Amount:
                    Console.WriteLine("How much do you want to bet?");
                    if (int.TryParse(Console.ReadLine(), out int Amount))
                    {
                        if (Amount > Funds)
                        {
                            Console.WriteLine("You don't have enough money.");
                            goto Amount;
                        }
                    }
                    else
                    {
                        Console.WriteLine("We don't accept that kind of currency here.");
                        goto Amount;
                    }

                    RandomNumber r   = new RandomNumber();
                    int          Hit = r.RandomNumberGenerator();

                    if (Hit == 0 || Hit == 00)
                    {
                        Console.WriteLine($"We landed on {Hit}. Reroll.");
                        goto Bet;
                    }
                    for (int i = 0; i < Number.Length; i++)
                    {
                        if (Number[i] == Hit)
                        {
                            Console.WriteLine($"We landed on {Hit}!");
                            if (Hit == 2 || Hit == 3)
                            {
                                Console.WriteLine("You won!");
                                Funds = Funds + Amount * 17;
                                return(Funds);
                            }
                            else
                            {
                                Console.WriteLine("You lost...");
                                Funds = Funds - Amount;
                                return(Funds);
                            }
                        }
                    }
                }
                if (UserInput2 == "5")
                {
Amount:
                    Console.WriteLine("How much do you want to bet?");
                    if (int.TryParse(Console.ReadLine(), out int Amount))
                    {
                        if (Amount > Funds)
                        {
                            Console.WriteLine("You don't have enough money.");
                            goto Amount;
                        }
                    }
                    else
                    {
                        Console.WriteLine("We don't accept that kind of currency here.");
                        goto Amount;
                    }

                    RandomNumber r   = new RandomNumber();
                    int          Hit = r.RandomNumberGenerator();

                    if (Hit == 0 || Hit == 00)
                    {
                        Console.WriteLine($"We landed on {Hit}. Reroll.");
                        goto Bet;
                    }
                    for (int i = 0; i < Number.Length; i++)
                    {
                        if (Number[i] == Hit)
                        {
                            Console.WriteLine($"We landed on {Hit}!");
                            if (Hit == 2 || Hit == 5)
                            {
                                Console.WriteLine("You won!");
                                Funds = Funds + Amount * 17;
                                return(Funds);
                            }
                            else
                            {
                                Console.WriteLine("You lost...");
                                Funds = Funds - Amount;
                                return(Funds);
                            }
                        }
                    }
                }
                else
                {
                    Console.WriteLine("You can only pick 1, 3, or 5 to pair with 2.");
                    goto Bet2;
                }
            }
            if (UserInput == "3")
            {
Bet2:
                Console.WriteLine("Pick 2 or 6.");
                string UserInput2 = Console.ReadLine();

                if (UserInput2 == "2")
                {
Amount:
                    Console.WriteLine("How much do you want to bet?");
                    if (int.TryParse(Console.ReadLine(), out int Amount))
                    {
                        if (Amount > Funds)
                        {
                            Console.WriteLine("You don't have enough money.");
                            goto Amount;
                        }
                    }
                    else
                    {
                        Console.WriteLine("We don't accept that kind of currency here.");
                        goto Amount;
                    }

                    RandomNumber r   = new RandomNumber();
                    int          Hit = r.RandomNumberGenerator();

                    if (Hit == 0 || Hit == 00)
                    {
                        Console.WriteLine($"We landed on {Hit}. Reroll.");
                        goto Bet;
                    }
                    for (int i = 0; i < Number.Length; i++)
                    {
                        if (Number[i] == Hit)
                        {
                            Console.WriteLine($"We landed on {Hit}!");
                            if (Hit == 3 || Hit == 2)
                            {
                                Console.WriteLine("You won!");
                                Funds = Funds + Amount * 17;
                                return(Funds);
                            }
                            else
                            {
                                Console.WriteLine("You lost...");
                                Funds = Funds - Amount;
                                return(Funds);
                            }
                        }
                    }
                }
                if (UserInput2 == "6")
                {
Amount:
                    Console.WriteLine("How much do you want to bet?");
                    if (int.TryParse(Console.ReadLine(), out int Amount))
                    {
                        if (Amount > Funds)
                        {
                            Console.WriteLine("You don't have enough money.");
                            goto Amount;
                        }
                    }
                    else
                    {
                        Console.WriteLine("We don't accept that kind of currency here.");
                        goto Amount;
                    }

                    RandomNumber r   = new RandomNumber();
                    int          Hit = r.RandomNumberGenerator();

                    if (Hit == 0 || Hit == 00)
                    {
                        Console.WriteLine($"We landed on {Hit}. Reroll.");
                        goto Bet;
                    }
                    for (int i = 0; i < Number.Length; i++)
                    {
                        if (Number[i] == Hit)
                        {
                            Console.WriteLine($"We landed on {Hit}!");
                            if (Hit == 3 || Hit == 6)
                            {
                                Console.WriteLine("You won!");
                                Funds = Funds + Amount * 17;
                                return(Funds);
                            }
                            else
                            {
                                Console.WriteLine("You lost...");
                                Funds = Funds - Amount;
                                return(Funds);
                            }
                        }
                    }
                }
                else
                {
                    Console.WriteLine("You can only pick 2 or 6 to pair with 3.");
                    goto Bet2;
                }
            }
            if (UserInput == "4" || UserInput == "7" || UserInput == "10" || UserInput == "13" || UserInput == "16" || UserInput == "19" ||
                UserInput == "22" || UserInput == "25" || UserInput == "28" || UserInput == "31")
            {
                int.TryParse(UserInput, out int Input);
Bet2:
                Console.WriteLine($"Pick {Input + 1}, {Input - 3}, or {Input + 3}.");
                string UserInput2 = Console.ReadLine();

                if (int.TryParse(UserInput2, out int Input2))
                {
                    if (Input2 == Input + 1)
                    {
Amount:
                        Console.WriteLine("How much do you want to bet?");
                        if (int.TryParse(Console.ReadLine(), out int Amount))
                        {
                            if (Amount > Funds)
                            {
                                Console.WriteLine("You don't have enough money.");
                                goto Amount;
                            }
                        }
                        else
                        {
                            Console.WriteLine("We don't accept that kind of currency here.");
                            goto Amount;
                        }

                        RandomNumber r   = new RandomNumber();
                        int          Hit = r.RandomNumberGenerator();

                        if (Hit == 0 || Hit == 00)
                        {
                            Console.WriteLine($"We landed on {Hit}. Reroll.");
                            goto Bet;
                        }
                        for (int i = 0; i < Number.Length; i++)
                        {
                            if (Number[i] == Hit)
                            {
                                Console.WriteLine($"We landed on {Hit}!");
                                if (Hit == Input || Hit == Input2)
                                {
                                    Console.WriteLine("You won!");
                                    Funds = Funds + Amount * 17;
                                    return(Funds);
                                }
                                else
                                {
                                    Console.WriteLine("You lost...");
                                    Funds = Funds - Amount;
                                    return(Funds);
                                }
                            }
                        }
                    }
                    if (Input2 == Input - 3)
                    {
Amount:
                        Console.WriteLine("How much do you want to bet?");
                        if (int.TryParse(Console.ReadLine(), out int Amount))
                        {
                            if (Amount > Funds)
                            {
                                Console.WriteLine("You don't have enough money.");
                                goto Amount;
                            }
                        }
                        else
                        {
                            Console.WriteLine("We don't accept that kind of currency here.");
                            goto Amount;
                        }

                        RandomNumber r   = new RandomNumber();
                        int          Hit = r.RandomNumberGenerator();

                        if (Hit == 0 || Hit == 00)
                        {
                            Console.WriteLine($"We landed on {Hit}. Reroll.");
                            goto Bet;
                        }
                        for (int i = 0; i < Number.Length; i++)
                        {
                            if (Number[i] == Hit)
                            {
                                Console.WriteLine($"We landed on {Hit}!");
                                if (Hit == Input || Hit == Input2)
                                {
                                    Console.WriteLine("You won!");
                                    Funds = Funds + Amount * 17;
                                    return(Funds);
                                }
                                else
                                {
                                    Console.WriteLine("You lost...");
                                    Funds = Funds - Amount;
                                    return(Funds);
                                }
                            }
                        }
                    }
                    if (Input2 == Input + 3)
                    {
Amount:
                        Console.WriteLine("How much do you want to bet?");
                        if (int.TryParse(Console.ReadLine(), out int Amount))
                        {
                            if (Amount > Funds)
                            {
                                Console.WriteLine("You don't have enough money.");
                                goto Amount;
                            }
                        }
                        else
                        {
                            Console.WriteLine("We don't accept that kind of currency here.");
                            goto Amount;
                        }

                        RandomNumber r   = new RandomNumber();
                        int          Hit = r.RandomNumberGenerator();

                        if (Hit == 0 || Hit == 00)
                        {
                            Console.WriteLine($"We landed on {Hit}. Reroll.");
                            goto Bet;
                        }
                        for (int i = 0; i < Number.Length; i++)
                        {
                            if (Number[i] == Hit)
                            {
                                Console.WriteLine($"We landed on {Hit}!");
                                if (Hit == Input || Hit == Input2)
                                {
                                    Console.WriteLine("You won!");
                                    Funds = Funds + Amount * 17;
                                    return(Funds);
                                }
                                else
                                {
                                    Console.WriteLine("You lost...");
                                    Funds = Funds - Amount;
                                    return(Funds);
                                }
                            }
                        }
                    }
                }
                else
                {
                    Console.WriteLine($"You can only pick {Input + 1}, {Input - 3}, or {Input + 3} to pair with {Input}.");
                    goto Bet2;
                }
            }
            if (UserInput == "5" || UserInput == "8" || UserInput == "11" || UserInput == "14" || UserInput == "17" || UserInput == "20" ||
                UserInput == "23" || UserInput == "26" || UserInput == "29" || UserInput == "32")
            {
                int.TryParse(UserInput, out int Input);
Bet2:
                Console.WriteLine($"Pick {Input - 1}, {Input - 3}, {Input + 3}, or {Input + 1}.");
                string UserInput2 = Console.ReadLine();

                if (int.TryParse(UserInput2, out int Input2))
                {
                    if (Input2 == Input - 1)
                    {
Amount:
                        Console.WriteLine("How much do you want to bet?");
                        if (int.TryParse(Console.ReadLine(), out int Amount))
                        {
                            if (Amount > Funds)
                            {
                                Console.WriteLine("You don't have enough money.");
                                goto Amount;
                            }
                        }
                        else
                        {
                            Console.WriteLine("We don't accept that kind of currency here.");
                            goto Amount;
                        }

                        RandomNumber r   = new RandomNumber();
                        int          Hit = r.RandomNumberGenerator();

                        if (Hit == 0 || Hit == 00)
                        {
                            Console.WriteLine($"We landed on {Hit}. Reroll.");
                            goto Bet;
                        }
                        for (int i = 0; i < Number.Length; i++)
                        {
                            if (Number[i] == Hit)
                            {
                                Console.WriteLine($"We landed on {Hit}!");
                                if (Hit == Input || Hit == Input2)
                                {
                                    Console.WriteLine("You won!");
                                    Funds = Funds + Amount * 17;
                                    return(Funds);
                                }
                                else
                                {
                                    Console.WriteLine("You lost...");
                                    Funds = Funds - Amount;
                                    return(Funds);
                                }
                            }
                        }
                    }
                    if (Input2 == Input - 3)
                    {
Amount:
                        Console.WriteLine("How much do you want to bet?");
                        if (int.TryParse(Console.ReadLine(), out int Amount))
                        {
                            if (Amount > Funds)
                            {
                                Console.WriteLine("You don't have enough money.");
                                goto Amount;
                            }
                        }
                        else
                        {
                            Console.WriteLine("We don't accept that kind of currency here.");
                            goto Amount;
                        }

                        RandomNumber r   = new RandomNumber();
                        int          Hit = r.RandomNumberGenerator();

                        if (Hit == 0 || Hit == 00)
                        {
                            Console.WriteLine($"We landed on {Hit}. Reroll.");
                            goto Bet;
                        }
                        for (int i = 0; i < Number.Length; i++)
                        {
                            if (Number[i] == Hit)
                            {
                                Console.WriteLine($"We landed on {Hit}!");
                                if (Hit == Input || Hit == Input2)
                                {
                                    Console.WriteLine("You won!");
                                    Funds = Funds + Amount * 17;
                                    return(Funds);
                                }
                                else
                                {
                                    Console.WriteLine("You lost...");
                                    Funds = Funds - Amount;
                                    return(Funds);
                                }
                            }
                        }
                    }
                    if (Input2 == Input + 3)
                    {
Amount:
                        Console.WriteLine("How much do you want to bet?");
                        if (int.TryParse(Console.ReadLine(), out int Amount))
                        {
                            if (Amount > Funds)
                            {
                                Console.WriteLine("You don't have enough money.");
                                goto Amount;
                            }
                        }
                        else
                        {
                            Console.WriteLine("We don't accept that kind of currency here.");
                            goto Amount;
                        }

                        RandomNumber r   = new RandomNumber();
                        int          Hit = r.RandomNumberGenerator();

                        if (Hit == 0 || Hit == 00)
                        {
                            Console.WriteLine($"We landed on {Hit}. Reroll.");
                            goto Bet;
                        }
                        for (int i = 0; i < Number.Length; i++)
                        {
                            if (Number[i] == Hit)
                            {
                                Console.WriteLine($"We landed on {Hit}!");
                                if (Hit == Input || Hit == Input2)
                                {
                                    Console.WriteLine("You won!");
                                    Funds = Funds + Amount * 17;
                                    return(Funds);
                                }
                                else
                                {
                                    Console.WriteLine("You lost...");
                                    Funds = Funds - Amount;
                                    return(Funds);
                                }
                            }
                        }
                    }
                    if (Input2 == Input + 1)
                    {
Amount:
                        Console.WriteLine("How much do you want to bet?");
                        if (int.TryParse(Console.ReadLine(), out int Amount))
                        {
                            if (Amount > Funds)
                            {
                                Console.WriteLine("You don't have enough money.");
                                goto Amount;
                            }
                        }
                        else
                        {
                            Console.WriteLine("We don't accept that kind of currency here.");
                            goto Amount;
                        }

                        RandomNumber r   = new RandomNumber();
                        int          Hit = r.RandomNumberGenerator();

                        if (Hit == 0 || Hit == 00)
                        {
                            Console.WriteLine($"We landed on {Hit}. Reroll.");
                            goto Bet;
                        }
                        for (int i = 0; i < Number.Length; i++)
                        {
                            if (Number[i] == Hit)
                            {
                                Console.WriteLine($"We landed on {Hit}!");
                                if (Hit == Input || Hit == Input2)
                                {
                                    Console.WriteLine("You won!");
                                    Funds = Funds + Amount * 17;
                                    return(Funds);
                                }
                                else
                                {
                                    Console.WriteLine("You lost...");
                                    Funds = Funds - Amount;
                                    return(Funds);
                                }
                            }
                        }
                    }
                }
                else
                {
                    Console.WriteLine($"You can only pick {Input - 1}, {Input - 3}, {Input + 3}, or {Input + 1} to pair with {Input}.");
                    goto Bet2;
                }
            }
            if (UserInput == "6" || UserInput == "9" || UserInput == "12" || UserInput == "15" || UserInput == "18" || UserInput == "21" ||
                UserInput == "24" || UserInput == "27" || UserInput == "30" || UserInput == "33")
            {
                int.TryParse(UserInput, out int Input);
Bet2:
                Console.WriteLine($"Pick {Input - 1}, {Input - 3}, or {Input + 3}.");
                string UserInput2 = Console.ReadLine();

                if (int.TryParse(UserInput2, out int Input2))
                {
                    if (Input2 == Input - 1)
                    {
Amount:
                        Console.WriteLine("How much do you want to bet?");
                        if (int.TryParse(Console.ReadLine(), out int Amount))
                        {
                            if (Amount > Funds)
                            {
                                Console.WriteLine("You don't have enough money.");
                                goto Amount;
                            }
                        }
                        else
                        {
                            Console.WriteLine("We don't accept that kind of currency here.");
                            goto Amount;
                        }

                        RandomNumber r   = new RandomNumber();
                        int          Hit = r.RandomNumberGenerator();

                        if (Hit == 0 || Hit == 00)
                        {
                            Console.WriteLine($"We landed on {Hit}. Reroll.");
                            goto Bet;
                        }
                        for (int i = 0; i < Number.Length; i++)
                        {
                            if (Number[i] == Hit)
                            {
                                Console.WriteLine($"We landed on {Hit}!");
                                if (Hit == Input || Hit == Input2)
                                {
                                    Console.WriteLine("You won!");
                                    Funds = Funds + Amount * 17;
                                    return(Funds);
                                }
                                else
                                {
                                    Console.WriteLine("You lost...");
                                    Funds = Funds - Amount;
                                    return(Funds);
                                }
                            }
                        }
                    }
                    if (Input2 == Input - 3)
                    {
Amount:
                        Console.WriteLine("How much do you want to bet?");
                        if (int.TryParse(Console.ReadLine(), out int Amount))
                        {
                            if (Amount > Funds)
                            {
                                Console.WriteLine("You don't have enough money.");
                                goto Amount;
                            }
                        }
                        else
                        {
                            Console.WriteLine("We don't accept that kind of currency here.");
                            goto Amount;
                        }

                        RandomNumber r   = new RandomNumber();
                        int          Hit = r.RandomNumberGenerator();

                        if (Hit == 0 || Hit == 00)
                        {
                            Console.WriteLine($"We landed on {Hit}. Reroll.");
                            goto Bet;
                        }
                        for (int i = 0; i < Number.Length; i++)
                        {
                            if (Number[i] == Hit)
                            {
                                Console.WriteLine($"We landed on {Hit}!");
                                if (Hit == Input || Hit == Input2)
                                {
                                    Console.WriteLine("You won!");
                                    Funds = Funds + Amount * 17;
                                    return(Funds);
                                }
                                else
                                {
                                    Console.WriteLine("You lost...");
                                    Funds = Funds - Amount;
                                    return(Funds);
                                }
                            }
                        }
                    }
                    if (Input2 == Input + 3)
                    {
Amount:
                        Console.WriteLine("How much do you want to bet?");
                        if (int.TryParse(Console.ReadLine(), out int Amount))
                        {
                            if (Amount > Funds)
                            {
                                Console.WriteLine("You don't have enough money.");
                                goto Amount;
                            }
                        }
                        else
                        {
                            Console.WriteLine("We don't accept that kind of currency here.");
                            goto Amount;
                        }

                        RandomNumber r   = new RandomNumber();
                        int          Hit = r.RandomNumberGenerator();

                        if (Hit == 0 || Hit == 00)
                        {
                            Console.WriteLine($"We landed on {Hit}. Reroll.");
                            goto Bet;
                        }
                        for (int i = 0; i < Number.Length; i++)
                        {
                            if (Number[i] == Hit)
                            {
                                Console.WriteLine($"We landed on {Hit}!");
                                if (Hit == Input || Hit == Input2)
                                {
                                    Console.WriteLine("You won!");
                                    Funds = Funds + Amount * 17;
                                    return(Funds);
                                }
                                else
                                {
                                    Console.WriteLine("You lost...");
                                    Funds = Funds - Amount;
                                    return(Funds);
                                }
                            }
                        }
                    }
                }
                else
                {
                    Console.WriteLine($"You can only pick {Input - 1}, {Input - 3}, or {Input + 3} to pair with {Input}.");
                    goto Bet2;
                }
            }
            if (UserInput == "34")
            {
Bet2:
                Console.WriteLine("Pick 35 or 31.");
                string UserInput2 = Console.ReadLine();

                if (UserInput2 == "35")
                {
Amount:
                    Console.WriteLine("How much do you want to bet?");
                    if (int.TryParse(Console.ReadLine(), out int Amount))
                    {
                        if (Amount > Funds)
                        {
                            Console.WriteLine("You don't have enough money.");
                            goto Amount;
                        }
                    }
                    else
                    {
                        Console.WriteLine("We don't accept that kind of currency here.");
                        goto Amount;
                    }

                    RandomNumber r   = new RandomNumber();
                    int          Hit = r.RandomNumberGenerator();

                    if (Hit == 0 || Hit == 00)
                    {
                        Console.WriteLine($"We landed on {Hit}. Reroll.");
                        goto Bet;
                    }
                    for (int i = 0; i < Number.Length; i++)
                    {
                        if (Number[i] == Hit)
                        {
                            Console.WriteLine($"We landed on {Hit}!");
                            if (Hit == 34 || Hit == 35)
                            {
                                Console.WriteLine("You won!");
                                Funds = Funds + Amount * 17;
                                return(Funds);
                            }
                            else
                            {
                                Console.WriteLine("You lost...");
                                Funds = Funds - Amount;
                                return(Funds);
                            }
                        }
                    }
                }
                if (UserInput2 == "31")
                {
Amount:
                    Console.WriteLine("How much do you want to bet?");
                    if (int.TryParse(Console.ReadLine(), out int Amount))
                    {
                        if (Amount > Funds)
                        {
                            Console.WriteLine("You don't have enough money.");
                            goto Amount;
                        }
                    }
                    else
                    {
                        Console.WriteLine("We don't accept that kind of currency here.");
                        goto Amount;
                    }

                    RandomNumber r   = new RandomNumber();
                    int          Hit = r.RandomNumberGenerator();

                    if (Hit == 0 || Hit == 00)
                    {
                        Console.WriteLine($"We landed on {Hit}. Reroll.");
                        goto Bet;
                    }
                    for (int i = 0; i < Number.Length; i++)
                    {
                        if (Number[i] == Hit)
                        {
                            Console.WriteLine($"We landed on {Hit}!");
                            if (Hit == 34 || Hit == 31)
                            {
                                Console.WriteLine("You won!");
                                Funds = Funds + Amount * 17;
                                return(Funds);
                            }
                            else
                            {
                                Console.WriteLine("You lost...");
                                Funds = Funds - Amount;
                                return(Funds);
                            }
                        }
                    }
                }
                else
                {
                    Console.WriteLine("You can only pick 35 or 31 to pair with 34.");
                    goto Bet2;
                }
            }
            if (UserInput == "35")
            {
Bet2:
                Console.WriteLine("Pick 32, 34, or 36.");
                string UserInput2 = Console.ReadLine();

                if (UserInput2 == "32")
                {
Amount:
                    Console.WriteLine("How much do you want to bet?");
                    if (int.TryParse(Console.ReadLine(), out int Amount))
                    {
                        if (Amount > Funds)
                        {
                            Console.WriteLine("You don't have enough money.");
                            goto Amount;
                        }
                    }
                    else
                    {
                        Console.WriteLine("We don't accept that kind of currency here.");
                        goto Amount;
                    }

                    RandomNumber r   = new RandomNumber();
                    int          Hit = r.RandomNumberGenerator();

                    if (Hit == 0 || Hit == 00)
                    {
                        Console.WriteLine($"We landed on {Hit}. Reroll.");
                        goto Bet;
                    }
                    for (int i = 0; i < Number.Length; i++)
                    {
                        if (Number[i] == Hit)
                        {
                            Console.WriteLine($"We landed on {Hit}!");
                            if (Hit == 32 || Hit == 35)
                            {
                                Console.WriteLine("You won!");
                                Funds = Funds + Amount * 17;
                                return(Funds);
                            }
                            else
                            {
                                Console.WriteLine("You lost...");
                                Funds = Funds - Amount;
                                return(Funds);
                            }
                        }
                    }
                }
                if (UserInput2 == "34")
                {
Amount:
                    Console.WriteLine("How much do you want to bet?");
                    if (int.TryParse(Console.ReadLine(), out int Amount))
                    {
                        if (Amount > Funds)
                        {
                            Console.WriteLine("You don't have enough money.");
                            goto Amount;
                        }
                    }
                    else
                    {
                        Console.WriteLine("We don't accept that kind of currency here.");
                        goto Amount;
                    }

                    RandomNumber r   = new RandomNumber();
                    int          Hit = r.RandomNumberGenerator();

                    if (Hit == 0 || Hit == 00)
                    {
                        Console.WriteLine($"We landed on {Hit}. Reroll.");
                        goto Bet;
                    }
                    for (int i = 0; i < Number.Length; i++)
                    {
                        if (Number[i] == Hit)
                        {
                            Console.WriteLine($"We landed on {Hit}!");
                            if (Hit == 34 || Hit == 35)
                            {
                                Console.WriteLine("You won!");
                                Funds = Funds + Amount * 17;
                                return(Funds);
                            }
                            else
                            {
                                Console.WriteLine("You lost...");
                                Funds = Funds - Amount;
                                return(Funds);
                            }
                        }
                    }
                }
                if (UserInput2 == "36")
                {
Amount:
                    Console.WriteLine("How much do you want to bet?");
                    if (int.TryParse(Console.ReadLine(), out int Amount))
                    {
                        if (Amount > Funds)
                        {
                            Console.WriteLine("You don't have enough money.");
                            goto Amount;
                        }
                    }
                    else
                    {
                        Console.WriteLine("We don't accept that kind of currency here.");
                        goto Amount;
                    }

                    RandomNumber r   = new RandomNumber();
                    int          Hit = r.RandomNumberGenerator();

                    if (Hit == 0 || Hit == 00)
                    {
                        Console.WriteLine($"We landed on {Hit}. Reroll.");
                        goto Bet;
                    }
                    for (int i = 0; i < Number.Length; i++)
                    {
                        if (Number[i] == Hit)
                        {
                            Console.WriteLine($"We landed on {Hit}!");
                            if (Hit == 35 || Hit == 36)
                            {
                                Console.WriteLine("You won!");
                                Funds = Funds + Amount * 17;
                                return(Funds);
                            }
                            else
                            {
                                Console.WriteLine("You lost...");
                                Funds = Funds - Amount;
                                return(Funds);
                            }
                        }
                    }
                }
                else
                {
                    Console.WriteLine("You can only pick 32, 34, or 36 to pair with 35.");
                    goto Bet2;
                }
            }
            if (UserInput == "36")
            {
Bet2:
                Console.WriteLine("Pick 33 or 35.");
                string UserInput2 = Console.ReadLine();

                if (UserInput2 == "33")
                {
Amount:
                    Console.WriteLine("How much do you want to bet?");
                    if (int.TryParse(Console.ReadLine(), out int Amount))
                    {
                        if (Amount > Funds)
                        {
                            Console.WriteLine("You don't have enough money.");
                            goto Amount;
                        }
                    }
                    else
                    {
                        Console.WriteLine("We don't accept that kind of currency here.");
                        goto Amount;
                    }

                    RandomNumber r   = new RandomNumber();
                    int          Hit = r.RandomNumberGenerator();

                    if (Hit == 0 || Hit == 00)
                    {
                        Console.WriteLine($"We landed on {Hit}. Reroll.");
                        goto Bet;
                    }
                    for (int i = 0; i < Number.Length; i++)
                    {
                        if (Number[i] == Hit)
                        {
                            Console.WriteLine($"We landed on {Hit}!");
                            if (Hit == 33 || Hit == 36)
                            {
                                Console.WriteLine("You won!");
                                Funds = Funds + Amount * 17;
                                return(Funds);
                            }
                            else
                            {
                                Console.WriteLine("You lost...");
                                Funds = Funds - Amount;
                                return(Funds);
                            }
                        }
                    }
                }
                if (UserInput2 == "35")
                {
Amount:
                    Console.WriteLine("How much do you want to bet?");
                    if (int.TryParse(Console.ReadLine(), out int Amount))
                    {
                        if (Amount > Funds)
                        {
                            Console.WriteLine("You don't have enough money.");
                            goto Amount;
                        }
                    }
                    else
                    {
                        Console.WriteLine("We don't accept that kind of currency here.");
                        goto Amount;
                    }

                    RandomNumber r   = new RandomNumber();
                    int          Hit = r.RandomNumberGenerator();

                    if (Hit == 0 || Hit == 00)
                    {
                        Console.WriteLine($"We landed on {Hit}. Reroll.");
                        goto Bet;
                    }
                    for (int i = 0; i < Number.Length; i++)
                    {
                        if (Number[i] == Hit)
                        {
                            Console.WriteLine($"We landed on {Hit}!");
                            if (Hit == 35 || Hit == 36)
                            {
                                Console.WriteLine("You won!");
                                Funds = Funds + Amount * 17;
                                return(Funds);
                            }
                            else
                            {
                                Console.WriteLine("You lost...");
                                Funds = Funds - Amount;
                                return(Funds);
                            }
                        }
                    }
                }
                else
                {
                    Console.WriteLine("You can only pick 33 or 35 to pair with 36.");
                    goto Bet2;
                }
            }
            else
            {
                Console.WriteLine("You won't win that way!");
                goto Bet;
            }
            return(Funds);
        }
Example #6
0
        public int EvensOddsBet(int Funds)
        {
Bet:
            Console.WriteLine("Evens or Odds?");
            string UserInput = Console.ReadLine().ToLower();

            if (UserInput == "evens")
            {
                goto Amount;
            }
            if (UserInput == "odds")
            {
                goto Amount;
            }
            else
            {
                Console.WriteLine("You won't win that way!");
                goto Bet;
            }

Amount:
            Console.WriteLine("How much do you want to bet?");
            if (int.TryParse(Console.ReadLine(), out int Amount))
            {
                if (Amount > Funds)
                {
                    Console.WriteLine("You don't have enough money.");
                    goto Amount;
                }
            }
            else
            {
                Console.WriteLine("We don't accept that kind of currency here.");
                goto Amount;
            }

            RandomNumber r   = new RandomNumber();
            int          Hit = r.RandomNumberGenerator();

            if (UserInput == "evens")
            {
                if (Hit == 0 || Hit == 00)
                {
                    Console.WriteLine($"We landed on {Hit}. Reroll.");
                    goto Bet;
                }
                for (int i = 0; i < Number.Length; i++)
                {
                    if (Number[i] == Hit)
                    {
                        Console.WriteLine($"We landed on {Hit}!");
                        if (Hit % 2 == 0)
                        {
                            Console.WriteLine("You won!");
                            Funds = Funds + Amount;
                            return(Funds);
                        }
                        else
                        {
                            Console.WriteLine("You lost...");
                            Funds = Funds - Amount;
                            return(Funds);
                        }
                    }
                }
            }
            if (UserInput == "odds")
            {
                if (Hit == 0 || Hit == 00)
                {
                    Console.WriteLine($"We landed on {Hit}. Reroll.");
                    goto Bet;
                }
                for (int i = 0; i < Number.Length; i++)
                {
                    if (Number[i] == Hit)
                    {
                        Console.WriteLine($"We landed on {Hit}!");
                        if (Hit % 2 != 0)
                        {
                            Console.WriteLine("You won!");
                            Funds = Funds + Amount;
                            return(Funds);
                        }
                        else
                        {
                            Console.WriteLine("You lost...");
                            Funds = Funds - Amount;
                            return(Funds);
                        }
                    }
                }
            }
            return(Funds);
        }
Example #7
0
        public int NumbersBet(int Funds)
        {
Bet:
            Console.WriteLine("What number do you want to bet on?");
            if (int.TryParse(Console.ReadLine(), out int Bet))
            {
                for (int i = 0; i < Number.Length; i++)
                {
                    if (Number[i] == Bet)
                    {
                        goto Amount;
                    }
                }
                if (Bet > 36 || Bet < 1)
                {
                    Console.WriteLine("You won't win that way!");
                    goto Bet;
                }
            }
            else
            {
                Console.WriteLine("You won't win that way!");
                goto Bet;
            }

Amount:
            Console.WriteLine("How much do you want to bet?");
            if (int.TryParse(Console.ReadLine(), out int Amount))
            {
                if (Amount > Funds)
                {
                    Console.WriteLine("You don't have enough money.");
                    goto Amount;
                }
            }
            else
            {
                Console.WriteLine("We don't accept that kind of currency here.");
                goto Amount;
            }

            RandomNumber r   = new RandomNumber();
            int          Hit = r.RandomNumberGenerator();

            Console.WriteLine($"We landed on {Hit}!");
            if (Hit == 0 || Hit == 00)
            {
                Console.WriteLine("Reroll.");
                goto Bet;
            }
            if (Hit == Bet)
            {
                Console.WriteLine("You won!");
                Funds = Funds + Amount * 35;
                return(Funds);
            }
            else
            {
                Console.WriteLine("You lost...");
                Funds = Funds - Amount;
                return(Funds);
            }
        }