Code Challenge 20 - Object Oriented Programming Fun - Review

PyBites, Mon 29 May 2017, Challenges

adventure, codechallenges, dunder, games, inheritance, karma, learning, object oriented, OOP, Rooms, Twilio, warcraft

It's review time again. Wow: challenge #20 already! We can't believe we have worked through so many already. We also keep receiving amazing PRs, awesome!


This was a great challenge. We got to play with OOP and learned a couple of things.

Rooms is a humble and simple Framework to create adventure games with Python. A player has an inventory and moves between Rooms, interacting with Actors.

    $ python

    This normal looking room has a weird guy standing against the wall


    Here I see a weird guy that I don't know. he looks friendly..

    1) Talk to the friendly weird guy I don't know
    2) Inventory

    3) A place with a strange aura

    Choose your action / exit: 1

    Take this botato, use is wisely!

    Received 1 Holy Botato!


Everytime a PR comes in we cheer with joy, humbled by the fact we see you are stretching yourself by taking our challenges. Keep up the good work, the stuff you are building is amazing!

Remember there is no deadline, you can PR your code anytime. Just remember to isolate (branch) your changes and submit against our Community branch (as per instructions).

Come code with us forking our challenges repo. Have fun!

Keep Calm and Code in Python!

-- Bob and Julian

PyBites Python Tips

Do you want to get 250+ concise and applicable Python tips in an ebook that will cost you less than 10 bucks (future updates included), check it out here.

Get our Python Tips Book

"The discussions are succinct yet thorough enough to give you a solid grasp of the particular problem. I just wish I would have had this book when I started learning Python." - Daniel H

"Bob and Julian are the masters at aggregating these small snippets of code that can really make certain aspects of coding easier." - Jesse B

"This is now my favourite first Python go-to reference." - Anthony L

"Do you ever go on one of those cooking websites for a recipe and have to scroll for what feels like an eternity to get to the ingredients and the 4 steps the recipe actually takes? This is the opposite of that." - Sergio S

Get the book