You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SnakesAndLadders is a two-player game written in JavaFX. It is written based on the concept of Network Programming, so it can be played by people using the same network. Each player's game is handled on separate threads.
Handling the players' game (drawing the dice value, movement of the pawns, handling winnings, handling when a player leaves the game)
Setup:
Download the SnakesAndLadders.jar file located at out/artifacts/SnakesAndLadders_jar and run it by double clicking on it.
Examples of use:
If a player starts the game first it means that he will be the server in the game.
The IP address and the specified port number are valid.
If a user wants to connect to the server, he should enter the server's IP address and the selected port.
The player who created the server must wait for an opponent to join.
Once an opponent has joined, the game starts with the first player. Each player sees his pawn as blue and the opponent's as yellow.
In order to move from the starting position, players must draw 6 eyes on the dice. The second player always sees what his opponent has drawn.
After drawing 6 eyes, a player can move from the first tile. The other player also sees the user's pawn being moved. In this situation, when the user drew 6 eyes, he was placed on the tile that was the beginning of the ladder, which moved him to the tile with the number 29. If the user had stood on the tile with the snake's head, he would have been moved back to the tile marked with the end of the snake's tail.
The user wins only when he stands exactly on the tile with the number 100.
After winning, players can start the game again, or leave it.
When one user leaves the game, the other gets a message about it.