Skip to content
This repository was archived by the owner on Mar 15, 2022. It is now read-only.

gagath/cellular

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cellular

A simple cellular automaton written in Ada.

Description

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.

Example output

Here is a sample of the output procuced by the program :

:::text
...@@@.@...@@@@@@...@.@...@.@....@.@.@@@@@@.......@@@.@.@@@...@.@@@@@@..
..@@...@@.@@.....@.@@.@@.@@.@@..@@.@.@.....@.....@@...@.@..@.@@.@.....@.
.@@.@.@@..@.@...@@.@..@..@..@.@@@..@.@@...@@@...@@.@.@@.@@@@.@..@@...@@.
.@..@.@.@@@.@@.@@..@@@@@@@@@@.@..@@@.@.@.@@..@.@@..@.@..@....@@@@.@.@@..
.@@@@.@.@...@..@.@@@..........@@@@...@.@.@.@@@.@.@@@.@@@@@..@@....@.@.@.
.@....@.@@.@@@@@.@..@........@@...@.@@.@.@.@...@.@...@....@@@.@..@@.@.@.
.@@..@@.@..@.....@@@@@......@@.@.@@.@..@.@.@@.@@.@@.@@@..@@...@@@@..@.@.
.@.@@@..@@@@@...@@....@....@@..@.@..@@@@.@.@..@..@..@..@@@.@.@@...@@@.@.
.@.@..@@@....@.@@.@..@@@..@@.@@@.@@@@....@.@@@@@@@@@@@@@...@.@.@.@@...@.
.@.@@@@..@..@@.@..@@@@..@@@..@...@...@..@@.@............@.@@.@.@.@.@.@@.
.@.@...@@@@@@..@@@@...@@@..@@@@.@@@.@@@@@..@@..........@@.@..@.@.@.@.@..
.@.@@.@@.....@@@...@.@@..@@@....@...@....@@@.@........@@..@@@@.@.@.@.@@.
.@.@..@.@...@@..@.@@.@.@@@..@..@@@.@@@..@@...@@......@@.@@@....@.@.@.@..
.@.@@@@.@@.@@.@@@.@..@.@..@@@@@@...@..@@@.@.@@.@....@@..@..@..@@.@.@.@@.
.@.@....@..@..@...@@@@.@@@@.....@.@@@@@...@.@..@@..@@.@@@@@@@@@..@.@.@..
.@.@@..@@@@@@@@@.@@....@...@...@@.@....@.@@.@@@@.@@@..@........@@@.@.@@.
.@.@.@@@.........@.@..@@@.@@@.@@..@@..@@.@..@....@..@@@@......@@...@.@..
.@.@.@..@.......@@.@@@@...@...@.@@@.@@@..@@@@@..@@@@@...@....@@.@.@@.@@.
.@.@.@@@@@.....@@..@...@.@@@.@@.@...@..@@@....@@@....@.@@@..@@..@.@..@..
.@.@.@....@...@@.@@@@.@@.@...@..@@.@@@@@..@..@@..@..@@.@..@@@.@@@.@@@@@.
.@.@.@@..@@@.@@..@....@..@@.@@@@@..@....@@@@@@.@@@@@@..@@@@...@...@.....

Yay triangles!

Copyright

This program is licensed under WTFPL. For further informations, read the COPYING file.

About

A cell generator program written in Ada.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published