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

josechavez--practice5 #30

Open
wants to merge 2 commits into
base: practice-day5
Choose a base branch
from

Conversation

PeterChav
Copy link

Error methods added with the next results:

new_worker name: error
image

new_mission name: error
image

new_mission objetive: error
image

new_mission pack: error
image

environment.rb Outdated
@@ -0,0 +1,101 @@
module Environment
class Depot
Copy link
Collaborator

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
}
Copy link
Collaborator

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
Copy link
Collaborator

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]
Copy link
Collaborator

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.

Copy link
Collaborator

@Apostat23 Apostat23 left a 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! :)

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