We developed a software version, written in Java, of the board game Adrenaline. The main requirement was the implementation of a distributed system consisting of a single server able to manage one game at a time and multiple clients (one per player) that could participate in only one game at a time. The entire system was designed using the MVC (Model-View-Controller) design pattern.
We implemented a version that supports the full set of rules and the Terminator Mode.
This version supports also the disconnection and reconnection of the players, in case of crash of one of the players.
In the future, war has left the world in complete destruction and split the people into factions. The factions have decided to stop the endless war and settle their dispute in the arena. A new virtual bloodsport was created. The Adrenaline tournament. Every faction has a champion, every champion has a chance to fight and the chance to win. Will you take the chance of becoming the next champion of the Adrenaline tournament?
Play a first-person shooter on your gaming table. Grab some ammo, grab a gun, and start shooting. Build up an arsenal for a killer turn. Combat resolution is quick and diceless. And if you get shot, you get faster!
- Launch the server
- Launch clients (one per player)
- Insert in the window that opens the name and the effect phrase of the player
- Enter the local IPv4 address of the server
- Enter the port number (The server opens the TCP port on port 5000)
- Select "GUI" if you want the GUI as interface mode, otherwise, if you do not select anything, the CLI will be selected automatically
- Select RMI or Socket for communication between client and server
Note: if by chance, due to network problems, a disconnection occurs during the game you must restart the client and re-enter the same name and effect phrase used to connect at the beginning of the game otherwise the server will refuse the connection
The parameters must be entered from terminal after writing the jar file:
java -jar Server.jar timer terminator numberTexes codeArena
The editable parameters are as follows:
- timer: timeout duration in seconds before starting the game. The game will start automatically once the three players are connected.
- Terminator: Indicates whether you want to play with Terminator mode or not. It can only be "true" or "false".
- numberTexes: indicate the number of skulls to put in the arena track(5-8)
- codeArena: indicate which arena to use for the match (1-4)
Note: If the values of some parameters are wrong, the default values are entered:
timer = 10 terminator = false numbersTexes = 5 codeArena = 4
The parameters must be entered from terminal after writing the jar file:
java -jar Client.jar timerAFK
timerAFK: indicate the duration in milliseconds of the timer that makes the player skip the turn in case it does not make any input in the entered time.