Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Object-Oriented JavaScript: Challenge!
You have completed Object-Oriented JavaScript: Challenge!
Preview
Let's tackle the final stage of Four in a Row - adding in the Game logic.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
At this point,
we've built out most of our classes.
0:00
We've created several objects
that are all working together and
0:00
interacting with each other.
0:03
We've rendered our visual components and
added interactivity so
0:05
a player can move their tokens around
the board and drop them into spaces.
0:08
But now what?
0:12
A turn isn't just dropping a token.
0:13
In a real life game,
0:16
a lot of the synthesis that happens after
someone drops a token is automatic.
0:17
We can clearly see a space
is filled with a token.
0:21
It's obvious whose turn it is, and
0:24
a winning move is visible
right in front of us.
0:26
In our game, though, we have to write
the logic for the series of calculations.
0:28
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