Skip to content

Pine - Victoria Duke#79

Open
VictoriaDuke wants to merge 12 commits into
Ada-C16:masterfrom
VictoriaDuke:master
Open

Pine - Victoria Duke#79
VictoriaDuke wants to merge 12 commits into
Ada-C16:masterfrom
VictoriaDuke:master

Conversation

@VictoriaDuke

Copy link
Copy Markdown

No description provided.

@CheezItMan CheezItMan left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I like the small regular commits you made with git as you went through the project. Very meaningful commit messages as well.

Nice work Victoria, you hit the learning goals here. All the functions are readable and work well. Well done.

Comment thread swap_meet/clothing.py
pass
from swap_meet.item import Item

class Clothing(Item):

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍

Comment thread swap_meet/decor.py
pass
from swap_meet.item import Item

class Decor(Item):

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍

Comment thread swap_meet/electronics.py
pass
from swap_meet.item import Item

class Electronics(Item):

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍

Comment thread swap_meet/item.py
@@ -1,2 +1,24 @@
class Item:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍

Comment thread swap_meet/vendor.py

class Vendor:
pass
def __init__(self, inventory=None):

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍

Comment thread swap_meet/vendor.py
self.inventory.remove(item)
return item

def get_by_category(self, category=""):

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍

Comment thread swap_meet/vendor.py
items.append(item)
return items

def swap_items(self, their_vendor, my_item, their_item):

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍

Comment thread swap_meet/vendor.py
their_vendor.add(my_item)
return True

def swap_first_item(self, their_vendor):

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good reuse of swap_items

Comment thread swap_meet/vendor.py
their_first_item = their_vendor.inventory[0]
return self.swap_items(their_vendor, my_first_item, their_first_item)

def get_best_by_category(self, category):

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍 Why not use get_by_category here?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Oh I meant to! I think I got distracted by a different part and didn't come back to this.

Comment thread swap_meet/vendor.py
best_item = item
return best_item

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍 Good reuse of get_best_by_category and swap_items

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