Giter Site home page Giter Site logo

bowling-scorecard-reader's Introduction

bowling-scorecard-reader

This is a pure Ruby scorecard reader that draws the scoreboard on terminal.

Installation:

To be able tu run the script, only 2 gems must be installed which are conveniently located in the Gemfile. Just run bundle install in the scripts root directory.

Usage:

For the sake of simplicity and versatility, the script takes one optional argument to be able to switch between scorecards: You may run:

$ Ruby start_bowling.rb
or
$ Ruby start_bowling.rb 'sample.txt'

Notes:

Integration and Unit test was made with Rspec ( my weapon of choice when it comes to testing. )

Bonus details:

In the score_card class, I added an extra line because of a different approach that was discussed in an unofficial manner. ( Not in written in the official specifications document. )

So it's commented out but it's functionality was tested and it works as expected. It is basically a more flexible way to parse the score data by using regexp.

---------------------------------------------------

ps: Terminal table gem rocks. It transformed a plain-looking project into a beautiful one!

bowling-scorecard-reader's People

Contributors

ja-roque avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.