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

Sea Turtles - Shannon B. - swap meet #102

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

Conversation

eggoweggo
Copy link

No description provided.

Copy link

@tgoslee tgoslee left a comment

Choose a reason for hiding this comment

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

Great job Shannon. I left some comments on what you did well and a few suggestions. Let me know if you have any questions.

from swap_meet.item import Item

class Clothing(Item):
Copy link

Choose a reason for hiding this comment

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

👍🏽

from swap_meet.item import Item

class Decor(Item):
Copy link

Choose a reason for hiding this comment

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

👍🏽

pass
from swap_meet.item import Item

class Electronics(Item):
Copy link

Choose a reason for hiding this comment

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

👍🏽

return "Hello World!"

def condition_description(self):
Copy link

Choose a reason for hiding this comment

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

Good job making an if/elif statement here. I would look into how you could possibly improve this block of code by using other data structures.

Comment on lines +5 to +8
self.inventory = []
else:
self.inventory = inventory
Copy link

Choose a reason for hiding this comment

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

another fun to do it self.inventory = inventory if inventory is not None else []

Comment on lines +30 to +33
self.remove(my_item)
self.add(their_item)
friend.remove(their_item)
Copy link

Choose a reason for hiding this comment

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

great use of the instance methods you created.

return False

def swap_first_item(self, friend):
Copy link

Choose a reason for hiding this comment

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

great job here. You could also use try/except in a few places instead of if/else for your error handling.

return True

def get_best_by_category(self, category=""):
Copy link

Choose a reason for hiding this comment

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

👍🏽

return best_item

def swap_best_by_category(self, other, my_priority, their_priority):
Copy link

Choose a reason for hiding this comment

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

👍🏽

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