Rule30: Difference between revisions

Content added Content deleted
mNo edit summary
Line 7: Line 7:


;Task:
;Task:
Write a program that prints out the evolution of the rule 30th 1-dimensional celular automata as consecutive rows of ASCII characters all forming the classic triangle:
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 standarization propuses, use rows of 50 cells, and just run the firts 25th iterations.
(For standardization proposes, use rows of 50 cells, and just run the first 25th iterations.)



=={{header|C}}==
=={{header|C}}==