/online-snake-tui

Online snake game in python using blessed. Original made for pydis cj8

Primary LanguagePythonMIT LicenseMIT

Bulldog Logo

PyDis Code Jam Summer 21: Beatific Bulldogs

This is the Beatific Bulldogs' submission to the Python Discord Code Jam of Summer 2021.

A snake game playable in the terminal.

Includes offline mode and online mode (you can host your own game). The game is controlled using arrows.

To play online you can either join a server or you can host one yourself. To join a server select the Connect to server option or to host one select Host A Server.

Installation

  1. Install Python

    You will need Python 3.9+ (3.x where x >= 9).

  2. Install Poetry

    Installation instructions are available at the above link.

  3. Enter the Poetry shell

    $ poetry shell
  4. Install development dependencies

    $ poetry install
  5. Install pre-commit hooks

    $ pre-commit install

Usage

  • Run the client

    $ poe main
  • Automatically order imports

    $ poe fix
  • Lint the code

    $ poe lint