Skip to content

james626629/snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Terminal Snake Game

A classic Snake game that runs in your terminal, created in Python.

Files

  • play_snake.py - Main launcher (recommended way to run)
  • snake_game.py - Advanced version using curses library
  • snake_simple.py - Simple version using basic console output
  • README.md - This file

How to Run

Easy Way (Recommended)

python play_snake.py

The launcher will automatically try to run the best version available for your system.

Manual Options

For the advanced curses version:

python snake_game.py

For the simple console version:

python snake_simple.py

Controls

Advanced Version (curses)

  • Use Arrow Keys to move the snake
  • Press Q to quit
  • When game over, press R to restart or Q to quit

Simple Version

  • Use W/A/S/D keys to move the snake (W=up, A=left, S=down, D=right)
  • Press Q to quit

Gameplay

  • Control the snake to eat food (โ™ฆ)
  • Each food eaten increases your score
  • Don't hit the walls or your own body
  • The snake grows longer with each food eaten

Requirements

  • Python 3.6+
  • Windows (simple version uses Windows-specific input handling)
  • The launcher automatically installs windows-curses if needed

Features

  • Two different implementations for maximum compatibility
  • Automatic fallback between versions
  • Score tracking
  • Game over detection
  • Restart functionality (in curses version)

Enjoy playing Snake!

About

๐Ÿ Snake Game Collection - Python implementations with manual, auto, and simple modes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages