Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2. Write a program called Life.java that simulates the Game of Life. The user must be able to provide these 3 things as arguments when
2. Write a program called Life.java that simulates the Game of Life. The user must be able to provide these 3 things as arguments when executing the program from Console: 1. the size of the square grid (any integer) 2. the number of iterations (any integer) 3. whether to: o initialize the cells with a Random pattern (enter R) o initialize the cells with a Gosper glider gun (enter G) The program will use a graphical display to show the iterations. There should be sufficient delay between each iteration for the user to be able to see what's happening (not too fast, not too slow!), and the user should be able to see the individual cells (don't draw them too small!) Example run command in Console: java Life 100 500 R will run life with a grid size 100 for 500 iterations, beginning with a random initial pattern of cells 2. Write a program called Life.java that simulates the Game of Life. The user must be able to provide these 3 things as arguments when executing the program from Console: 1. the size of the square grid (any integer) 2. the number of iterations (any integer) 3. whether to: o initialize the cells with a Random pattern (enter R) o initialize the cells with a Gosper glider gun (enter G) The program will use a graphical display to show the iterations. There should be sufficient delay between each iteration for the user to be able to see what's happening (not too fast, not too slow!), and the user should be able to see the individual cells (don't draw them too small!) Example run command in Console: java Life 100 500 R will run life with a grid size 100 for 500 iterations, beginning with a random initial pattern of cells
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