This is a rewrite of the code that runs spacehack.
This repo contains the host and the console code.
Consoles connect to the host to join a game.
(Installation instructions below)
- python3.6 (or later. Older pythons are probably fine too, maybe)
- python3 development sources (required by lit to do timeout tests for some reason)
- mosquitto (or any other standard mqtt broker)
- various python packages (see requirements.txt)
apt install python3 python3-dev mosquitto
We recommend installing these in a venv, there is a script that does this for you:
./init_venv.sh
Then you can source the venv in your shell:
source venv/bin/activate
or similar for your shell
If you really want to you could instead install manually with pip install -r requirements.txt
First make sure your mqtt broker is running.
You can then check if everything worked with:
./tests/bin/run_all_spacehack_tests
More details on test scripts in the tests/bin/README.md
And you can run the host in the same way:
./host.py