Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jigarius/fizz-buzz-ruby
Exploring Ruby with fizz-buzz.
https://github.com/jigarius/fizz-buzz-ruby
example fizz-buzz ruby
Last synced: 22 days ago
JSON representation
Exploring Ruby with fizz-buzz.
- Host: GitHub
- URL: https://github.com/jigarius/fizz-buzz-ruby
- Owner: jigarius
- Created: 2019-10-28T22:15:37.000Z (about 5 years ago)
- Default Branch: 2.x
- Last Pushed: 2021-02-04T04:06:06.000Z (almost 4 years ago)
- Last Synced: 2024-10-25T00:06:07.725Z (2 months ago)
- Topics: example, fizz-buzz, ruby
- Language: Ruby
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fizz Buzz: Ruby
A neat command-line application to demonstrate Ruby syntax.
## What is Fizz Buzz?
**Fizz buzz** is a group word game for children to teach them about division.
Players take turns to count incrementally, with the following rules:* For numbers divisible by `3`, say `fizz`.
* For numbers divisible by `5`, say `buzz`.
* For numbers is divisible by both, say `fizzbuzz`.
* For other numbers, say the number.## Example
```
1
2
fizz
4
buzz
fizz
7
8
fizz
10
11
fizz
13
14
fizzbuzz
```## Usage
* Clone the repository.
* Add exec permissions to the `bin/fizzbuzz` file;
`chmod +x ./bin/fizzbuzz`.
* Run it with a numeric argument; `./bin/fizzbuzz 15`### Lando
If you use Lando, you can run this project in a Docker container instead.
* Clone this repository and `cd` into the directory.
* Run `lando start`.
* Run `lando fizzbuzz` with a numeric argument; `lando fizzbuzz 15`.