Question
Conways game of life is a simple simulation of life forms in a two dimensional grid. If you are unfamiliar with the game then take
Conways Game of Life
A text based Java implementation of the game is available in the following zip file: conway.zip
Take some time to download and compile the code in the zip file. If you put the code into its own directory then you can compile the code with the following command:
javac *.java
java ConwayMain
If you are using an IDE then you can import the code into a project.
Notice that there is an abstract class named AbstractCell, and that there are three derived classes: ConwayCell, NeverAliveCell, and AlwaysAliveCell. Examine the way that the derived classes implement the abstract member functions in AbstractCell. The ConwayCell implements the standard behavior of a call in Conways Game of Life.
For this assignment you only need to implement and test two new classes. You will create two different cells, derived from AbstractCell.
1. Blinker Cell
The first class that you should create is a BlinkerCell. This is a cell that should alternate between being alive and dead with each generation.
2. Your own cell
For the second cell you should feel free to implement any behavior that you want. If you are having trouble thinking of ideas then post to the discussion boards early. We can brainstorm.
What to submit
Submit all of the files needed to run your completed project with the two new cells. Include a .txt file that describes the behavior of your new cells.
If you have any questions about the assignment post them in the extra credit Conways World discussion board.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started