Mafia is a party game that can be played by 6 or more players. All players are distributed into two teams named Mafias and Citizens. The goal for each team is to defeat other team by killing them. Each turn consists of two phases called Day and Night in which players have to act their role to become victorios. For more information and get to know more about the game, checkout this link.
- Make sure Oracle OpenJDK 16.0.1 is installed on your device
- Clone repository using
git clone https://github.com/Adibov/Mafia.git
command and open project directory - Start server by running
RunGod.sh
which is placed inGod
folder (if you are running on windows, simplify double-click onRunGod.bat
) - After that, each player can connect to the server by running
RunPlayer.sh
which is placed inPlayer
folder (again, if you are on windows, just double-click onRunPlayer.bat
)
- Default server port is set on
2021
, feel free to change it underGameController
class - Some settings has been set by default in
Setting
class, feel free to change them