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 Module Basics Namespaces

inside laserbots

where do you put the class player It keeps saying go back to task 1 I am confused

laser_bots.rb
module LaserBots
  class LaserBots::Player 
 VERSION=1.0
end

1 Answer

You have two issues here, and one of them is breaking task 1.

  1. Since you are inside of the module, you do not need to reference the player class with LaserBots::Player. Instead, a simple class Player will do, since it already knows where you're creating it.

  2. Also remember that just like modules, classes need an end as well. This is why task 1 is breaking, because the code inside the module creates and error for itself. If you give your player class an end, it will know that your player class is completed.

Hope this helps, feel free to ask if you need any more help.