Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/brett-richardson/bowling
- Owner: brett-richardson
- License: mit
- Created: 2013-09-12T16:15:17.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-09-12T16:31:29.000Z (over 11 years ago)
- Last Synced: 2024-11-11T00:28:53.187Z (2 months ago)
- Language: Ruby
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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