-
10576649 Emilio Centurelli (@emiliocenturelli)
emilio.centurelli@mail.polimi.it -
10565376 Luca De Martini (@luca-de-martini)
luca.demartini@mail.polimi.it -
10572912 Nicolò Deori (@NicoloDeori)
nicolo.deori@mail.polimi.it
Functionality | State |
---|---|
Basic rules | |
Complete rules | |
Socket | |
GUI | |
CLI | |
Multiple games | |
Persistence | |
Advanced Gods | |
Undo |
The graphical interface can be launched with
java -jar AM8.jar
The command line client can be started by launching the jar with the -c
flag and specifying the ip and port of the server to connect to. Example
(Connecting to a server hosted locally on loopback and port 5656):
java -jar AM8.jar -c 127.0.0.1 5656
The server can be started by launching the jar with the -s
flag and
specifying the ip and port to bind and listen for connection from. Example
(Binding on all interfaces and port 5656):
java -jar AM8.jar -s 0.0.0.0 5656
The server can be built and started in a docker container with a single
command using docker-compose
from the main repository directory
docker-compose up
This will start a containerized server instance listening on all interfaces and port 5656
Usage: java -jar AM8.jar [--cli|--server <IP> <PORT>] [--gods <JSON>]
Launching in server or cli mode requires specifying an ip and and a port
By default the application is started in graphical mode
-c, --cli: Launch the application in client mode with a Command Line Interface, connect to server at tcp://IP:PORT
-s, --server: Start in server mode binding on tcp://IP:PORT
-g, --gods JSON: Load god configuration from JSON file (server side)
-h, --help: Display this help message
Example: java -jar AM8.jar -c 127.0.0.1 5656
The project can be built using maven
mvn package
The jar will be in the target/
directory with name AM8-1.0-jar-with-dependencies.jar