The program allows you to automate the scoring
in the darts cricket game.
Cricket involves hitting the following targets on the dartboard at least three times: 20, 19, 18, 17, 16, 15, and Bull.
A triple counts as three hits, a double counts as two, all other areas in that target are counted as one hit.
Also, the double bull counts as two hits. Once a player has hit a target three times it is considered closed.
When a target is closed, the opposition can no longer score on it but the person with the closed number can score on it as long as his opposition does not have theirs closed.
Triples and doubles are scored accordingly (ie. a triple 20 counts as 60 points, a double 18 counts as 36 points).
The single bull is worth 25 points and the double bull equals 50 points.
The winner of the game is the person that has closed all of their numbers with as many or more points than the opposition.
If someone closes all their targets first, but has the least amount of points, they will have to continue to score on those targets until he/she has caught up in points
(they win the game once they have either equaled or surpassed their opponents points)