Anonymous user
Elementary cellular automaton: Difference between revisions
m
→{{header|C}}: might as well avoid the literal 8 then
(→{{header|C}}: avoid using 64 in the code) |
m (→{{header|C}}: might as well avoid the literal 8 then) |
||
Line 16:
64 cells, edges are cyclic.
<lang c>#include <stdio.h>
#include <limits.h>
typedef unsigned long long ull;
#define N (sizeof(ull) *
#define B(x) (1ULL << (x))
void evolve(ull state, int rule)
{
}
int main(int argc, char **argv)
{
}</lang>
{{out}}
|