Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.17 KB

README.md

File metadata and controls

28 lines (22 loc) · 1.17 KB

Snake Ladder Game

This is a simple Snake and Ladder game implemented in C++.

About the Game

The game is a console-based implementation of the classic Snake and Ladder board game. Players take turns rolling a dice and moving their token accordingly on the game board. The game includes features such as snakes and ladders that can either hinder or assist a player's progress. The first player to reach or exceed the final position (100) on the board wins the game.

How to Play

  • Compile the source code using a C++ compiler.
  • Run the compiled executable.
  • Enter the names of the two players.
  • Players take turns rolling a dice by pressing any key.
  • Follow on-screen prompts to see if a snake or ladder is encountered and to display the updated positions.
  • The game continues until one of the players reaches or exceeds the final position (100).

Features

  • Player name input
  • Random dice rolling
  • Snake and ladder encounters
  • Win condition detection
  • Console-based user interface

Usage

  • Ensure you have a C++ compiler installed.
  • Clone the repository to your local machine.
  • Compile the source code using the C++ compiler.
  • Run the compiled executable to start the game.