Code Review Stack Exchange is a question and answer site for peer programmer code reviews. It only takes a minute to sign up. Connect and share knowledge within a single location that is structured and easy to search. I took a crack at making a Pokemon-style text battle game in Python 3 to practice object-oriented programming a bit, inspired this project on Reddit , but I did not follow every instruction.
Make your own text based adventure game in Python3
How to code your own adventure game in Python | TechRadar
To create this article, 21 people, some anonymous, worked to edit and improve it over time. This article has been viewed 51, times. Learn more If you want to learn Python, it is good to start with some simple text-based games. This article will show you how to make a quiz game. Log in Social login does not work in incognito and private browsers.
Python text based game - Ideas?
This post goes into the details of how you can add a "save game" feature to your games. Python's built-in shelve module makes this very easy to do, but there are some pitfalls and tips that you might want to learn from this post before trying to code it up yourself. If you want to skip ahead and see the Flippy version with the "save game" feature added, you can download the source code and image files used by the game. You need Pygame installed to run Flippy but not Reversi.
I once wrote a small class to help beginners write text based games, see here. See if it can help you you can replace Print with print in the code and remove the cbprint import. Why do you not use comment, blah blah? Using triple quoted strings for comments is not advised.