Skip to content

Commit 33ff1b8

Browse files
author
Jegors Cemisovs
committed
Simplify and restructure maze instructions.
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.
1 parent ee71139 commit 33ff1b8

File tree

1 file changed

+2
-22
lines changed

1 file changed

+2
-22
lines changed

exercises/mazy-mice/description.md renamed to exercises/mazy-mice/instructions.md

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff 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
62

73
Your task is to generate the perfect mazes for Mickey and Minerva — those with only one solution and no isolated sections.
84
Here's what you need to know:
@@ -12,11 +8,10 @@ Here's what you need to know:
128
- The program should accept two parameters: rows and columns. The maze should be between 5 and 100 cells in size.
139
- A maze which is `x` columns wide and `y` rows high should be `2x + 1` characters wide and `2y + 1` characters high.
1410
- 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.
1611

1712
It's time to create some perfect mazes for these adventurous mice!
1813

19-
### Examples
14+
## Examples
2015

2116
The small square maze 5x5 cells (or 11x11 characters)
2217

@@ -58,20 +53,5 @@ The rectangular maze 6x18 cells
5853

5954
You can use any algorithm to generate a perfect maze. The [recursive backtracker][recursive-backtracker] is a good choice.
6055

61-
### Box drawing characters
62-
63-
| Character | Name | Unicode |
64-
| :-------: | :------------------------------------- | :------ |
65-
|| box drawings light down and right | U+250C |
66-
|| box drawings light horizontal | U+2500 |
67-
|| box drawings light down and horizontal | U+252C |
68-
|| box drawings light down and left | U+2510 |
69-
|| box drawings light vertical | U+2502 |
70-
|| box drawings light up and right | U+2514 |
71-
|| box drawings light up and horizontal | U+2534 |
72-
|| box drawings light up and left | U+2518 |
73-
|| box drawings light vertical and right | U+2520 |
74-
|| rightwards white arrow | U+21E8 |
75-
7656
[recursive-backtracker]: https://en.wikipedia.org/wiki/Maze_generation_algorithm
7757
[box-drawing]: https://en.wikipedia.org/wiki/Box-drawing_character

0 commit comments

Comments
 (0)