Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b4f78e8

Browse files
README.md
1 parent 65216c3 commit b4f78e8

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

‎Zhed/README.md‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
Package/Script Name: Zhed Game in Python
2+
3+
Short description of package/script: This script is a basic implementation of the puzzle game "Zhed" using the Pygame library. Zhed is a puzzle game where players move blocks to reach a target block.
4+
5+
Functionalities/Scripts:
6+
7+
Display a grid with a simple pattern using Pygame.
8+
Setup Instructions:
9+
10+
Ensure you have Python installed on your system.
11+
Install the Pygame library using the following command:
12+
bash
13+
Copy code
14+
pip install pygame
15+
Copy and paste the provided code into a file named zhed_game.py.
16+
How to Run:
17+
18+
Open a terminal or command prompt.
19+
Navigate to the directory where zhed_game.py is located.
20+
Run the script using the command:
21+
bash
22+
Copy code
23+
python zhed_game.py
24+
Detailed Explanation:
25+
This script initializes a Pygame window and displays a grid pattern on the screen. The main() function contains the main game loop, which listens for the quit event to close the game window. The draw_grid() function draws the grid lines on the screen.
26+
27+
Output:
28+
The script will display a window with a grid pattern similar to a chessboard.
29+
30+
Author:
31+
Shikhar9425
32+

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /