Python Basic Dungeon & Dragon
Design and build a game of your own using different types of operators: arithmetic (
%), comparison (
<=), logical (
(!)), conditional statements (
else), functions (def).
In this project, I kind of try to implement widely used the definition function and the different types of operations. The other insight and learning is in Python, every indents should be vitally aligned and organized.
Concept of the Game
The Entrance - Generate characters randomly
In this step, the players are able to input their name and can get characters generated by python. The identity of character will include a gender, a race(or maybe hybrid), an attribute, and a job.
The Storyline - Guess number & Roll dice to make damage
After the player create the character, they will get the mission of this game - rescue the princess from a evil dragon! Also, there will be a fairy lead the player to the dragon (which I originally wanted to let the player find by themselves). In this step, they will have to guess which dungeon the princess is in.
How to win?
After that, they will have to defeat the dragon by using rolling a dice function. If the dice value > 10, then its a win! If the value is < 10, then its a lose.
Game time >
Just click ▶️down below, and enjoy the game at the right space!!
Be cautious! If you’re a bug fan of Dungeon and Dragon, please DO NOT play. It is a very simple version which based on the concept of D&D game.
Hope you enjoy it!