Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benmuiruri/bowling-scores
A Ruby command line application for scoring a bowling game from data provided in a text file
https://github.com/benmuiruri/bowling-scores
rspec ruby
Last synced: 24 days ago
JSON representation
A Ruby command line application for scoring a bowling game from data provided in a text file
- Host: GitHub
- URL: https://github.com/benmuiruri/bowling-scores
- Owner: Benmuiruri
- Created: 2022-12-05T13:16:03.000Z (about 2 years ago)
- Default Branch: development
- Last Pushed: 2023-01-18T08:37:53.000Z (about 2 years ago)
- Last Synced: 2024-11-12T00:36:08.919Z (3 months ago)
- Topics: rspec, ruby
- Language: Ruby
- Homepage:
- Size: 90.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A bowling score calculator
> This repo hosts a Ruby application for scoring a bowling game from data provided in a text file.
## Preview
## Built With
- **Ruby**
## Methodology used
- TDD via RSPEC
## Getting Started
To get a local copy up and running follow these simple example steps.## Prerequisites
- You need Ruby v3+ installed on your machine.
## Setup
- Clone the project `https://github.com/Benmuiruri/bowling-scores.git`
- navigate to the folder `cd ruby-challenge`
- Install required gems `bundle install`## File Structure
- The `root` folder contains the `play_game.rb` file which is entry point to the application.
- The `lib` folder contains the `main.rb` file which is the main class for the application.
- The `main.rb` file contains the `FileReader` module which reads and validates the input and the `Bowling` module which is responsible for the game logic.## Usage
- Run the application `ruby play_game.rb` which will prompt you to enter the file path of the game data file.
- For the purpose of this challenge, the game data file is located in the `root` folder. Therefore, you can enter `data.txt` as the file path.
- Enjoy interacting with the app.## Author
👤 **Ben Kiarie**
- GitHub: [Ben Kiarie](https://github.com/Benmuiruri) - Follow me on Github, browse my projects, and leave a star for any project you like.