示例#1
0
 public void IsDoubleRowsWin(SpinWheel spinWheel, DoubleRows doubleRowBet)
 {
     if (spinWheel.winningRow + 1 == doubleRowBet.row1 || spinWheel.winningRow + 1 == doubleRowBet.row2)
     {
         Console.WriteLine("Your double row bet won");
     }
     else
     {
         Console.WriteLine("Your double row bet didnt win");
     }
 }
示例#2
0
 public void IsColumnsWin(SpinWheel spinWheel, Columns columnBet)
 {
     if (spinWheel.winningColumn + 1 == columnBet.column)
     {
         Console.WriteLine("Your column bet won");
     }
     else
     {
         Console.WriteLine("Your column bet didnt win");
     }
 }
示例#3
0
 public void IsRowWin(SpinWheel spinWheel, Rows rowBet)
 {
     if (spinWheel.winningRow + 1 == rowBet.row)
     {
         Console.WriteLine("Your row bet won");
     }
     else
     {
         Console.WriteLine("Your row bet didnt win");
     }
 }
示例#4
0
 public void IsSpecificNumberWin(SpinWheel spinWheel, SpecificNumberBet specificNumberBet, Board[,] rouletteBoard)
 {
     if (rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number == specificNumberBet.numberBettingOn)
     {
         Console.WriteLine("Your bet won!");
     }
     else
     {
         Console.WriteLine("Your bet did not win");
     }
 }//works
示例#5
0
 public void IsSplitWin(SpinWheel spinWheel, Split splitBet, Board[,] rouletteBoard)
 {
     if (rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number == splitBet.number1 ||
         rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number == splitBet.number2)
     {
         Console.WriteLine("Your split bet won");
     }
     else
     {
         Console.WriteLine("Your split bet didnt win");
     }
 }
示例#6
0
 public void IsCornerWin(SpinWheel spinWheel, Corner cornerBet, Board[,] rouletteBoard)
 {
     if (rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number == cornerBet.number1 ||
         rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number == cornerBet.number2 ||
         rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number == cornerBet.number3 ||
         rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number == cornerBet.number4)
     {
         Console.WriteLine("Your Corner bet won");
     }
     else
     {
         Console.WriteLine("Your corner bet didnt win");
     }
 }
示例#7
0
 public void IsRedBlackWin(SpinWheel spinWheel, ColorBet colorBet, Board[,] rouletteBoard)
 {
     if (colorBet.colorBettingOn == 1 && rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].color.Equals("R"))
     {
         Console.WriteLine("Your color bet on red won");
     }
     else if (colorBet.colorBettingOn == 2 && rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].color.Equals("B"))
     {
         Console.WriteLine("Your color bet on black won");
     }
     else
     {
         Console.WriteLine("Your color bet did not win");
     }
 }//works
示例#8
0
        }//works

        public void IsEvenOddsWin(SpinWheel spinWheel, EvenOrOdd evenOrOddBet, Board[,] rouletteBoard)
        {
            if (evenOrOddBet.evenOrOdd == true && (rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number % 2 == 0))
            {
                Console.WriteLine("Your Even Bet won");
            }
            else if (evenOrOddBet.evenOrOdd == false && (rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number % 2 != 0))
            {
                Console.WriteLine("Your odd bet won");
            }
            else
            {
                Console.WriteLine("Your bet did not win");
            }
        }
示例#9
0
        }//works

        public void IsLowHighWin(SpinWheel spinWheel, LowHigh lowHighBet, Board[,] rouletteBoard)
        {
            if (rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number > 18 &&
                rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number <= 36 &&
                lowHighBet.high == true)
            {
                Console.WriteLine("Your high bet won");
            }
            else if (rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number >= 1 &&
                     rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number <= 18 &&
                     lowHighBet.high == false)
            {
                Console.WriteLine("Your low bet won");
            }
            else
            {
                Console.WriteLine("Your low high bet did not win");
            }
        }
示例#10
0
 public void IsDozensWin(SpinWheel spinWheel, Board[,] rouletteBoard, Dozen dozenBet)
 {
     if (rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number >= 1 &&
         rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number <= 12 && dozenBet.dozen == 1)
     {
         Console.WriteLine("Your dozen bet won");
     }
     else if (rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number >= 13 &&
              rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number <= 24 && dozenBet.dozen == 2)
     {
         Console.WriteLine("Your dozen bet won");
     }
     else if (rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number >= 25 &&
              rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number <= 36 && dozenBet.dozen == 3)
     {
         Console.WriteLine("Your dozen bet won");
     }
     else
     {
         Console.WriteLine("Your dozen bet didnt win");
     }
 }
示例#11
0
        static void Main(string[] args)
        {
            var                        rouletteBoard              = CreateBoard();
            Random                     rng                        = new Random();
            GetBet                     getBet                     = new GetBet();
            SpecificNumberBet          specificNumberBet          = new SpecificNumberBet();
            EvenOrOdd                  evenOrOddBet               = new EvenOrOdd();
            ColorBet                   colorBet                   = new ColorBet();
            LowHigh                    lowHighBet                 = new LowHigh();
            Dozen                      dozenBet                   = new Dozen();
            Columns                    columnBet                  = new Columns();
            Rows                       rowBet                     = new Rows();
            DoubleRows                 doubleRowBet               = new DoubleRows();
            Split                      splitBet                   = new Split();
            Corner                     cornerBet                  = new Corner();
            SpinWheel                  spinWheel                  = new SpinWheel(rng);
            DetermineWin               determineWin               = new DetermineWin();
            DisplayPossibleWinningBets displayPossibleWinningBets = new DisplayPossibleWinningBets();
            DisplayWinningBin          displayWinningBin          = new DisplayWinningBin();
            int                        categoryChoice;

            //for (int i = 0; i < 100; i++)
            //{
            //    doubleRowBet.row1= 1;
            //    doubleRowBet.row2 = 2;
            //    spinWheel.Spin();
            //    displayWinningBin.DisplayResult(spinWheel, rouletteBoard);
            //    determineWin.IsDoubleRowsWin(spinWheel, doubleRowBet);
            //    Console.ReadLine();
            //    Console.Clear();
            //}
            do
            {
                DisplayBoard(rouletteBoard);
                getBet.DisplayPossibleBets();
                categoryChoice = getBet.GetBetCategoryChoice();
                switch (categoryChoice)
                {
                case 0:
                {
                    break;
                }

                case 1:
                {
                    specificNumberBet.numberBettingOn = getBet.GetNumberBet();
                    spinWheel.Spin();
                    displayWinningBin.DisplayResult(spinWheel, rouletteBoard);
                    determineWin.IsSpecificNumberWin(spinWheel, specificNumberBet, rouletteBoard);
                    displayPossibleWinningBets.DisplayPossibleWins(spinWheel, rouletteBoard);
                    break;
                }

                case 2:
                {
                    colorBet.colorBettingOn = getBet.GetColorBet();
                    spinWheel.Spin();
                    displayWinningBin.DisplayResult(spinWheel, rouletteBoard);
                    determineWin.IsRedBlackWin(spinWheel, colorBet, rouletteBoard);
                    displayPossibleWinningBets.DisplayPossibleWins(spinWheel, rouletteBoard);
                    break;
                }

                case 3:
                {
                    evenOrOddBet.evenOrOdd = getBet.EvensOdds();
                    spinWheel.Spin();
                    displayWinningBin.DisplayResult(spinWheel, rouletteBoard);
                    determineWin.IsEvenOddsWin(spinWheel, evenOrOddBet, rouletteBoard);
                    displayPossibleWinningBets.DisplayPossibleWins(spinWheel, rouletteBoard);
                    break;
                }

                case 4:
                {
                    lowHighBet.high = getBet.LowHighBet();
                    spinWheel.Spin();
                    displayWinningBin.DisplayResult(spinWheel, rouletteBoard);
                    determineWin.IsLowHighWin(spinWheel, lowHighBet, rouletteBoard);
                    displayPossibleWinningBets.DisplayPossibleWins(spinWheel, rouletteBoard);
                    break;
                }

                case 5:
                {
                    dozenBet.dozen = getBet.DozensBet();
                    spinWheel.Spin();
                    displayWinningBin.DisplayResult(spinWheel, rouletteBoard);
                    determineWin.IsDozensWin(spinWheel, rouletteBoard, dozenBet);
                    displayPossibleWinningBets.DisplayPossibleWins(spinWheel, rouletteBoard);
                    break;
                }

                case 6:
                {
                    columnBet.column = getBet.ColumnBet();
                    spinWheel.Spin();
                    displayWinningBin.DisplayResult(spinWheel, rouletteBoard);
                    determineWin.IsColumnsWin(spinWheel, columnBet);
                    displayPossibleWinningBets.DisplayPossibleWins(spinWheel, rouletteBoard);
                    break;
                }

                case 7:
                {
                    rowBet.row = getBet.RowBet();
                    spinWheel.Spin();
                    displayWinningBin.DisplayResult(spinWheel, rouletteBoard);
                    determineWin.IsRowWin(spinWheel, rowBet);
                    displayPossibleWinningBets.DisplayPossibleWins(spinWheel, rouletteBoard);
                    break;
                }

                case 8:
                {
                    getBet.DoubleRowBet(doubleRowBet);
                    spinWheel.Spin();
                    displayWinningBin.DisplayResult(spinWheel, rouletteBoard);
                    determineWin.IsDoubleRowsWin(spinWheel, doubleRowBet);
                    displayPossibleWinningBets.DisplayPossibleWins(spinWheel, rouletteBoard);
                    break;
                }

                case 9:
                {
                    getBet.SplitBet(splitBet);
                    spinWheel.Spin();
                    displayWinningBin.DisplayResult(spinWheel, rouletteBoard);
                    determineWin.IsSplitWin(spinWheel, splitBet, rouletteBoard);
                    displayPossibleWinningBets.DisplayPossibleWins(spinWheel, rouletteBoard);
                    break;
                }

                case 10:
                {
                    getBet.CornerBet(cornerBet);
                    spinWheel.Spin();
                    displayWinningBin.DisplayResult(spinWheel, rouletteBoard);
                    determineWin.IsCornerWin(spinWheel, cornerBet, rouletteBoard);
                    displayPossibleWinningBets.DisplayPossibleWins(spinWheel, rouletteBoard);
                    break;
                }
                }
                Console.WriteLine("Hit enter to continue");
                Console.ReadLine();
                Console.Clear();
            } while (categoryChoice != 0);
        }
示例#12
0
        public void DisplayPossibleWins(SpinWheel spinWheel, Board[,] rouletteBoard)
        {
            Console.WriteLine($"\nYou could have won with the following bets");
            Console.WriteLine($"Specific number bet on: {rouletteBoard[spinWheel.winningColumn,spinWheel.winningRow].number}");
            if (rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].color == "B")
            {
                Console.WriteLine("Color bet: Black");
            }
            else
            {
                Console.WriteLine("Color bet: Red");
            }

            if (rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number % 2 == 0)
            {
                Console.WriteLine("Even/Odd bet: Even");
            }
            else
            {
                Console.WriteLine("Even/Odd bet: odd");
            }
            if (rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number <= 18)
            {
                Console.WriteLine("Low/High bet: Low");
            }
            else
            {
                Console.WriteLine("Low/High: High");
            }
            if (rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number <= 12)
            {
                Console.WriteLine("Dozen: 1st dozen (1-12)");
            }
            else if (rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number > 12 && rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number <= 24)
            {
                Console.WriteLine("Dozen: 2nd dozen(13-24)");
            }
            else
            {
                Console.WriteLine("Dozen: 3rd dozen (25-36)");
            }
            if (spinWheel.winningColumn == 0)
            {
                Console.WriteLine("Column: 1st column");
            }
            else if (spinWheel.winningColumn == 1)
            {
                Console.WriteLine("Column: 2nd column");
            }
            else
            {
                Console.WriteLine("Column: 3rd column");
            }
            Console.WriteLine($"Row: {spinWheel.winningRow + 1}");
            Console.WriteLine($"Double Row: Either {spinWheel.winningRow + 2} and {spinWheel.winningRow + 1} or {spinWheel.winningRow} and {spinWheel.winningRow + 1}");

            if (spinWheel.winningRow == 0)
            {
                if (rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number % 3 == 0)
                {
                    Console.WriteLine($"Split bet combinations: {rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number}" +
                                      $" and {rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number + 3} or " +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number} and " +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number - 1}");
                }
                else if (rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number % 3 == 1)
                {
                    Console.WriteLine($"Split bet combinations: {rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number}" +
                                      $" and {rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number + 3} or " +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number} and " +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number + 1}");
                }
                else
                {
                    Console.WriteLine($"Split bet combinations: {rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number}" +
                                      $"  and {rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number + 3} or " +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number} and " +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number + 1} or " +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number - 1} and " +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number}");
                }
            }
            else if (spinWheel.winningRow == 11)
            {
                if (rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number % 3 == 0)
                {
                    Console.WriteLine($"Split bet combinations: {rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number}" +
                                      $" and {rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number - 3} or " +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number} and " +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number - 1}");
                }

                else if (rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number % 3 == 1)
                {
                    Console.WriteLine($"Split bet combinations: {rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number}" +
                                      $" and {rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number - 3} or " +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number} and " +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number + 1}");
                }
                else
                {
                    Console.WriteLine($"Split bet combinations: {rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number}" +
                                      $" and {rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number - 3} or " +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number} and " +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number + 1} or " +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number} and " +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number-1}");
                }
            }
            else
            {
                if (rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number % 3 == 0)
                {
                    Console.WriteLine($"Split bet combinations: {rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number}" +
                                      $" and {rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number + 3} or " +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number}" +
                                      $" and {rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number - 3} or " +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number} and " +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number - 1}");
                }
                else if (rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number % 3 == 1)
                {
                    Console.WriteLine($"Split bet combinations: {rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number}" +
                                      $" and {rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number + 3} or " +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number}" +
                                      $" and {rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number - 3} or " +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number} and " +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number + 1}");
                }
                else
                {
                    Console.WriteLine($"Split bet combinations: {rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number}" +
                                      $" and {rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number + 3} or " +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number} and " +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number - 3} or " +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number} and " +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number + 1} or" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number} and " +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number - 1}");
                }
            }

            if (rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number <= 3)
            {
                if (rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number == 3)
                {
                    Console.WriteLine($"Corner bet: {rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number - 1}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number + 2}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number + 3}");
                }
                else if (rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number == 2)
                {
                    Console.WriteLine($"Corner bet: {rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number - 1}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number + 2}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number + 3} or " +

                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number + 1}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number + 3}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number + 4}");
                }
                else
                {
                    Console.WriteLine($"Corner bet: {rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number + 1}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number + 3}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number + 4}");
                }
            }
            else if (rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number >= 34)
            {
                if (rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number == 36)
                {
                    Console.WriteLine($"Corner bet: {rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number - 4}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number-3}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number -1}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number}");
                }
                else if (rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number == 35)
                {
                    Console.WriteLine($"Corner bet: {rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number - 4}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number-3}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number -1}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number } or " +

                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number-3}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number -2}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number + 1}");
                }
                else
                {
                    Console.WriteLine($"Corner bet: {rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number-3}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number -2}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number + 1}");
                }
            }
            else
            {
                if (rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number % 3 == 0)
                {
                    Console.WriteLine($"Corner bet: {rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number - 1}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number + 2}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number + 3} or " +

                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number - 4}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number-3}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number-1}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number} ");
                }
                else if (rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number % 3 == 1)
                {
                    Console.WriteLine($"Corner bet: {rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number - 3}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number-2}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number + 1} or " +

                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number +1}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number+3}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number+4} ");
                }
                else
                {
                    Console.WriteLine($"Corner bet: {rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number - 3}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number - 2}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number + 1} or " +

                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number + 1}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number + 3}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number + 4} or " +

                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number-4}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number -3}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number -1}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number} or " +

                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number - 1}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number +2}/" +
                                      $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number+3}");
                }
            }
        }
示例#13
0
 public void DisplayResult(SpinWheel spinWheel, Board[,] rouletteBoard)
 {
     Console.WriteLine($"The ball landed on {rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].number} " +
                       $"{rouletteBoard[spinWheel.winningColumn, spinWheel.winningRow].color}!");
 }