First, make sure you have python (3.6 or later required)
Then install with pip:
python3 -m pip install --upgrade git+https://github.com/afg984/thegame.git#subdirectory=client/python
You may want to use the --user
flag.
For windows, replace python3
with py
or whatever refers to the correct python.
python3 -m thegame.gui [SERVER_ADDRESS]
Where [SERVER_ADDRESS]
is the host:port
of the server, which defaults to localhost:50051
Use client/python/example.py
as a template to start with
To start the client:
python3 example.py [SERVER_ADDRESS]
The API documentation is at: https://afq984.github.io/thegame/
-
Install go https://golang.org/
-
Install the server
go get github.com/afg984/thegame/server/go/thegame
-
Run the server
$GOPATH/bin/thegame [-listen [host]:port] [-tps N]