Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
- Making the Game Interactive
- handleKeydown() Solution 1:51
- Build the moveLeft() and moveRight() Methods
- moveLeft() and moveRight() Methods Solution 5:18
- Build the drop() Method
- drop() Method Animation Challenge Solution
- drop() Method Solution 2:40
- Build the playToken() Method
- playToken() Method Solution 3:43
- Reviewing 'Making the Game Interactive' 5 questions
Well done!
You have completed Object-Oriented JavaScript: Challenge!
Instruction
Build the playToken() Method
Assignment:
Write a method called playToken() inside the Game class using the requirements and guidelines below.
Call this method from the appropriate place inside the handleKeydown() method in the Game class.
Discuss comments in the Treehouse Community.
What Does the playToken() method do?
When a player presses the down arrow key, they initiate a series of events. Their activeToken must...