CPTR 124 Fundamentals of Programming


In this lab you will use inheritance and polymorphism and a library of graphics classes to build a graphical simulation.


  1. Conway's Game of Life

    Write a program that runs Conway's game of Life like the one demonstrated in class. (See http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life for more information about Life.) Your code must use the SGL library for its graphical output. Your program should support a 60 rows x 80 column Life playing surface. Allow the user to select live cells with the mouse and then begin the simulation with a keystroke. The user should be able to start, stop, and clear the game with keyboard input. Display the grid lines

    Picture of a Life simulation

  2. Check out

    Your finished program will be evaluated for correctness and compliance. Once you have been checked out you may submit your code to eclassbeta.southern.edu/moodle/.