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

Cheetahs - Emma #86

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Cheetahs - Emma #86

wants to merge 7 commits into from

Conversation

Emmakizil
Copy link

No description provided.

Copy link

@jbieniosek jbieniosek left a comment

Choose a reason for hiding this comment

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

Great work on this project Emma! The code is very clean and easy to read. Fantastic use of helper methods in the Vendor class! This project is green.

swap_meet/clothing.py Show resolved Hide resolved
Comment on lines +9 to +21
if self.condition == 0:
return "Very Poor"
elif self.condition == 1:
return "Poor"
elif self.condition == 2:
return "Fair"
elif self.condition == 3:
return "Good"
elif self.condition == 4:
return "Very Good"
elif self.condition == 5.0:
return "Exceptional"

Choose a reason for hiding this comment

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

Conditions can be a float, but this function will only work for whole numbers. If an item has a condition of 3.5, this function will return None. How could you adapt these conditionals to work for floats?

swap_meet/vendor.py Show resolved Hide resolved
swap_meet/vendor.py Show resolved Hide resolved
Comment on lines +39 to +40
friend.add(self.inventory.pop(0))

Choose a reason for hiding this comment

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

Could you use swap_items to simplify the code here?

swap_meet/vendor.py Show resolved Hide resolved
swap_meet/vendor.py Show resolved Hide resolved
tests/unit_tests/test_wave_01.py Show resolved Hide resolved
tests/unit_tests/test_wave_06.py Show resolved Hide resolved
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