wired-community-snakes-and-ladder

The snake & ladder game is a board game where players move a piece across a grid using a die, hoping to climb ladders and avoid stumbling on snakes.


This tutorial explains how to wire this game.


1. Game scenario

The player rolls the die and moves their pawn forward by the number of spaces shown on the roll. If the pawn lands on a tile with a floor tile switch, an event is triggered:

  • If the switch is next to a snake's mouth, the pawn moves back to the tile where the snake's tail is located.
  • If the switch is next to a ladder, the pawn climbs up to the tile at the top of the ladder.


The goal of the game is to reach the finish tile to win.


2. Wiring Elements

This section presents the wiring elements needed to create this game (available in the ShopZ):

  • 1 × Pawn
  • 1 × Die
  • 4 × Vector encoders (color each one a different color: green, yellow, red, blue)
  • 1 × Vector comparator
  • 1 × Basic 2-input counter
  • 1 × Floor tile switch
  • 1 × Square button
  • 2 × 16-wire repeaters (color each one a different color: purple, pink)
  • 1 × Arrow teleport tile


This section also presents the elements specific to the snake game (currently available in the ShopZ):

  • Game ladders (small, medium)
  • Game snakes (short, medium, long)


3. Implementation

3.1. Game Control Setup

  1. Connect the A electrical output of the square button to the "Start" input of the die.
  2. Connect the "All" output of the die to the "Move" input of the pawn.

3.2. Pawn Setup

  1. Set a starting destination for the pawn using the green vector encoder.
  2. Set an arrival destination for the pawn using the yellow vector encoder.
  3. Connect the "Data" output of the green vector encoder to the "Initial Position" input of the pawn.
  4. Connect the "Data" output of the yellow vector encoder to the "Destination" input of the pawn.
  5. Connect the "Position" output of the pawnto the "Data" input of the red vector encoder.
  6. Connect the "Data" output of the red vector encoder to the A electrical input of the purple 16-wire repeater.
  7. Connect the A electrical output of the purple 16-wire repeater to the A electrical input of the vector comparator.
  8. Set a destination for the blue vector encoder on the floor tile switch.
  9. Connect the "Data" output of the blue vector encoder to the B electrical input of the vector comparator.
  10. Connect the A electrical output of the vector comparator to the A electrical input of the basic 2-input counter.
  11. Connect the A electrical output of the floor tile switch to the B electrical input of the basic 2-input counter.
  12. Set a destination for the arrow teleport tile:
  • If it's for a ladder, the destination will be at the upper level of the ladder.
  • If it's for a snake, the destination will be at the lower level of the snake.
  1. Connect the A electrical output of the basic 2-input counter to the "Destination" input of the arrow teleport tile.
  2. Connect the "Destination" output of the arrow teleport tile to the pink 16-wire repeater.
  3. Connect the A electrical output of the pink 16-wire repeater to the "Teleportation" input of the pawn.


4. Conclusion

This tutorial has shown you how to wire the snake game.

You can repeat these steps as many times as needed, depending on the number of players you want to add.

I hope the explanations were clear. Have fun!


Tutorial by cristianohamza (French server)