Skip to content

David flack - #1

Open
davidflack wants to merge 6 commits into
masterfrom
david-flack
Open

davidflack wants to merge 6 commits into
masterfrom
david-flack

Conversation

@davidflack

Copy link
Copy Markdown
Owner

No description provided.

@davidflack
davidflack requested a review from bkwillia052 April 24, 2019 21:58
Comment thread src/adv.py Outdated

def check_move(current_room, direction):
move = direction + '_to'
if hasattr(current_room, move) is not False:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Oh yeeah. Expert pythonist right here 🥇

Comment thread src/room.py
# description attributes.


class Room:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice; if this is working how you want it to, the next step will be to add functionality for an item to be added and removed from the room class.

@bkwillia052 bkwillia052 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good so far, I hope to see you using that hasattr wherever possible in future projects now! Keep up the momentum to finish out the last requirements for adding and removing 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