Skip to content

morgan-sam/Train-Tracks-React

Repository files navigation

Train Tracks Puzzle

A React implementation of the train tracks puzzle.

Play here.

Alt text

How To Play

The goal of the game is to create a train track path between the entrance and the exit of the board.

The path must have the same number of tracks in each row or column shown in the corresponding header.

If you place too many tracks a row/column will turn red.
If you place the right amount it will turn green.

Alt text

Modes

There are three map sizes: 6x6, 8x8 and 10x10.

There are 5 difficulty levels. Difficulties 3 and below are guaranteed a single correct solution, however difficulties 4 & 5 may require trial and error as there may be multiple possible solutions. Only one solution will be accepted. If you are stuck try using the add hint track button.

Controls

Hover over different parts of the tile to see what track you will place on left click.

Alt text

You can change already placed tracks by clicking on a different part of the tile.

Alt text

Right click to place Xs to mark tiles that have no tracks.

Alt text

Right click on already placed tiles to delete them.

Alt text

Click both mouse buttons place dots to mark tracks with an unknown rail type.

Alt text

Hold a mouse button and drag to place multiple tracks/crosses/dots.

Alt text

To Do

Currently the game does not display properly on mobile. A mobile version would require a different control scheme as dragging does not work, and phone screens are too small to precisely press a section of a tile for a particular track type. The planned control scheme would be essentially the same as this, with buttons for each individual track type.

About

🛤️ Visual puzzle game built in React

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published