Git Product home page Git Product logo

memory_game's Introduction

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.

memory_game's People

Contributors

sarawalid99 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.