You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Moved content from description to instructions for clarity and streamlined examples section. Removed redundant box-drawing character table while keeping key details for maze generation intact.
Copy file name to clipboardExpand all lines: exercises/mazy-mice/instructions.md
+2-22Lines changed: 2 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,4 @@
1
-
# Description
2
-
3
-
Meet Mickey and Minerva, two clever mice who love to navigate their way through a maze to find cheese. They enjoy a good challenge, but with only their tiny mouse brains, they prefer if there is only one correct path to the cheese.
4
-
5
-
## Instructions
1
+
# Instructions
6
2
7
3
Your task is to generate the perfect mazes for Mickey and Minerva — those with only one solution and no isolated sections.
8
4
Here's what you need to know:
@@ -12,11 +8,10 @@ Here's what you need to know:
12
8
- The program should accept two parameters: rows and columns. The maze should be between 5 and 100 cells in size.
13
9
- A maze which is `x` columns wide and `y` rows high should be `2x + 1` characters wide and `2y + 1` characters high.
14
10
- If no seed is provided, generate a random maze. If the same seed is provided multiple times, the resulting maze should be the same each time.
15
-
- Use [box-drawing][box-drawing] characters to draw walls, and an arrow symbol (⇨) for the entrance on the left and exit on the right.
16
11
17
12
It's time to create some perfect mazes for these adventurous mice!
18
13
19
-
###Examples
14
+
## Examples
20
15
21
16
The small square maze 5x5 cells (or 11x11 characters)
22
17
@@ -58,20 +53,5 @@ The rectangular maze 6x18 cells
58
53
59
54
You can use any algorithm to generate a perfect maze. The [recursive backtracker][recursive-backtracker] is a good choice.
0 commit comments