Skip to content
Ruby programme that plays Fizzbuzz in the command line.
Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
spec
.DS_Store
README.md

README.md

Fizzbuzz

The fizzbuzz script allows you to play the game of Fizzbuzz.

Fizzbuzz is a counting game where numbers divisible by 3 are substituted with "fizz", numbers divisible by 5 are substituted with "buzz", and numbers divisible by 15 are substituted with "fizzbuzz".

e.g. 1, 2, fizz, 4, buzz, fizz, 7, 8, fizz, buzz, 11, fizz, 13, 14, fizzbuzz

How to use

Clone the repository:

$ git clone git@github.com:ch2ch3/fizzbuzz.git

Run the script:

$ cd fizzbuzz
$ ruby lib/fizzbuzz.rb

When prompted, set the starting and ending points of the range of numbers to be used.

You can’t perform that action at this time.