An open API service indexing awesome lists of open source software.

https://github.com/nbaztec/bowling-score


https://github.com/nbaztec/bowling-score

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# bowling-score
Given a list of throws in 10-pin bowling, returns the round score

Assumptions:
* number of throws are not validated
* computes score using standard 10-pin bowling rules for strike and spare
* no input validation for throws - assumes the input is comprised of numbers from 0-10

## Installation
* Requires Node `v10+`

```
$ npm i
$ npm test
```

## Usage
```
$ npm start 10 10 10 10 10 10 10 10 10 10 10 10

> bowling-score@1.0.0 start /home/nish/Documents/work/projects/bowling-score
> node index.js "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10"

300
```

or

```
$ node index.js 10 10 10 10 10 10 10 10 10 10 10 10
300
```