Skip to content

Commit 049107f

Browse files
authored
Update README.md
1 parent 8412e12 commit 049107f

File tree

1 file changed

+49
-1
lines changed

1 file changed

+49
-1
lines changed

README.md

+49-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,49 @@
1-
# Snake-Game-Python
1+
# Snake Game
2+
The Snake Game is a classic arcade-style game where the player controls a snake to eat food and grow longer while avoiding collisions with walls and the snake's own body. This implementation of the Snake Game is written in Python using the Tkinter library for the graphical user interface.
3+
4+
# Features
5+
* Control the snake's movement using the arrow keys
6+
* The snake grows longer and the player earns points by eating food
7+
* The game ends when the snake collides with the walls or its own body
8+
* Restart the game by pressing the 'r' key after a game over
9+
10+
# Requirements
11+
To run the Snake Game, make sure you have the following dependencies installed:
12+
13+
* Python 3.x: The Snake Game is implemented in Python, so you need to have Python 3.x installed on your system.
14+
You can check if Python is installed on your system by opening a terminal or command prompt and running the following command:
15+
```````````````````
16+
python --version
17+
```````````````````
18+
If Python is not installed or the version is not 3.x, you can download and install it from the official Python website: https://www.python.org/downloads/
19+
20+
Once you have Python installed, you can proceed to install the required dependencies by running the following command in a terminal or command prompt:
21+
```````````````````
22+
pip install tkinter
23+
```````````````````
24+
The above command installs the Tkinter library, which is used for the graphical user interface of the Snake Game.
25+
26+
**Note: The Tkinter library is typically included with the standard Python installation. However, in some cases, you may need to install it separately. If you encounter any issues with the Tkinter installation, please refer to the documentation or resources specific to your operating system.**
27+
28+
Ensure that you meet the above requirements before running the Snake Game.
29+
30+
# How to Run
31+
1. Clone the repository or download the source code files.
32+
2. Open a terminal or command prompt and navigate to the directory where the files are located.
33+
3. Run the following command to install the required dependencies:
34+
````````````````````
35+
pip install tkinter
36+
````````````````````
37+
4.Execute the following command to start the game:
38+
````````````````````
39+
python snake.py
40+
````````````````````
41+
5. Enjoy the game!
42+
43+
# License
44+
This project is licensed under the [MIT License](https://opensource.org/license/mit/)
45+
46+
# Acknowledgements
47+
* The Snake Game implementation is based on the classic arcade game concept.
48+
* The Snake Game source code was developed by **ItzBlueSword**.
49+
* The game utilizes the Tkinter library for the graphical user interface.

0 commit comments

Comments
 (0)