Repository navigation
moin-uddin-intro-to-python-II - #1
Legitcoder wants to merge 14 commits into
Conversation
|
Excellent effort today! I like the titles of your commits a lot; very descriptive. I l also like that you go back and refactor the codes to make them more readable. My only wish is that I can get the invite from you early so I can have early access to the magic you are creating! |
| break | ||
| elif user_input == 'n': | ||
| p.current_room = room[p.place].n_to | ||
| p.place = [k for k,v in room.items() if v == room[p.place].n_to][0] |
There was a problem hiding this comment.
This line and some similar lines below, while very concise, are not very readable, so this would be a great time to use some comments to clarify what is going on.
| user_input = input("What direction do you want to go? ") | ||
| try: | ||
| if user_input == 'q': | ||
| i = 0 |
There was a problem hiding this comment.
I am not quite sure what "i" does.... It would help the reader understand better if you use a more descriptive variable name, perhaps?
| elif user_input == 'n': | ||
| p.current_room = room[p.place].n_to | ||
| p.place = [k for k,v in room.items() if v == room[p.place].n_to][0] | ||
| p.current_room = p.current_room.n_to |
There was a problem hiding this comment.
MUCH clearer than before!
|
I think you are ready for tomorrow. Best of luck! |
No description provided.