Project description

Your Java applet is a ``science'' version of the Game of Life by John Conway. I have downloaded an applet (which has some problems that need to be fixed) for the game of Life in this directory. There are many solutions on the Internet, hence the modification.

Your applet is to implement the animation of a heat diffusion across a plate. Instead of initializing cells to be populated, you are to initialize them with a temperature selected from a scrollbar. The temperature is to show in color from blue (cold) to red (hot). The color has no green component. [Mixing blue and red leads to a dark purple. You may wish to choose a different color spectrum for cold-->hot to get brighter colors, or simply brighten them. See also Deitel&Deitel's ShowColors.]

In each cycle, the temperature of a cell becomes the average of its surrounding cells. You can either choose a grid (in which case there are 4 surrounding cells) or a honeycomb (in which case there are 6 surrounding cells).

Your applet at least should have buttons for single-stepping and for running an animation. I leave the rest of the decorations to you. Please submit all *.java files and one *.html file.