Quantcast
Channel: C++
Viewing all articles
Browse latest Browse all 43

Game Of Life will not update the next generations in C++

$
0
0
I made a C++ game of life program that displays generations based on the rules to Conrad's Game of Life but the generations are always the same. Keep in mind, I am a pretty new programmer and I really need help on this because it's for a class assignment! Please help me! Here is my code:

Code:
#include <iostream>

#include <iomanip>

#include <ctime>

using namespace std;


const int n = 10; //Size of two dimension array (10x10)


int check(const char LifeArray[][n + 2], int row, int...
Game Of Life will not update the next generations in C++

Viewing all articles
Browse latest Browse all 43

Trending Articles