The idea is to create a generator for numberlink puzzles. In order to be classified as a valid puzzle each board must follow a set of rules:
- The board must be fully filled by paths
- Each path must have a single start and a single end
- Each path must be at least 3 cells long
- A cell may not be adjacent with more than two cells of the same path
Generated examples created with this repo:
Live demo (it may be tired, give it a few seconds to wake up): https://numberlink-flow-844375fce804.herokuapp.com/
How to run:
git clone [repo url]
cd flow && npm install && npm run start
- In a second terminal run:
cd flow/client && npm run start
Alternatively:
git clone [repo url]
cd flow && npm install && npm run build && npm run start