Game class

Created 24th June, 2006 07:28 (UTC), last edited 27th June, 2006 10:22 (UTC)
Game class

To understand this design you need to read Vector fun for bowling first.

The COM instance is used to calculate the score for a single player for a single game.

  • Create one instance per player per game.
  • addBall() should be called for each ball in the order they are played.
  • score can be queried at any time in order to find the player's current score.
  • balls is an STL container that stores the individual scores for each ball that has been played so far.

Other sizes None available