Example #1
0
        public void DoUserInput(char c)
        {
            switch (c)
            {
            case 's':
                State.Start();
                break;

            case 'l':
                State.FlipLeft();
                break;

            case 'r':
                State.FlipRight();
                break;

            case 'c':
                State.AddCredit();
                break;

            default:
                Console.WriteLine("Invalid Input!");
                break;
            }
        }