Member Avatar for timmy568

Hi guys i am trying to write a program that uses two classes, Board and Game, to run the Game Of Life. Currently my output is in the console, as a GUI is going to take too long. I am having some trouble writing my nextGeneration method in the Game class that creates a new Board class, gets the number of living neighbors for each cell, and determines if that cell lives, dies, or is born. At the end the of the method, the the two Board are compared, and the old Board class takes on the data of the new class. I was thinking of using nested for loops in getting the living neighbors and the outcome of life. Thanks!

Member Avatar for timmy568

2

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.