Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add solar system wave 1 and wave 2 with planet and solar classes #4

Open
wants to merge 1 commit into
base: cas/master
Choose a base branch
from

Conversation

CShekta
Copy link

@CShekta CShekta commented Oct 1, 2015

My code!

number_of_moons: 16,
solar_rotation: 165
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I wonder if you could put all of the hashes into an array (maybe named hashes?) and then iterate over that array to add each of your planets:

original_planets = []
hashes.each do |planet_hash|
   planet = Planet.new(planet_hash)
   original_planets.push(planet)
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants