Skip to content

This is a simple Snake and Ladder game implemented in C++.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.

Notifications You must be signed in to change notification settings

chahelgupta/snakes-and-ladders-game-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

This is a simple Snake and Ladder game implemented in C++.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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages