Chiiing
Portfolio of Chi-Ching Tsai
CODE_LITERACY Copy.jpg

Code Literacy

Python Basic Dungeon & Dragon

Challenge

Design and build a game of your own using different types of operators: arithmetic (= + / - %), comparison (!= == > < >= <=), logical (and (&&) , or (||) , not (!)), conditional statements (if elif 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.

1-charactor.gif

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.

If the player can’t successfully guess which dungeon the princess is in, the dragon will shows and destroy the player! Then its a lose.

If the player can’t successfully guess which dungeon the princess is in, the dragon will shows and destroy the player! Then its a lose.

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.

It’s a win!

It’s a win!


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!