Example #1
0
        public void CheckPlayerInput(ConsoleKeyInfo PlayerInput)
        {
            switch (PlayerInput.Key)
            {
            case ConsoleKey.Backspace:
                Player.DeleteLastInput();
                break;

            case ConsoleKey.Spacebar:
                Player.ResetUserInput();
                GivenWords.IncreaseArrayLocation();
                break;

            default:
                Player.AddInputKey(PlayerInput.KeyChar);
                break;
            }
        }