This is a memory puzzle game built in Python using the Pygame library. The game presents a grid of rectangles, each concealing different shapes of various colors. The objective is to find matching pairs of shapes hidden behind the rectangles by flipping them over in as few attempts as possible.
- Grid layout with 16 rectangles hiding shapes.
- Shapes include squares, circles, triangles, and diamonds, each with distinct colors.
- Game logic for identifying matching pairs.
- Game completion message with an option to restart.
- Simple and interactive graphical user interface (GUI).
- Python 3.x
- Pygame library (can be installed via
pip install pygame)
- Run the
main.pyscript using Python. - Memorize the shapes and their positions behind the rectangles.
- Click on two rectangles to reveal the shapes.
- If the shapes match, they stay revealed; otherwise, they are hidden again.
- Continue until all pairs are matched to win the game.
game.py: Main script to run the game.won.png: A congratulatory image displayed upon completing the game.
- Developed by [Kushagra Singh Gaur]
- Special thanks to the Pygame community for the library.
For questions or issues, please contact [kushagrasingh.gaur2022@vitstudent.ac.in].