Skip to content

Commit 6ea4ce4

Browse files
committed
perf(maze): add gif maze animation
1 parent ade71c6 commit 6ea4ce4

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

artificialintelligence/assignments/maze/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ In order to give consistency on how to decide the direction of the next cell, th
3535
3. If there are one visitable, do not call random, just return the first neighbor found;
3636
4. If there are two or more visitable neighbors, call random and return the neighbor at the index of the random number modulo the number of visitable neighbors. `vec[i]%visitableCount`
3737

38+
??? example Simulation
39+
40+
If you simulate the algorithm visually, the result would be something similar to the following
41+
42+
![Maze generation](maze.gif)
43+
3844
## Input
3945

4046
The input is a single line with three `32 bits` unsigned integer numbers, `C`, `L` and `I`, where `C` and `L` are the number of columns and lines of the maze, respectively, and `I` is the index of the first random number to be used> `I` can varies from `0` to `99`.
Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)