course.wilkes.edu/CS125Labs
Welcome to the site for CS 125 labs!

 

Lab 12: Instructor's Notes

Prev | Next | Lab 12

As a fun way to explore two-dimensional vectors, this exercise builds a class that facilitates playing John Conway's cellular automata "game of Life." The game involves processing a grid of cells, which we represent as a two-dimensional vector of vector of integers.

To facilitate this exercise, we provide several files:

  • life.cpp, a driver program to play the game;
  • LifeGame.h, the header file for class LifeGame, which students will complete;
  • LifeGame.cpp, the implementation file for class LifeGame, which students will complete;
  • LifeGame.doc, the documentation file for class LifeGame, which students will complete; and
  • makefile12, to coordinate the translation.
The LifeGame class constructor initializes itself with a configuration stored in an input file. To facilitate exploring the game, we also provide several different configuration files, including test.life, stable.life, quick.life, cross1.life, cross2.life, glider.life, gliders.life, and blank.life.

As usual, if you wish to avoid network contention, save local copies of these files ahead of time and direct your students to access those local copies.

Prev | Next | Lab 12

 
  Home

Help

Lab 0

Lab 1

Lab 2

Lab 3a

Lab 3b

Lab 4

Lab 5

Lab 6

Lab 7

Lab 8

Lab 9

Lab 10

Lab 11

Lab 12

Lab 13



Membership

Login




Last update: Friday, October 6, 2000 at 2:34:19 PM.
visitors to this page.