Skip to content

Commit

Permalink
remove .addroll method
Browse files Browse the repository at this point in the history
  • Loading branch information
Samir70 committed Mar 22, 2023
1 parent 125d043 commit 33d8442
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ An example of how your code might be used could be:

```javaScript
let scorecard = new Scorecard()
scorecard.addRoll(5)
scorecard.calculateScore() // returns 5
scorecard.addFrame([3, 5]) // returns "Please finish the current frame [5, ?]"
scorecard.addRoll(2)
scorecard.addFrame([3, 5])
scorecard.calculateScore() // returns 0
scorecard.addFrame(2, 5)
scorecard.addFrame(3, 5)
scorecard.calculateScore() // returns 15
```

Expand Down

0 comments on commit 33d8442

Please sign in to comment.