thanks for the hint.
Type: Posts; User: apolochaves
thanks for the hint.
I believe this version works as expected. Included the function repeatroutine to iterate many times as wished.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
...
"The first evident error is that, in function
count_neighbours() you use the variable count that is not reset to zero.
It's better to define it in the function"
OK! Corrected!
With a lot of help of people of this forum, Codecall forum, and also Daniweb forum, i made this code. What it is purpose ? It's an adaptation of life, using only basic concepts of C (it's for a...
Yeah, Salem, laserlight and adak, it's a life code. My teacher asked to do it, but without use the classic Conway's code. What is done by now: generate the 40x40 integer matrix with random numbers,...
In my code, I have a cell in a matrix with 8 neighbours (horizontal, vertical and diagonal). I need to implement a condition such as
CONDITION 2 = When three of any of the 8 neighbors (V1, V2,...