A simple cellular automaton written in Ada.
This cellular automaton is based on Rule 30. You can generate a specified number of lines with the width you want.
usage: cellular <width> <lines>
Parameters:
- width: the width of each line
- lines: the number of lines to generate
You should see triangle patterns in the generated output. The base pattern is generated randomly.
Here is a sample of the output procuced by the program :
:::text
...@@@.@...@@@@@@...@.@...@.@....@.@.@@@@@@.......@@@.@.@@@...@.@@@@@@..
..@@...@@.@@.....@.@@.@@.@@.@@..@@.@.@.....@.....@@...@.@..@.@@.@.....@.
.@@.@.@@..@.@...@@.@..@..@..@.@@@..@.@@...@@@...@@.@.@@.@@@@.@..@@...@@.
.@..@.@.@@@.@@.@@..@@@@@@@@@@.@..@@@.@.@.@@..@.@@..@.@..@....@@@@.@.@@..
.@@@@.@.@...@..@.@@@..........@@@@...@.@.@.@@@.@.@@@.@@@@@..@@....@.@.@.
.@....@.@@.@@@@@.@..@........@@...@.@@.@.@.@...@.@...@....@@@.@..@@.@.@.
.@@..@@.@..@.....@@@@@......@@.@.@@.@..@.@.@@.@@.@@.@@@..@@...@@@@..@.@.
.@.@@@..@@@@@...@@....@....@@..@.@..@@@@.@.@..@..@..@..@@@.@.@@...@@@.@.
.@.@..@@@....@.@@.@..@@@..@@.@@@.@@@@....@.@@@@@@@@@@@@@...@.@.@.@@...@.
.@.@@@@..@..@@.@..@@@@..@@@..@...@...@..@@.@............@.@@.@.@.@.@.@@.
.@.@...@@@@@@..@@@@...@@@..@@@@.@@@.@@@@@..@@..........@@.@..@.@.@.@.@..
.@.@@.@@.....@@@...@.@@..@@@....@...@....@@@.@........@@..@@@@.@.@.@.@@.
.@.@..@.@...@@..@.@@.@.@@@..@..@@@.@@@..@@...@@......@@.@@@....@.@.@.@..
.@.@@@@.@@.@@.@@@.@..@.@..@@@@@@...@..@@@.@.@@.@....@@..@..@..@@.@.@.@@.
.@.@....@..@..@...@@@@.@@@@.....@.@@@@@...@.@..@@..@@.@@@@@@@@@..@.@.@..
.@.@@..@@@@@@@@@.@@....@...@...@@.@....@.@@.@@@@.@@@..@........@@@.@.@@.
.@.@.@@@.........@.@..@@@.@@@.@@..@@..@@.@..@....@..@@@@......@@...@.@..
.@.@.@..@.......@@.@@@@...@...@.@@@.@@@..@@@@@..@@@@@...@....@@.@.@@.@@.
.@.@.@@@@@.....@@..@...@.@@@.@@.@...@..@@@....@@@....@.@@@..@@..@.@..@..
.@.@.@....@...@@.@@@@.@@.@...@..@@.@@@@@..@..@@..@..@@.@..@@@.@@@.@@@@@.
.@.@.@@..@@@.@@..@....@..@@.@@@@@..@....@@@@@@.@@@@@@..@@@@...@...@.....
Yay triangles!
This program is licensed under WTFPL. For further informations, read the COPYING file.