[logo.png] computerscience@earlham.edu

Bounce
C++ Classes


Bounce C++ Classes

[bounce_example.png]

Overview

Beginning in the Fall of 2004, the Pedagogical Tools group began working on a set of classes to use as a learning device in CS128. The set of classes allows students to create a graphical window and populate it with balls of various sizes, colors, and patterns, and then run a simulation in which the balls bounce and spin. The student can do all this with a simple program that resembeles:


#include "arena.h"

int main( )
{
  Arena box;

  box.addBall( );
  box.addBall( );

  box.go( );

  return 0;
}

Files

The suite of classes are in a CVS repository that can be found here. Note that this link will be temporarily removed at times to hide the classes from CS128 students, since an early assignment of the course is to discover the arguments to the ball constructor through experimentation.


| CS Home | Earlham College | WebDB | Earlham Mail | Earlham Libraries | Word Online |

Copyright © 1996-2002 by Earlham College Computer Science Department.
If you're curious about why we copyright, see Peter Suber's Why Copyright Web Documents?.

Looking for something that's not here? Contact:
Last updated: Tuesday, 28-Sep-2004 20:45:20 EST
#1535