954,523 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Java Game Of Life Help

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!

timmy568
Newbie Poster
16 posts since Dec 2011
Reputation Points: 10
Solved Threads: 1
 
timmy568
Newbie Poster
16 posts since Dec 2011
Reputation Points: 10
Solved Threads: 1
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You