This is a simple memory game made with Python's Pygame-library. It consists of few classes that handle the gameplay.
To run the game you first need to install requirements. Use pip install -r requirements.txt
to install.
You can also populate the ./data/images/*
folders with the images that you would like to play the game with:
- /back/
- This folder contains images that are rendered as the card backside images
- /front/
- This folder contains the front side of the cards, e.g. what you are trying to find pairs of in the game. There should be atleast 32 unique images if you are playing with default settings. Alternatively, you can navigate to
./utils/settings.py
and edit the card amount inCards.amount
to change the number of rendered cards for the game. This will currently also affect the layout of the game, so no quarantee is given on what it will look like if the amount is changed.
- This folder contains the front side of the cards, e.g. what you are trying to find pairs of in the game. There should be atleast 32 unique images if you are playing with default settings. Alternatively, you can navigate to
- /main_menu/
- This folder contains the background images for the main menu.
- /table/
- This folder contains the background images for the game table.
In those folders you can put whatever images you want, but I suggest you use .png as the file format, as the game uses alpha channel in some parts. The ./back
, ./main_menu
and ./table
folders must contain atleast one image each. For the ./front
folder 32 images is the minimum amount on basic settings.
The game can be started by running ./main.py
Here are some screenshots from the game. I used Minecraft-themed images as game graphics for my local play.
This is the main screen of the game. You can play by yourself, or with a friend.
You can give your player a name and choose your avatar.
All your favourite avatars are available (these are the same images that are used as playing cards).
The game is filled with action packed memory game excitement!
Game ends and the winner is announced when all the pairs have been found (or if you choose to end it early).