Skip to content

A web-based implementation of the classic Snake and Ladders board game built using HTML, CSS, JavaScript, and Flask. This two-player game features real-time dice rolls, interactive movement, and responsive design β€” playable directly in your browser.

Notifications You must be signed in to change notification settings

vedantmpatil/SnakeAndLadders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

15 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🎲 Simple Snake and Ladders Game

A digital recreation of the classic board game β€” Snake and Ladders β€” built using HTML, CSS, JavaScript, and Python (Flask). This fun and interactive web application supports two-player gameplay, allowing users to roll dice, move pieces, and experience the joy of snakes pulling them down or ladders boosting them up. Fully responsive and playable directly in the browser.


🧩 Features

  • πŸ‘₯ Two-Player Gameplay: Take turns rolling the dice with a friend and race to the finish.
  • 🐍 Snakes & Ladders: Classic mechanics where ladders advance your position and snakes bring you down.
  • πŸ’Ύ Game State Persistence: The game remembers your progress across refreshes and page reloads.
  • πŸ“± Responsive Design: Smooth gameplay across all screen sizes β€” mobile, tablet, or desktop.
  • 🎨 Custom Board: A visually engaging layout with background imagery and styled pieces.

πŸ› οΈ Technologies Used

Purpose Stack
Structure HTML
Styling CSS
Game Logic JavaScript
Backend Python (Flask)
Versioning Git

▢️ Usage

  1. Clone the repository:

    git clone https://github.com/yourusername/snake-and-ladders-game.git
    cd snake-and-ladders-game
  2. (Optional) Set up a virtual environment and install Flask:

    python -m venv venv
    source venv/bin/activate  # or venv\Scripts\activate on Windows
    pip install flask
  3. Run the app:

    python app.py
  4. Open your browser and visit:

    http://localhost:5000
    

πŸ“ Project Structure

SNAKE-AND-LADDERS/
β”œβ”€β”€ static/
β”‚   β”œβ”€β”€ board.jpg
β”‚   β”œβ”€β”€ index.css
β”‚   └── index.js
β”œβ”€β”€ template/
β”‚   └── index.html
β”œβ”€β”€ app.py
└── README.md

πŸ“œ How to Play

  • Open the game in your browser.
  • Two players take turns rolling the dice.
  • The game piece moves according to the dice value.
  • If a player lands on a ladder, they climb up.
  • If a player lands on a snake, they slide down.
  • First to reach the final square wins!

πŸ“ License

This project is licensed under the MIT License.


πŸ™Œ Acknowledgments

  • Inspired by the classic board game we all love.
  • Python Flask Docs
  • MDN Web Docs for JavaScript and CSS references

About

A web-based implementation of the classic Snake and Ladders board game built using HTML, CSS, JavaScript, and Flask. This two-player game features real-time dice rolls, interactive movement, and responsive design β€” playable directly in your browser.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published