Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/brett-richardson/bowling

RubyGem for scoring a game of bowling.
https://github.com/brett-richardson/bowling

Last synced: 12 days ago
JSON representation

RubyGem for scoring a game of bowling.

Awesome Lists containing this project

README

        

# Bowling

TODO: Write a gem description

## Installation

Add this line to your application's Gemfile:

gem 'bowling'

And then execute:

$ bundle

Or install it yourself as:

$ gem install bowling

## Usage

Installing this gem will add a simple 'bowling_game' utility to the $PATH and it
will ask you to input the scores for each ball, then calculate the score.

Sample output:

```
=== Starting Game ===
- Score for frame 1 ball 1? |0|
10
- Score for frame 1 ball 2? |0|

- Score for frame 2 ball 1? |0|
10
- Score for frame 2 ball 2? |0|

- Score for frame 3 ball 1? |0|
5
- Score for frame 3 ball 2? |0|
5
- Score for frame 4 ball 1? |0|
4
- Score for frame 4 ball 2? |0|
4
- Score for frame 5 ball 1? |0|
3
- Score for frame 5 ball 2? |0|
2
- Score for frame 6 ball 1? |0|
6
- Score for frame 6 ball 2? |0|
3
- Score for frame 7 ball 1? |0|
10
- Score for frame 7 ball 2? |0|

- Score for frame 8 ball 1? |0|
5
- Score for frame 8 ball 2? |0|

- Score for frame 9 ball 1? |0|
10
- Score for frame 9 ball 2? |0|

- Score for frame 10 ball 1? |0|
10
- Score for frame 10 ball 2? |0|
10
- Score for frame 10 ball 3? |0|
10
Total Game Score: 161
```

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request