January 2016
Intermediate to advanced
304 pages
6h 17m
English
The recursive backtracker, as the name suggests, involves recursively calling a function that carves passages between two tiles in the game grid. By choosing random directions to carve this path, the algorithm carves its way through the level as far as possible before resolving its recursions, working back to the start node.
The following is pseudocode for one such algorithm:
Read now
Unlock full access