Update ca.cpp

master
Mikael Nordin 7 years ago committed by GitHub
parent 3f4a1487c4
commit 4e8343ce85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -140,7 +140,7 @@ int main(int argc, char* argv[] ) {
state[6] = initial[ (j -1) % DIM ][ (k+1) % DIM ] + 48; state[6] = initial[ (j -1) % DIM ][ (k+1) % DIM ] + 48;
state[5] = initial[j][ (k-1) % DIM ] + 48; state[5] = initial[j][ (k-1) % DIM ] + 48;
state[4] = initial[j][k] + 48 ; state[4] = initial[j][k] + 48 ;
state[4] = initial[j][ (k+1) % DIM ] + 48; state[3] = initial[j][ (k+1) % DIM ] + 48;
state[2] = initial[ (j +1) % DIM ][ (k-1) % DIM ] + 48; state[2] = initial[ (j +1) % DIM ][ (k-1) % DIM ] + 48;
state[1] = initial[ (j +1) % DIM ][k] + 48; state[1] = initial[ (j +1) % DIM ][k] + 48;
state[0] = initial[ (j +1) % DIM ][ (k+1) % DIM ] + 48; state[0] = initial[ (j +1) % DIM ][ (k+1) % DIM ] + 48;

Loading…
Cancel
Save