The classic snake game made in Python Tkinter. Written for Python3 by GeeksforGeeks. Licensed under the MIT License.
Use the arrow keys to move: the left arrow key to move left, the right arrow key to move right, the up arrow key to move up, and the down arrow key to move down.
- Clone the repository:
$ git clone https://github.com/autruonggiang/Simple-Snake-Game.git
- Install Python:
Make sure Python is installed on your system. You can download it from the official Python website.
- Open the project in Visual Studio Code:
Open Visual Studio Code and click on "File" -> "Open Folder...". Select the folder where you cloned your repository.
- Run
game.py
:
With the Python file open, press F5
or Ctrl + F5
. This will execute game.py
in the integrated terminal.
- Play the game:
Once the game is running, follow the instructions to play the Snake Game. Typically, you'll use arrow keys to control the snake.