Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialLian Maung
4,611 PointsI am totally lost at the concept of this video.
- Why do we need to define the spaceship operator?
- Why do we need to put "other_player" as default?
- What will be the logical sense for "other_player.score" to pick the player2's score?
Christopher Phillips
10,061 PointsChristopher Phillips
10,061 PointsI would like this to be elaborated on as well. Building on Lian's questions:
3b. If we specifically write "other_player.score" how is "score" logically choosing Player1's when there are two values of "score" being presented?