A fun and engaging memory match game developed using Python and Pygame.
The Memory Match Game is a simple card-matching game where the player must match pairs of cards by flipping them over and remembering their positions. The game ends when all pairs have been matched.
- Multiple card colors
- Flip card animation
- Score tracking
- Move counter
- Timer
- Sound effects for flipping and matching cards
- Game Over screen with final score
The game uses the following Python modules and libraries:
pygame: A set of Python modules designed for writing video games. Pygame adds functionality on top of the excellent SDL library.
-
Clone the repository:
git clone https://github.com/JohnDev19/memory-match-game.git cd memory-match-game -
Create a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required dependencies:
pip install pygame
-
Download assets:
Ensure you have the following files in your project structure:
images/background.jpgsounds/flip.mp3sounds/match.mp3sounds/failed.mp3
Run the game using the following command:
python main.pyThis project is licensed under the MIT License - see the LICENSE file for details.

