Skip to content

A memory card game built with Flet framework in Python, featuring car matching mechanics, score tracking and multiple game states. In this game, players need to match pairs of cards while keeping track of the matches and errors made during the game.

Notifications You must be signed in to change notification settings

Jrmr27/memorygame-flet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 

Repository files navigation

Memory Game with Flet

A memory card game built with Flet framework in Python. Features include card matching mechanics, score tracking, animated card flips, and multiple game states. Players must find matching pairs while keeping track of their matches and errors.

Project Structure

memorygame/ └── base/ └── src/ ├── assets/ │ └── images/ │ ├── cover.png │ ├── congrats.png │ └── [0-19].png ├── views/ │ ├── home.py │ ├── card.py │ ├── game.py │ └── congrats.py └── main.py

Requisites

  • Python 3.x
  • Flet Framework

Install

pip install flet

How to Run

  • 1st -> go to the directory of the project on the terminal
  • cd memorygame
  • cd base
  • cd src
  • 2nd -> run the main.py to start the game
  • flet run -d main.py

Characteristics

  • Interactive memory game with 10 pairs of cards
  • Counter of matches and errors
  • Animation when flipping the cards
  • Multiple game states with navegation

Game Features

  • Interactive memory game with 10 pairs of cards
  • Score tracking system (matches and errors)
  • Animated card transitions
  • Multiple game states:
    • Home screen with play button
    • Game board with card grid
    • Congratulations screen with final stats

Game Rules

  1. Click on cards to flip them
  2. Find matching pairs of cards
  3. Track your progress with the match counter
  4. Complete the game by finding all pairs

Technical Details

  • Built with Python and Flet framework
  • Modular architecture with separate view components
  • Event-driven gameplay mechanics
  • Responsive design

Project Components

  • home.py: Handles the initial game screen
  • card.py: Manages card behavior and animations
  • game.py: Controls game logic and score tracking
  • congrats.py: Displays end-game statistics

About

A memory card game built with Flet framework in Python, featuring car matching mechanics, score tracking and multiple game states. In this game, players need to match pairs of cards while keeping track of the matches and errors made during the game.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published