Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- What Happens Next? 1:29
- Build the mark() Method
- Build the checkForWin() Method
- get owner() Solution
- checkForWin() Method Challenge Solution
- Build the switchPlayers() Method
- Build the gameOver() Method
- Game Logic Methods Solution 1:56
- Build the updateGameState() Method
- Callback Function Solution
- updateGameState() Method Solution 2:16
- Reviewing 'Adding the Game Logic' 4 questions
Well done!
You have completed Object-Oriented JavaScript: Challenge!

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
See the solution for the updateGameState() method.
Video Update
At the end of this video, Ashely mentions: "Come watch me and a fellow teacher play the game in the next video.". However, this video was never shot.
You can play the final version of the project yourself though or with a friend! Just make sure you run the code inside the Final Complete Project
folder, after downloading the Project Files.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Gal Parselany
Full Stack JavaScript Techdegree Graduate 26,281 Points1 Answer
-
Joe Elliot
5,330 Points2 Answers
-
Joe Elliot
5,330 Points1 Answer
-
David Kayser
12,009 PointsHere's my try at adding a reset button and keeping score for the object oriented javascript challenge.
Posted by David KayserDavid Kayser
12,009 Points0 Answers
-
Andrew Phythian
19,747 Points2 Answers
-
Birthe Vandermeeren
17,146 Points0 Answers
-
Kevin Lewis
15,088 Points3 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up