Skip to content

JohnDev19/Memory-Match-Game

Repository files navigation

Memory Match Game

A fun and engaging memory match game developed using Python and Pygame.

Game Description

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.

Features

  • Multiple card colors
  • Flip card animation
  • Score tracking
  • Move counter
  • Timer
  • Sound effects for flipping and matching cards
  • Game Over screen with final score

Screenshots

Screenshot1

Screenshot2

Modules and Libraries

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.

Installation

  1. Clone the repository:

    git clone https://github.com/JohnDev19/memory-match-game.git
    cd memory-match-game
  2. Create a virtual environment (optional but recommended):

    python -m venv venv
    source venv/bin/activate   # On Windows use `venv\Scripts\activate`
  3. Install the required dependencies:

    pip install pygame
  4. Download assets:

    Ensure you have the following files in your project structure:

    • images/background.jpg
    • sounds/flip.mp3
    • sounds/match.mp3
    • sounds/failed.mp3

Usage

Run the game using the following command:

python main.py

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A fun and engaging memory match game developed using Python.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages