//checks if the ball landed in an even or odd bin public void EvenOdd(int evenOdd) { var bc = new BettingChoice(); switch (evenOdd) { case 1: if (wa.ballPosition % 2 == 0) { money += wager * 2 - wager; Console.WriteLine($"You won ${wager * 2}!"); Console.WriteLine("Press enter..."); } else { PlayerLost(); } break; case 2: if (wa.ballPosition % 2 != 0) { money += wager * 2 - wager; Console.WriteLine($"You won ${wager * 2}!"); Console.WriteLine("Press enter..."); } else { PlayerLost(); } break; } }
//number bet, checks if the specific number the player is betting on gets called public void Number() { var p = new Player(); var b = new BettingChoice(); if (b.binChoice == wa.ballPosition) { money += wager * 35; Console.WriteLine($"You won ${wager * 35}!"); } else { PlayerLost(); } }