Play Snakes and Ladders

Interactive browser recreation

Game Board

Start a game

Configure the players and start a new game.

Ladder Snake Finish

Roll the dice to move. You must land exactly on square 100 to win.

Game Log

  1. Game activity will appear here.

About this project

Original C++ board logic, recreated for the browser.

The original coursework is a Windows Console application written in C++. It draws a serpentine 10×10 board, supports one to four local players, animates dice rolls, moves player tokens, and applies fixed snakes and ladders.

The browser recreation preserves the same board numbering, player order, exact-roll finish rule, snake and ladder positions, and local multiplayer flow using HTML, CSS, and Vanilla JavaScript.

How to play

Race from the first square to 100.

  1. Select between one and four local players and enter their names.
  2. Player A starts, followed by B, C, and D when those players are enabled.
  3. Roll the dice and move forward by the displayed number of squares.
  4. Landing at the bottom of a ladder moves the player upward.
  5. Landing on a snake head moves the player downward.
  6. A roll that would pass square 100 does not move the player.
  7. The first player to land exactly on square 100 wins.

Repository

C++ source and web recreation in one project.

The repository preserves the original coursework file alongside a minimally corrected C++ version, the playable browser recreation, and implementation notes.