Question: 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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!