Customize

Maze size49 × 25
Race number

The same number always gives the same race. Whoever explores fewer cells wins.

Make video

Race · 0 s

Vertical 1080×1920 video with sound, the size TikTok, Reels and Shorts use.

Free videos keep the small watermark. Pro can switch it off.

This video needs Pro

Pro parts: Race videos, Greedy Best-First. With Pro you can export any maze, any race, in any look, with or without the watermark.

MazeSim ProEverything unlocked · cancel anytime$0.99/ month

Secure checkout with Stripe · Terms

Greedy Best-First vs A* Search

Same maze, same speed, first to the exit wins. On this maze Greedy Best-First gets there first and turns gold.

The numbers

Greedy explored
622 cells
Greedy path
421 steps
A* explored
931 cells
A* path
201 steps

Greedy Best-First

Greedy Best-First Search always moves to the cell that looks closest to the exit, ignoring how far it has already come. More on Greedy Best-First.

A* Search

A* search explores the cells that look closest to the exit first, while still guaranteeing the shortest path. More on A* Search.

FAQ

Which is faster in a maze, Greedy Best-First or A* Search?

On this maze Greedy Best-First reached the exit first, after exploring 622 cells to 931. On other mazes the result can flip; tap the shuffle button for another race.

How is the race fair?

Both solvers run on the same maze and explore the same number of cells per frame. Whoever explores fewer cells before reaching the exit finishes first and turns gold.

Which one finds the shorter path?

A* Search: 201 steps to 421. Exploring fewer cells and finding the shorter path are different things.

Pro

and undefined are part of Pro

  • All 12 generators and 12 solvers
  • Hexagon, triangle and circle grids; heart, star and 6 more outlines
  • Giant mazes, up to 201×201, any width and height
  • Custom colours, 7 more themes, flood styles, clean no-label videos
  • Any speed from 0.25× to 4×, any amount of loops
  • 4 more scales and 3 more instruments
  • Titles on your videos, custom timing, any start and goal
  • Race videos, with or without the watermark