Memory_Match_Game_Presentation
Memory_Match_Game_Presentation
Match-
Digital Cards
Matching Game
TERM PROJECT BY :
NAME OF THE STUDENT:
CHINTAKRINDI TEJASWINI
REGD.NO:
23BQ1A6122
PROJECT GUIDE :
Mr. SYED.BEEBAN BASHA
Associate Professor
A MEMORY-BASED
MATCHING GAME USING
COLORED CARDS.
DEVELOPED USING
Introduction: PYTHON AND PYGAME.
PURPOSE: TO CREATE
AN ENGAGING AND
INTERACTIVE GAME
THAT TESTS MEMORY
SKILLS.
ABSTRACT
1 2 3 4
- Educational
- Casual gamers of purposes:
all ages. Enhance memory
and focus skills.
Game Concept
- Library: Pygame
- Grid layout with 4x4 cards. - Cards have a default hidden - Success images display
state with a gray color. upon game completion.
Code # Function to create
the game board
colors = CARD_COLORS
* 2 # Duplicate colors
to create pairs
Highlights
(Board
Creation)
board = [colors[i:i +
random.shuffle(colors)
COLS] for i in range(0,
# Shuffle the colors
len(colors), COLS)]
Code Highlights (Card
Class)
• class Card:
• def __init__(self, color, x, y):
• self.color = color
• self.rect = pygame.Rect(x, y, CARD_WIDTH,
CARD_HEIGHT)
• self.is_flipped = False
• self.is_matched = False
Testing
using
`collidepoint`.
and
- Validated
random card
arrangement
after each
restart.
Debugging - Debugged
card flipping
and matching
timing issues.
Game Demo/Walkthrough