Skip to content

This application brings the game Snake to the commandline, featuring both a minimalist mode and a detailed mode.

License

Notifications You must be signed in to change notification settings

Logogistiks/cliSnake

Repository files navigation

cliSnake

This application brings the game Snake to the commandline, featuring both a minimalist mode and a detailed mode.

Prerequisites

  • python3 and pip installed
  • git installed

Installation

  1. Clone the repository
git clone https://github.com/Logogistiks/cliSnake


2. Enter directory

cd cliSnake


3. Install requirements

  • Windows:
    pip install -r requirements.txt
    
  • Linux:
    sudo pip install -r requirements.txt
    


4. Run game

  • Windows:
    python3 main.py
    
  • Linux:
    sudo python3 main.py
    

How to play

In the menu, press space to start.
To move, press w a s d or use the arrow keys .
Collect the food to grow longer, but don't collide with yourself!

After you lose, press q to exit the game or r to get back to the menu.

In the menu, you can also press x to enter the settings.
Here you can use the arrow keys to select an option.
If you want to change an option, press enter <┘.

Available Settings

Option Description
Render mode simple : Renders each cell as a single character
detailed : Renders each cell as a double character to simulate square pixels
Save Highscore yes : Saves highscore after every game,
no : No highscore gets saved
increasing speed yes : Player speed increases proportional to score
no : Player speed stays the same all game

About

This application brings the game Snake to the commandline, featuring both a minimalist mode and a detailed mode.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages