Skip to content

imDema/ing-sw-2020-Centurelli-DeMartini-Deori

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prova Finale Ingegneria del Software 2020

Santorini - Game

Gruppo AM08

Final mark: 30 cum laude
Functionality State
Basic rules GREEN
Complete rules GREEN
Socket GREEN
GUI GREEN
CLI GREEN
Multiple games GREEN
Persistence RED
Advanced Gods GREEN
Undo RED

Usage

Client

Graphical interface

The graphical interface can be launched with

java -jar AM8.jar
Command line interface

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

Server

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
Using docker-compose

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

Command line reference

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

Building

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •