Skip to content

A classic Snake and Ladder game implemented in Java. includes a command-line interface, where players roll dice, encounter snakes and ladders, and advance toward the goal.

Notifications You must be signed in to change notification settings

iTzTalha/snake-and-ladder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake and Ladder Game

This is an implementation of the classic Snake and Ladder game in Java. It includes a command-line interface, where players roll dice, encounter snakes and ladders, and advance toward the goal.

Features

  • Multiplayer Mode: Play with multiple players, each taking turns until one wins.
  • Customizable Board: Define board size and positions of snakes and ladders.
  • Command-Line Interface: Simple and interactive gameplay experience.

Setup

1. Clone the repository:

git clone https://github.com/iTzTalha/snake-and-ladder.git

2. Configure Game Settings:

  • Define the number of players and their names.
  • Customize board settings: set board size and configure snakes and ladders.
  • Adjust game strategies, such as the winning criteria or additional gameplay rules.

3. Compile and run the game:

cd snake-and-ladder
javac -d bin src/*.java
java -cp bin Driver

How to Play

  1. Players take turns rolling the dice.
  2. If a player lands on a snake, they slide down; if they land on a ladder, they climb up.
  3. The first player to reach the final square wins!

Technologies Used

  • Java: Core language for implementation.
  • Object-Oriented Design: Modular and reusable code structure.
  • Design Patterns: Applied for efficient game mechanics.

Contributing

Contributions to the Splitwise Clone project are welcome! If you find any bugs or have suggestions for improvements, feel free to open an issue or submit a pull request.

Show Your Support

Give a ⭐️ if you like this project!