Skip to content

A collection of 12 mini games/projects written with Python 3 standard library, each game scales in complexity. Includes 3 bonus games for additional examples and learning.

Notifications You must be signed in to change notification settings

Ninedeadeyes/15-mini-python-games-tutorial-series

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

15-mini-standard-library python-games

A collection of 12 mini games created with standard library that scales in complexity. Good for beginners looking for examples of games that implement a specific python code. The games cover the 'basic topics' of python and some intermediate topics like OOP so you can treat this as a beginners python course too.

I have done some 'notes' to explain some of the code but if you do not understand something best thing to do is to google it. I have also added a few bonus games that doesn't fit within the collection for additional examples and reference.

A) Dice with Death = Simple dice game with death, you win you live. You lose, your soul is his. This is a very basic game using USER-DEFINED, IN BUILT functions, VARIABLES and IF STATEMENTS

B) Hacker= Goal of the game is to hack into Robert's account. The more attempts, the more clues it provide. Implement the use of INPUT function, VARIABLES, WHILE loop, BREAK statement and IF ELSE STATEMENTS.

C) The lord, the hunter and the fox= alternative to Rock,Paper,Scissors. Using LIST data type and IF,ELIF and ELSE STATEMENTS.

D) Mini gamble = A simple 'Shell' game where you make bets on which pot the stone is under. Implement INT function converting 'string' to integer.

E) Battle Master= Build the optimal army to defeat the dreaded orcs. Implement the use of TRY and EXCEPT statements

F) Blood Pit= Fight a selection of monsters in the blood pit to gain reputation and glory. Demonstrate how to use data structure (LIST) to interact with variables within a function. Demonstrate a user defined function with multiple arguments.

G) Dungeon Hack = an adventure simulation game. You need to pick a band of adventurers and complete a dungeon run. Depending on the combination of adventurers it will dictate the outcome of the dungeon run. Using FOR LOOP.

H) The Haunted House= A mini adventure game. Your main goal is to escape the house with the loot. Using NESTED DICTIONARY data type.

I) A Grot's Life = A Survival crafting Game written in standard library where you play as a grot doing what a grot do. Version implements OOP Object oriented programming whilst Version B also implements 'IMPORT' transfering functions/class/lists from USER DEFINED modules (MODULARITY). Using CLASS is the best method to interact with global variables. A good example of Modularity on a bigger project will be my open world rpg GrimeLore-Land-of-the-Heretic-Hand on my github page.

J) The Slumber of the Doom King= Break into the Doom King's castle and steal as much gold as possible and find an escape before the king consumes your soul. Using DICTIONARY,NESTED DICTIONARY and RETURN function.

K) One Click RPG= An Idle RPG. Using TUPLES data type, Using TKINTER GUI library ( part of the standard library )

L) Space Rescue = Rescue the red ships and avoid the rocks. Using TURTLE GRAPHICS library ( part of the standard library )

Bonus games

The King's Curse = A simple text based adventure using Ascii graphics taken from https://www.asciiart.eu/

Who Dare Wins= A tactical dice game with a high score save function. Demonstrate how to OPEN/READ/WRITE TXT.FILES as well as an example of 'clear screen' function.

The Road To Eden = Make hard decisions as you make your way to the city of Eden. Demonstrate how to open and read multiple lines/elements within a txt.file.

If you want to 'expand' your learning. I would recommend the below github projects. I have listed from easiest to hardest. Enjoy

https://github.com/Ninedeadeyes/Dungeon-of-the-Black-Dragon ( A 2d Ascii adventure/dungeon crawler game)

https://github.com/Ninedeadeyes/Tank-Battle-At-Ghost-Forest ( A shootem up with 2 player options written with Turtle library )

https://github.com/Ninedeadeyes/A-Grots-Life-2 ( A survival/crafting game wrttien with Tkinter Library )

https://github.com/Ninedeadeyes/Quest-for-the-Golden-Turtle ( A hack and slash dungeon crawler written with Turtle library, There is a mod version here demonistrating player movement animation called Pac-Man vs The Goblins of Doom)

https://github.com/Ninedeadeyes/7-Dungeons-Deep ( An action rpg written with Turtle Library )

https://github.com/Ninedeadeyes/GrimLore-Land-of-the-Heretic-Hand ( A 2d Ascii open world rpg)

Youtube Video

https://www.youtube.com/watch?v=ike4KGsFM2Y

About

A collection of 12 mini games/projects written with Python 3 standard library, each game scales in complexity. Includes 3 bonus games for additional examples and learning.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages