Skip to content

Commit

Permalink
Remove whitespace in n - 1 (#718)
Browse files Browse the repository at this point in the history
The previous version was valid markdown, but this will hopefully work
around a rendering bug
  • Loading branch information
ceddlyburge authored Oct 21, 2024
1 parent 5898167 commit 7e8b253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/concept/maze-maker/.docs/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ Your `maze` is nice, but it has some issues:
3. While deep mazes can be generated, they are not very likely: a maze of depth of 3 has an approximate 3% chance of being generated, a maze of depth 10 a 0.2% chance (the depth of a maze is calculated with `MazeMakerSupport.mazeDepth`)

Define the `mazeOfDepth n` generator so that it generates a maze of depth `n`.
Only the deepest level `0` should contain dead ends or treasure rooms (with equal probability), all other levels should be a branch containing mazes of depth `n - 1` generated recursively with `mazeOfDepth`.
Only the deepest level `0` should contain dead ends or treasure rooms (with equal probability), all other levels should be a branch containing mazes of depth `n-1` generated recursively with `mazeOfDepth`.
Make sure to use `deadend`, `room` and `branch` in the generator.

0 comments on commit 7e8b253

Please sign in to comment.