Coder Social home page Coder Social logo

maze-game's Introduction

A maze generation and pathfinding algorithm visualiser

Maze-Generating Algorithms

  • Aldous-Broder Algorithm
  • Binary Tree Algorithm
  • Depth First Search
  • Eller's Algorithm
  • Hunt And Kill Algorithm
  • Randomised Kruskal's Algorithm
  • Randomised Prim's Algorithm
  • Recursive Backtracking
  • Sidewinder
  • Wilson's Algorithm

Maze-Pathfinding Algorithms

  • A* Search Algorithm
  • Breadth First Search
  • Dead End Filling
  • Depth First Search
  • Wall Follower

Key Algorithm
1 Aldous-Broder Algorithm
2 Binary Tree Algorithm
3 Depth First Search
4 Eller's Algorithm
5 Hunt And Kill Algorithm
6 Kruskal's Algorithm
7 Prim's Algorithm
8 Recursive Backtracking
9 Sidewinder Algorith
0 Wilson's Algorith
Numpad 1 A* Search Algorithm
Numpad 2 Breadth First Search
Numpad 3 Dead End Filling
Numpad 1 Depth First Search
Numpad 4 Wall Follower

Controls:

Key Action
Right-Click Sets the start cell for maze generation and resets the maze
D Advances the maze generation algorithm by one step and draws maze
E Visualise generation; click any mouse button or press esc or Space to stop
G Generates the maze
R Resets the maze
Left-Click Marks the cell as the start or end cell for pathfinding - start cell will be placed first
S Visualise pathfinding
F Finds the path from start to end and draws the path
C After the path has been found and drawn, clears the path

TODO:

  • Implement Eller's Algorithm
  • Implement Wilson's Algorithm
  • Implement Sidewinder Algorithm
  • Implement DFS as a pathfinding algorithm
  • Implement Dead-end filling algorithm
  • Implement Wall follower algorithm

References

[1] Jamis Buck - Mazes for Programmers
[2] Maze-solving algorithm
[2] Maze generation algorithm

maze-game's People

Contributors

jeffx13 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.