Game of Life
gameoflife.zip | |
File Size: | 1 kb |
File Type: | zip |
Instructions :
1) Above code is tested using Eclipse IDE.
2) Provide the Universe matrix to process, as part of the main(), like shown in above code.
Or you can prepare the matrix by any other way before Line# 11 in above code & keep the matrix name as 'universe' only.
3) After every next Generation, it will ask if you want to move to next generation. And if next new generation is possible
then it will process else program will end like shown in below image -
1) Above code is tested using Eclipse IDE.
2) Provide the Universe matrix to process, as part of the main(), like shown in above code.
Or you can prepare the matrix by any other way before Line# 11 in above code & keep the matrix name as 'universe' only.
3) After every next Generation, it will ask if you want to move to next generation. And if next new generation is possible
then it will process else program will end like shown in below image -