Skip to content

busayojee/snake-terminal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐍 Snake Terminal

A classic Snake game implemented in Python, playable directly in your terminal! Built using the curses library and a doubly linked list. Now available on PyPI for easy installation and play.

Snake Terminal Demo


Features

  • 🕹️ Terminal-based gameplay: Play Snake directly in your terminal.
  • 🎮 Smooth controls: Use arrow keys to control the snake's direction.
  • 🍎 Dynamic growth: The snake grows longer as it eats food.
  • Progressive difficulty: Game speed increases as your score improves.
  • 🛠️ Easy installation: Install and play with just one command.

Installation

You can install Snake Terminal directly from PyPI using pip:

pip install snake-terminal

How to Play

After installation, simply run the game from your terminal:

snake-terminal

Controls

Arrow keys (↑, ↓, ←, →): Change the snake's direction.

q: Quit the game.

Objective

Eat the food to grow the snake and increase your score. Avoid colliding with yourself!


Project Structure

The package is structured as follows:

snake-terminal/
├── snaketerm/        # Package source code
│   ├── __init__.py        # Package initialization
│   ├── game.py            # Game logic and loop
│   ├── main.py            # Entry point
│   ├── snake.py           # Snake class and movement logic
├── README.md              # Project documentation
├── setup.py               # Package setup and configuration
└── setup.cfg

Contributing

Contributions are welcome! If you'd like to improve the game.


Acknowledgments

  • Inspired by the classic Snake game.
  • Built with Python's curses library for terminal-based graphics.

Enjoy the game! 🎉

If you have any questions or feedback, feel free to open an issue or reach out.

About

Snake game in terminal

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages