Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/owanturist/obstacle-maze

Obstacle Maze app
https://github.com/owanturist/obstacle-maze

maze react state-management typescript

Last synced: about 2 months ago
JSON representation

Obstacle Maze app

Awesome Lists containing this project

README

        

# Obstacle Maze | [Demo](https://obstacle-maze.surge.sh)

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.

Open [http://localhost:1234](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](https://www.dcode.fr/maze-generator) and follow steps:

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

**Note**: Check out the [`samples`](./samples) folder to get generated mazes.