MEMORY GAME USING MIT APP INVENTOR WITH FREE AIA DOWNLOAD

 









Memory Game App Using MIT App Inventor

The Memory Game App is a simple and interactive mobile application developed using MIT App Inventor. It helps improve memory, focus, and concentration skills in a fun and engaging way.

In this game:

  • A set of cards (buttons) hides symbols, numbers, or images.

  • The player taps two cards at a time.

  • If both cards match → they remain visible.

  • If they don’t match → they flip back after a short delay.

  • The game continues until all pairs are matched.

This project is ideal for beginners learning lists, variables, conditions, and event handling.


Game Objective

  • Find all matching pairs.

  • Complete the game in minimum attempts.

  • Improve memory and observation skills.


 Components Used

 1. Lists (Images / Symbols List)

A List stores symbols or image names.

Example:

["🍎","🍎","⭐","⭐","🎈","🎈","🌸","🌸"]
  • Items are arranged in pairs.

  • Randomly assigned to buttons at the start.


 2. Global Variables

Used to control game logic:

  • FirstSelected

  • SecondSelected

  • FirstButton

  • SecondButton

  • MatchCount

  • AttemptCount


3. Button.Click Blocks

When a button (card) is clicked:

  • Reveal its hidden image.

  • Store it as first or second selection.

  • Check for match when two cards are selected.


 4. set Button.Image / Text

Displays the symbol or image when a card is clicked.

Example logic:

set Button1.Text to select list item

5. if–else Condition Blocks

Checks whether:

if FirstSelected = SecondSelected
  • If TRUE → Keep cards visible.

  • If FALSE → Hide both cards again.


6. Clock.Timer Block

Used to:

  • Add delay (e.g., 1 second)

  • Hide unmatched cards after short pause


7. Disable Button Block

When cards match:

  • Disable both buttons

  • Prevent further clicking


8. Match Counter Block

  • Increase MatchCount when a correct pair is found.

  • Track total matches.


9. Game Complete Condition

If:

MatchCount = TotalPairs
  • Show “Congratulations!”

  • Display total attempts

  • Stop the game


 Game Logic Flow

Start Game

Shuffle List

Assign Symbols to Buttons

User Clicks First Card

User Clicks Second Card

Do They Match?
↓ Yes → Disable Buttons
↓ No → Wait 1 sec → Hide Cards

All Pairs Found?
↓ Yes → Show Game Complete

 What Students Learn

✅ Lists and randomization
✅ Global variables
✅ Conditional logic (if–else)
✅ Event handling
✅ Timer usage
✅ Game flow control
✅ Basic UI design


 Advanced Features (Optional)

You can enhance the game by adding:

  •  Countdown timer

  •  Sound effects on match

  •  Score system based on attempts

  •  Difficulty levels (more cards)

  •  Custom themes

  • Restart button

  • High score saving




Comments