This site requires JavaScript, please enable it in your browser!
Greenfoot back
myheartwillgoon
myheartwillgoon wrote ...

2012/12/9

Isn't there anyone who can help me with the "Conway's game of life"?

myheartwillgoon myheartwillgoon

2012/12/9

#
Hi friend I can't run the Game. Please check the Game and find the wrong in my codes.
vonmeth vonmeth

2012/12/9

#
Remove the act method from the GameOfLifeCell class.
myheartwillgoon myheartwillgoon

2012/12/9

#
Thank u my friend. It works now
myheartwillgoon myheartwillgoon

2012/12/9

#
Friend can u just tell me that what was the wrong with act method? why it doesn't work if there is an act method even though it was empty?
vonmeth vonmeth

2012/12/9

#
Sorry, I should of included that in my first post. The problem is with overriding. The GameOfLifeCell act() overrides the act() in Cell. It doesn't matter if the method is empty, it will still override it. You can see this overriding taking place as well with the applyRule() method.
You need to login to post a reply.