Implement a Cellular Automaton ? "Rule 110"
Posted
by
ZaZu
on Stack Overflow
See other posts from Stack Overflow
or by ZaZu
Published on 2011-03-04T02:18:39Z
Indexed on
2011/03/06
16:10 UTC
Read the original article
Hit count: 278
I was wondering how to use the Rule 110, with 55 lines and 14 cells. I have to then display that in an LED matrix display.
Anyway my question is, how can I implement such automaton ??
I dont really know where to start, can someone please shed some light on how can I approach this problem ?
Is there a specific METHOD I must follow ?
Thanks
--PROGRAM USED IS -> C
EDIT
char array[54][14];
for(v=0;v<55;v++){
for(b=0;b<15;b++){
if(org[v][b-1]==0 && org[v][b]==0 && org[v][b+1] == 0)
{
array[v][b]=0;
}
array[v][b]=org[v][b];
}
}
Does that make sense ?? org stands for original
© Stack Overflow or respective owner