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 trial

Ruby Ruby Modules Ruby Core Modules Comparable

Lian Maung
Lian Maung
4,611 Points

I am totally lost at the concept of this video.

  1. Why do we need to define the spaceship operator?
  2. Why do we need to put "other_player" as default?
  3. What will be the logical sense for "other_player.score" to pick the player2's score?
Christopher Phillips
Christopher Phillips
10,061 Points

I 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?