Introduction to Digital Arts & Sciences
Fall, 2010

CAP 3027
HW 10

 

Summary

For this assignment you shall be implementing Conway's Game of Life.

Instructions

Write a program with these GUI elements:

Life

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.

Color scheme

Save image

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.

Note

Even if you know more, you are limited to using the techniques covered up to this point in class.

Bonus parts

Should you successfully implement either of the bonus parts, be sure to clearly and separately identify which bonus part(s) you completed.

Bonus I

Allow the user to load and save configuration files—i.e., textual descriptions of the system.

Bonus II

Create a slider widget (like I did with my custom color selector) that allows the user to change the frame rate.

This website is an original work, Copyright © 2010 by Dave Small. All rights reserved.