#game #terminal-game #board-game #rust #snakes-and-ladders

bin+lib snake_ladder

A simple terminal-based implementation of Snakes and Ladders in Rust

2 unstable releases

0.2.0 Nov 26, 2024
0.1.0 Nov 26, 2024

#234 in Games

Download history 278/week @ 2024-11-25 22/week @ 2024-12-02 15/week @ 2024-12-09

315 downloads per month

MIT license

10KB
147 lines

Snake Ladder

A terminal-based implementation of the classic Snakes and Ladders game written in Rust. Play with a friend and enjoy the thrill of climbing ladders and avoiding snakes!


Features

  • 🎲 2-player gameplay: Take turns rolling the dice.
  • 🐍 Snakes and Ladders mechanics: Land on a snake to slide down, or climb up a ladder to get closer to the finish.
  • πŸ“œ Visual game board: Displays the board with snakes, ladders, and player positions in an intuitive format.
  • 🎨 Color-coded board: Players, snakes, and ladders are visually differentiated using colors (requires a terminal that supports colors).

Getting Started

Prerequisites

  • Rust installed. If you don’t have it, install it via rustup:
    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
    

Dependencies

~0.3–6.5MB
~39K SLoC