A network browser implementation of Tron. Play with your friends over the web!
The dependencies for this project are a few years old, so you must make
sure you have the right dependencies installed. Run npm ci
in the client
directory to follow the package-lock.json
specification. And pip install the
dependencies and versions in requirements.txt
from the server directory.
Before you can run the project, make sure the configuration files exist. The example files provide sane defaults that work for localhost, so start by copying the example files:
cp server/settings.example.py server/settings.py
cp client/settings.example.json client/settings.json
All the configuration options in settings.py
are described in comments. If
you're configuring this project for a server, you will need to change "host" in
settings.json to your IP address or host name.
First start the python server:
cd server
./server.py # python server.py
And start the client in a separate session:
cd client
npm run dev
Open up tron in your browser, and you're ready to play!