For this assignment you shall be implementing Conway's Game of Life.
Write a program with these GUI elements:
When the Life options is selected, the program shall prompt the user for the probability of a random cell being alive [0.0,1.0]; then for each cell in the grid, that probability will be used to determine if the cell is alive. The grid shall consist of 300x300 cells (thus each cell is 2 pixels tall and wide). The world is assumed to be toroidal.
The system begins in the paused state. Anytime the system is in the paused state, the user may click on a cell and toggle its state (live → dead & dead → live). When the system is in the running state, the subsequent generation shall be displayed every 0.5 seconds.
When the Save image options is selected, the program shall prompt the user for the output file and save the current system image as a PNG.
Even if you know more, you are limited to using the techniques covered up to this point in class.
Should you successfully implement either of the bonus parts, be sure to clearly and separately identify which bonus part(s) you completed.
Allow the user to load and save configuration files—i.e., textual descriptions of the system.
Create a slider widget (like I did with my custom color selector) that allows the user to change the frame rate.