Skip to content

owanturist/obstacle-maze

Repository files navigation

Obstacle Maze | Demo

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:1234 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm run build

Builds the app for production to the dist folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.

npm test

Launches the test runner in the interactive watch mode.

Features

  • Hold and draw for walls, gravel and clear
  • Undo / Redo history traveling
  • Save / Load from file
  • Custom size of a maze
  • Solver is looking for the most "straight" shortest path (with less turns)
  • Hotkeys
  • Press "4" key 4 times
  • Uniq handmade icons design

Generate random maze

Go to maze generator and follow steps:

  1. Set width
  2. Set height
  3. Choose "USE THIS CHARACTER FOR WALLS" and set #
  4. Choose "USE THIS CHARACTER FOR PATHS" and set .
  5. Choose "SINGLE CHARARACTER (MORE RECTANGULAR)"
  6. Generate
  7. Copy the generated maze and save it into a .txt file

Note: Check out the samples folder to get generated mazes.