0

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!

1
Contributor
1
Reply
3
Views
5 Years
Discussion Span
Last Post by timmy568
0

2

Edited by timmy568: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.