예제 #1
0
        public static void Menu(string txt)
        {
            Print(85, 1, $"Balance ${Global.Blance}", ConsoleColor.Yellow, 15);
            Print(85, 3, $"Total Bet ${Global.TotalBet}", ConsoleColor.Yellow, 15);
            Wheel wheel = new Wheel();
            Bet   bet   = new Bet();

            wheel.PrintBets();

            Print(0, 15, txt, ConsoleColor.Blue);
            Console.SetCursorPosition(txt.Trim().Length + 1, 15);
            string betStr = Console.ReadLine().ToUpper();//get bet number or combination

            //decimal betAmount = GetAmout();

            switch (betStr)
            {
            case "S":
                wheel.Spin();
                break;

            case "SPLIT":
                bet.Betting(betStr, GetAmout(), GetBet(betStr), GetBet(betStr));
                break;

            case "CORNER":
                bet.Betting(betStr, GetAmout(), GetBet(betStr), GetBet(betStr), GetBet(betStr), GetBet(betStr));
                break;

            default:
                bet.Betting(betStr, GetAmout());
                break;
            }
        }