-
Notifications
You must be signed in to change notification settings - Fork 20
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
josechavez--practice5 #30
base: practice-day5
Are you sure you want to change the base?
Conversation
environment.rb
Outdated
@@ -0,0 +1,101 @@ | |||
module Environment | |||
class Depot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation should be two spaces, be careful when setting the TAB range in your IDE, sometimes Git just ignore the setting and take a tab as a 4-spaces-TAB.
environment.rb
Outdated
objective: objective, | ||
status: :active, | ||
pack: pack | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would state hashes like this in one line if possible.
@missions[name] = { objective: objective, status: :active, pack: pack }
environment.rb
Outdated
end | ||
end | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An extra empty line at the end of the file would be great. It is taken as a good practice.
error_test.rb
Outdated
# name = :alpha; objective = 'Get Alpha to the base'; pack = :simple_transportation_pack | ||
# error_test.new_mission(name: name, objective: objective, pack: error_test.depot.packs[pack]) | ||
# puts error_test.control.missions[:alpha] | ||
# error_test.control.set_mission_to_accomplished(:alpha) and puts error_test.control.missions[:alpha] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same thing here, I would try to use an extra empty line at the end of the file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Peter, please try to fix the files indentation and make another pull request, you will notice the way you code looks would improve too much, thank you mate! :)
Error methods added with the next results:
new_worker name: error
new_mission name: error
new_mission objetive: error
new_mission pack: error