# Maze Generator

**URL:** https://forum.makecode.com/t/maze-generator/5341
**Category:** Show & Tell
**Tags:** game
**Created:** [January 4, 2021, 5:41pm UTC](https://forum.makecode.com/t/maze-generator/5341 "2021-01-04T17:41:07Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [January 4, 2021, 5:41pm UTC](https://forum.makecode.com/t/maze-generator/5341/1 "2021-01-04T17:41:07Z")

</div>

> **[Maze Generator v1.1.2](https://arcade.makecode.com/12267-60054-81925-96402)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

It uses a modified version of the [Aldous-Broder](https://en.wikipedia.org/wiki/Maze_generation_algorithm#Aldous-Broder_algorithm) algorithm.

```nohighlight
| Difficulty | Time (seconds) | Tilemap size | Approx. time to generate |
|------------|----------------|--------------|--------------------------|
| Easy | 30 | 21x15 | <10 seconds |
| Medium | 60 | 41x31 | <30 seconds |
| Hard | 150 | 81x61 | 3 minutes |

```

Hint: The end is **currently** always in the bottom right!

> **[UnsignedArduino/Arcade-Maze-Generator](https://github.com/UnsignedArduino/Arcade-Maze-Generator)**
>
> A maze generator in MakeCode Arcade! Contribute to UnsignedArduino/Arcade-Maze-Generator development by creating an account on GitHub.

---

<div class="post-metadata">

### Author: ![FlintAsher](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/flintasher/32/2745_2.png) [@FlintAsher](https://forum.makecode.com/u/FlintAsher)
#### Post date: [January 4, 2021, 7:54pm UTC](https://forum.makecode.com/t/maze-generator/5341/2 "2021-01-04T19:54:25Z")

</div>

This looks so cool! So it just generates a maze depending on the difficulty you chose? And the mazes are random.

---

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [January 4, 2021, 8:09pm UTC](https://forum.makecode.com/t/maze-generator/5341/3 "2021-01-04T20:09:06Z")

</div>

Yes! All the mazes are random!

(This would be a perfect opportunity for a random number extension that allows you to create multiple rng objects with seeding!)

---

<div class="post-metadata">

### Author: ![eanders](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/eanders/32/3134_2.png) [@eanders](https://forum.makecode.com/u/eanders)
#### Post date: [January 5, 2021, 12:26am UTC](https://forum.makecode.com/t/maze-generator/5341/4 "2021-01-05T00:26:30Z")

</div>

Very cool! And I love the fade effects.

---

<div class="post-metadata">

### Author: ![shiba-jp](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/shiba-jp/32/2879_2.png) [@shiba-jp](https://forum.makecode.com/u/shiba-jp)
#### Post date: [January 5, 2021, 4:52pm UTC](https://forum.makecode.com/t/maze-generator/5341/5 "2021-01-05T16:52:06Z")

</div>

Very cool!

---

<div class="post-metadata">

### Author: ![FlintAsher](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/flintasher/32/2745_2.png) [@FlintAsher](https://forum.makecode.com/u/FlintAsher)
#### Post date: [January 11, 2021, 5:23pm UTC](https://forum.makecode.com/t/maze-generator/5341/6 "2021-01-11T17:23:55Z")

</div>

This feels like a game i would play over and over again.

---

<div class="post-metadata">

### Author: ![bugs](https://avatars.discourse-cdn.com/v4/letter/b/839c29/32.png) [@bugs](https://forum.makecode.com/u/bugs)
#### Post date: [January 24, 2022, 2:51pm UTC](https://forum.makecode.com/t/maze-generator/5341/7 "2022-01-24T14:51:13Z")

</div>

This game is really very interesting but for a very big maze the way to find outside is very hard so i use maze solver to easily get idea about paths.[Maze Generator & Solver Tool](https://randompokemon.info/maze-generator/)
