Game of Life – v1.0
My class on Artificial Intelligence's first assignment was to recreate Conway's Game of Life . In his game, a grid of cells continuously evolves over the course of time. First Task: The Interface GUI for my Game of Life I wanted to create the GUI first since it would help me visualize the rest of the project. Because graphics in java are troublesome, I used a free online library from Princeton called StdDraw . Using the library, I started with a basic grid and an internal boolean[] to accompany it. Combining the two, I created my first GameScreen: a 400x400 pixel canvas with a black background and grey squares (representing cells). This eventually morphed into the final layout, which, at the time of publishing, is 1600x840. The extra 40 pixels at the bottom are used for buttons. The yellow cells you see on the grid is the "default" life pattern. Next: Interaction Although interaction was already a requirement of the assignment, I decided to add an e