Game class

Created 2006-06-24T07:28:11.616Z, last edited 2006-06-27T10:22:17.573Z

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