Skip to main content
1

Check prerequisites

Snake Game Python requires Python 3. The turtle, time, and random modules it uses all ship with the Python standard library — no pip install needed.Verify your Python installation:
python --version
If Python is not installed, download it from python.org/downloads.
2

Clone the repository

Clone the Snake Game Python repository from GitHub:
git clone https://github.com/CamachoFranklin/Snake-Game-Python-Language
Then navigate into the cloned directory:
cd Snake-Game-Python-Language
3

Run the game

Start the game by running the main script:
python SnakeGame.py
A 650×650 black window titled Snake Game “La culebrita” will open and the game will begin immediately.
Keep the turtle window in focus while playing — keyboard input is only captured when the game window is active.
4

Play

Use the arrow keys to control the snake:
KeyAction
UpMove up
DownMove down
LeftMove left
RightMove right
  • Steer the snake toward the red circle to eat it, grow one segment, and score 10 points
  • Avoid the canvas walls and your own body — collision ends the round and resets the game
  • Your high score is preserved across resets for the duration of the session

Build docs developers (and LLMs) love