Log In  

This cartridge is just a solution of a problem from an algorithm course. It's not made to be reused!
But do what you want with it ;-)

Cart #44482 | 2017-09-23 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1


How to use:

  • first state is step by step generation, press btn_5 (<x> on keyboard) for next step or btn_4 (<z>) for automatic generation
  • second state is auto generation, press btn_5 to speed it up (+20%), or btn_4 for generating all at once
  • when the maze is generated (green pixel at bottom right corner), press btn_5 for show/hide path to the exit, move with the arrows keys or press btn_4 to restart from the begining
P#44484 2017-09-23 13:44 ( Edited 2017-09-24 06:32)

That's quite neat, thank you - and will certainly come handy one day. Bookmarked. Quick question - is the slowness of the generation by design or a side effect of using a 'weak' system such as pico8?

P#44506 2017-09-23 17:02 ( Edited 2017-09-23 21:02)

Thank you!
The generator is surprisingly quick, you can press button 4 a second time to render all at once. The algorithm run in Θ(n) aka linear time, that means a constant number of action for each cell.

P#44523 2017-09-24 02:18 ( Edited 2017-09-24 06:18)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-20 01:47:02 | 0.009s | Q:18