Skip to content

sarawalid99/Memory_Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Memory_Game

Made by : Me, it was my first program.

Requested by: Dr. Mohammed El-Ramly in CS course.

Purpose:

This is a simple memory game implemented in Python. The game requires two players to take turns and match pairs of numbers and letters. The player with the highest score at the end of the game wins.

Game Rules:

  • The game consists of a sequence of numbers from 1 to 20, along with a corresponding set of letters.
  • The numbers and letters are randomly shuffled.
  • Each player takes turns to select two numbers from the sequence.
  • The corresponding letters of the selected numbers are revealed.
  • If the letters match, the player earns a point, and the matched numbers are replaced with an asterisk (*).
  • If the letters do not match, no points are awarded.
  • The game continues until all 20 numbers have been matched.
  • At the end of the game, the player with the highest score is declared the winner.

How to Play:

1- Run the code using a Python interpreter.

2- The game starts with Player 1's turn.

3- Follow the on-screen prompts to enter the first and second numbers to reveal their letters.

4- The letters will be displayed for 5 seconds before clearing the screen.

5- The game will automatically switch to Player 2's turn.

6- Repeat steps 3-5 until all 20 numbers have been matched.

7- The final scores and the winner will be displayed after the game ends.

About

Game Name : one line memory game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages