A multiplayer snake game with a TUI, written in python.
The terminal in the demo above is a customized termite.
The project is not yet in any repositories. You can find the packages on the releases page.
-
Download the binary from the releases page.
-
Install the package using
pacman
.
# pacman -U /path/to/binary
-
Download the binary from the releases page.
-
Install the package using
dpkg
.
# dpkg -i /path/to/binary
-
Clone the project (https://github.com/XDead27/ConsoleSnake.git)
-
cd
into the ConsoleSnake directory -
Install dependencies
$ make requirements
or
$ pip3 install numpy art argparse
- Run the
make
command
# make install
The app is divided into the client (consolesnake
) and the server (consolesnake-server
).
To run the game, you need to connect to a server, either online or on your local machine.
Run these 2 commands in different terminal instances:
$ consolesnake-server
$ consolesnake
The binary is named consolesnake-server
.
Running consolesnake-server
with no arguments will start a server on address 127.0.0.1
(loopback) and port 1403
.
If you want to specify an address and a port you can do it as follows:
$ consolesnake-server <host> <port>
The binary is named consolesnake
.
Once you have a running server to connect to, either online or on your machine, you can start the client.
Running consolesnake
with no arguments will spawn an instance of the game that connects to a server located at address 127.0.0.1
(loopback) and port 1403
.
If you want to specify an address and a port you can do it as follows:
$ consolesnake [-p PORT] [-b HOST]
You can get more command information by running consolesnake --help
.
Please keep in mind this project is far from finished, or actually being a useful piece of software. Bugs are (very) common and the app might break or not work on your machine.
That being said, help is wanted if you find this project interesting! :>