Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API 2: calculate score #2

Open
tomfa opened this issue Aug 4, 2022 · 0 comments
Open

API 2: calculate score #2

tomfa opened this issue Aug 4, 2022 · 0 comments
Labels

Comments

@tomfa
Copy link
Member

tomfa commented Aug 4, 2022

We want to calculate the cumulative scores after each round. In the BowlingRound type, set the correct sum value.

  • 1 bowling pin scored = 1 point
  • A strike gets double points of two next throws. Example: the throws [10, 6, 3] results in the points 19 and 28.
  • A spare gets double points of the next throw. Example: the throws [6, 4, 5, 3] results in the points 15 and 23
@tomfa tomfa added the api label Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant