Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
xnx committed Jun 21, 2018
2 parents bc8c2f5 + abbd3b6 commit e2012bb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion maze/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ For example with `nx = ny = 40`:
<img width="515" height="515" src="df_maze.png" alt="Sample depth-first 40x40 maze">
</p>

`ca_maze.py` creates the frames for an animation of the growth of a maze using the cellular automaton algorithm described at https://scipython.com/blog/maze-generation-by-cellular-automaton/. The frames are written to the subdirectory `ca_frames/` and the maze size is again set by the variables `nx` and `ny`.
`ca_maze.py` creates the frames for an animation of the growth of a maze using the cellular automaton algorithm described at https://scipython.com/blog/maze-generation-by-cellular-automaton/. The frames are written to the subdirectory `ca_frames/` and the maze size is again set by the variables `nx` and `ny`. The frames can be put together into an animated gif with [Imagemagick](https://www.imagemagick.org/script/index.php)'s `convert` utility. For example:

<p align="center">
<img width="600" height="450" src="ca_maze1.gif" alt="Sample cellular automaton maze generation">
</p>

0 comments on commit e2012bb

Please sign in to comment.