This is a Java-based multiplayer game built for a project in University of Twente. It allows two players to connect to a server and play a turn-based board game in the terminal.
git clone https://github.com/egedarici/Collecto.git
cd Collecto/srcjava -version
javac -versionRun this inside the src directory:
javac client/*.java server/*.java game/*.java protocols/*.javaIn one terminal:
java server.ServerTUIGive any port and name to your server:
Enter port, followed by a server description (E.g. 1234 Bob's server)
Open two separate terminals. In each one:
cd path/to/Collecto/src
java client.ClientTUIThen follow the prompts:
- Enter a client description:
Player1orPlayer2 - Enter server IP:
localhost - Enter port:
8800(the port you've given to the server) - Enter your username:
Player1orPlayer2
In both client terminals, type:
queueOnce both players are queued, the game will start.