Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Interview challenge

License

NotificationsYou must be signed in to change notification settings

artificemm/bowling

Repository files navigation

Ten-pin bowling scoreboard program. Developed as an interview challenge for Jobsity, LLC.

Usage

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.

Development

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.

Contributing

Bug reports and pull requests are welcome on GitHub athttps://github.com/artificemm/bowling.

License

The gem is available as open source under the terms of theMIT License.

About

Interview challenge

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp