Rule30: Difference between revisions
Content added Content deleted
m (→{{header|C}}) |
mNo edit summary |
||
Line 7: | Line 7: | ||
;Task: |
;Task: |
||
Write a program that prints out the evolution of the rule |
Write a program that prints out the evolution of the rule 30 on 1D celular automata as consecutive rows of ASCII characters. Showing the classic triangle: |
||
<center> |
<center> |
||
. . . . . . . . . . . . . . . . . . . . . . . # . . . . . . . . . . . . . . . . . . . . . . . |
. . . . . . . . . . . . . . . . . . . . . . . # . . . . . . . . . . . . . . . . . . . . . . . |
||
Line 35: | Line 36: | ||
</center> |
</center> |
||
For |
(For standardization proposes, use rows of 50 cells, and just run the first 25th iterations.) |
||
=={{header|C}}== |
=={{header|C}}== |