Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll

- 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
Creating the check for a winning game and other methods to our game class.
Accomplished in this Video
- Created a method to check if the cards at two given locations are a match
- Created a method to check if the game had been won by seeing if any card's matched attribute was still set to false
- Created a method to make sure the location the user gives exists in our grid
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Kylie Nonemaker
1,190 Points1 Answer
-
Trang Nguyen
446 Points2 Answers
-
Deven Schmidt
7,847 Points2 Answers
-
Guillaume Crt
6,395 Pointsneed clarification about return statement in check_win method
Posted by Guillaume CrtGuillaume Crt
6,395 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