It is a board game, called ludo or les 4 petits cheveaux
To play the game, you need to make sure that:
- the server side application is launched and the server has started.
- open as much client side application as you want and connect them to the server on the right IP adress and Port.
What things you need to install the software and how to install them
- Install Intelij IDEA IDE from here.
- Install Java JDK - 1.8 from here.
- Install Maven framework from here.
- Install Netcat from here.
in linux you can just do
sudo apt-get update
sudo apt-get install snap
sudo snap install intellij-idea-ultimate --classic --edge
sudo apt-get install openjdk-8-jdk
sudo apt-get install maven
sudo apt-get install netcat
you can find both the server and the client in the folder build/.
In windows you can just double click on them, but if you are using linux, follow our steps:
For the server
java -jar server.jar
And for the client
java -jar client.jar
End with an example of getting some data out of the system or using it for a little demo
mvn install -B
you need maven installed for this.
All the project points and options are covered in the work, there might be bugs somewhere that we couldn't find during our testing proccess, but if you find any, we will be glad to know about them and fix them.
##GAME SERVER PROTOCOLE I/O In case you want test the server using netcat, you should follow these guidlines.
NAME
user-name
To choose your name in the server or to modify it.
ROOMS LIST
To get all the rooms from the server.
CREATE ROOM
room-name
To create a room
ENTER ROOM
room-name
To enter a room
PLAYERS LIST
To ask for the players list.
SPECTATORS NUMBER
To ask for the spectators number.
PLAY DICE
To play the dice, this commande is used only when you are in game and its your turn
MOVE HORSE
[0-3]
To move the chosen horse, if the horse can't move
EXIT ROOM
To exite a room
DISCONNECT
To disconnect
START GAME
To start the game only the admin can start the game
PLAYERS LIST
To request the players list in a room
NAME OK
NAME BAD
Server accepted or refused the name.
ROOM ALREADY EXISTS
ROOM ERROR
ROOM CREATED
Server accepted or not creating your room.
ROOM ENTERED PLAYER
ROOM ENTERED SPECTATOR
ROOM DOESNT EXIST
Server Accepted or not you entering in a room.
ROOM CLOSED
Server notifies players and spectators when a room is closed.
BAD MOVE
Server sends this when the player does a bad move.
GOOD BYE
Server sends this when a client is leaving
GAME STARTED
Server notifies everyone that the game has started.
server sends accept or refuse messages
ROOMS LIST
room-name
[0-4]:[0~inf]
..
END
server sends rooms list. [players][spectators].
PLAYERS LIST
user-name
..
END
server sends players list
SPECTATORS NUMBER
[0-inf]
server sends spectators number
DICE RESULT
player-name
[1-6]
server returns dice result
GAME UPDATE
user-name
[0-63]:[0-63]:[0-63]:[0-63]
..
END
server notify everyone when something change in the game.
PLAYER TURN
player-name
server notify everyone who's turn is.
WINNER IS
user-name
server sends which player won.
SERVER OFF
server sends notification when it closes.
This project is licensed under the MIT License - see the LICENSE file for details