- Notifications
You must be signed in to change notification settings - Fork0
artificemm/bowling
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Ten-pin bowling scoreboard program. Developed as an interview challenge for Jobsity, LLC.
Program can be run with the following command:$ ruby game.rb <filename.txt>
Where <filename.txt> should be a valid game file with the following structure: Player1 10 Player2 4 Player2 6 Player3 0 Player3 10 Each line has the player name and the value of the roll separated by a tab character.There are some testing files provided in the `data` folder.
The program will output the scoreboard of the game with the sum for each frame, accounting for bowling rules, such asspare
andstrike
.
After checking out the repo, runbin/setup
to install dependencies. Then, runrake test
to run the tests. You can also runbin/console
for an interactive prompt that will allow you to experiment.
Bug reports and pull requests are welcome on GitHub athttps://github.com/artificemm/bowling.
The gem is available as open source under the terms of theMIT License.