Skip to content

Commit d2be632

Browse files
authored
Update README.md
1 parent beb9c72 commit d2be632

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

Diff for: PyGamesScripts/Memory Puzzle Game/README.md

+32
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,45 @@
55

66
<p>To create a memory game.</p> </br>
77

8+
## Purpose
9+
10+
The purpose of this project is to create a pygame for fun also increases the concentration
11+
812
## Short description of package/script
913

1014
<p>The program runs a memory game that allows you to turn over cards by clicking the mouse.</p> </br>
1115

1216
# Setup instructions
1317
Copy the project to your local enviroment and that's all this code can be run on any python IDE.
1418

19+
## Workflow of the Project
20+
21+
- Importing the required modules
22+
- Setting Up the Buttons for game
23+
- The main() Function to execute all the functions in the program.
24+
- Declaring Some Local Variables Used in This Program
25+
- Drawing the Board and Handling Input for output window
26+
- Checking for Mouse Clicks
27+
- Checking for Keyboard Presses
28+
- The Two States of the Game Loop
29+
- Figuring Out if the Player Pressed the Right Buttons
30+
- Reusing The Constant Variables
31+
- Animating the Button Flash
32+
- Drawing the Buttons
33+
- Animating the Background Change
34+
- The Game Over Animation
35+
- Converting from Pixel Coordinates to Buttons
36+
37+
## Compilation Steps
38+
39+
Download the python code named `app.py`
40+
41+
Extract the files and keep both in same folder.
42+
43+
Run the code by double clicking them.
44+
45+
Enjoy the Game..
46+
1547
## Detailed explanation of script, if needed
1648

1749
#### _**OUR GAME RULES**_

0 commit comments

Comments
 (0)