Assignment (1/15) Game of Life Write a programcalled Life.java that simulates the Game of Life. The user
No answer yet for this question.
Ask a Tutor
Question:
Assignment (1/15) Game of Life Write a programcalled Life.java that simulates the Game of Life. The user must be able to provide these 3 things, in this order, andas arguments when executing the program from Console:
- the size of the square grid (any integer)
- the number of iterations (any integer)
- which pattern type to initialize the cells with:
- Random (enter R)
- Glider gun (enterL)
- all programming will be in Java
- the user must be able to compile and run your code without modification from Command Prompt/Terminal/Console
- the user must not be told to use, or need to use, an IDE to run it
- if that happens then your program will simply score zero
- all code necessary for your program to run must be provided as .java files
- see Compiling and Running java in Consolefor more guidance
- the user must not be told to use, or need to use, an IDE to run it
- your code is going to assessed ONLY by its behaviour when run
- we cannot debug your efforts to judge how \'close\' you were to providing working code
- so please note that any code that cannot be run will score zero
- if you wish, you can use the Picture.java class found in the RESOURCES section to create the graphical output for Life
- see the PictureDemo code for how it works, including a way to magnify the display size of the cells so that they can be seen by the user!
Attachments:
Posted Date: