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 navigate the menus use the arrow keys and to select press
ENTER
. For text inputs you need to type because copy/paste doesnt work. To move the snake use the arrow keys. - To play online you can either join a server or you can host one yourself. I it is recommended that you have your terminal on full size so the graphics wont be messed up.
-
To join a server select the
Connect to server
option and type the server address and port. These details will be saved so you can quicly erconnect to the same server. To connect to another server just selectReset Server Details
andConnect to server
and enter your new server of choice. -
To start a server select
Host A Server
and type in the game options. Each server can theoretically host infinite games consisting of as many players as you specified before. When a game fills the server will add all new players to a new one. To quit the server you can simply pressQ
and wait for the process to terminate. -
To change your nickname select
Change nickname
. Nicknames are used in online mode to display your score on the scoreboard. Your nickname is saved so you dont need to re-enter it every time you restart the game.
-
You will need Python 3.9+ (3.x where x >= 9).
-
Installation instructions are available at the above link.
-
Enter the Poetry shell
$ poetry shell
-
Install development dependencies
$ poetry install
-
Run the client
$ poe main
-
Install pre-commit hooks
$ pre-commit install
-
Automatically order imports
$ poe fix
-
Lint the code
$ poe lint