Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SnakesAndLadders

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.

Table of contents

Technologies:

  • JavaFX 19
  • Scene Builder

Features:

  • Setting up a game server
  • Connecting the client to the server
  • IP input validation
  • 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.

image

The IP address and the specified port number are valid.

image image

If a user wants to connect to the server, he should enter the server's IP address and the selected port.

image

The player who created the server must wait for an opponent to join.

image

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.

image

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.

image

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.

image

The user wins only when he stands exactly on the tile with the number 100.

image

After winning, players can start the game again, or leave it.

image

When one user leaves the game, the other gets a message about it.

image

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages