/fizzbuzz

fizzbuzz game using ruby and rspec

Primary LanguageRuby

Fizz buzz is a group word game for children to teach them about division.[1] Players take turns to count incrementally, replacing any number divisible by three with the word "fizz", and any number divisible by five with the word "buzz" and the word "fizzbuzz" if the number is divisible by 15.

How to play. Require file on pry "require '.lib/fizzbuzz.rb'" and call method number_to_play(number)

Objectives

First contact with TDD using RSpec.

Technologies used

  1. Ruby
  2. RSpec

How to use

  1. > clone https://github.com/byverdu/fizzbuzz.git
  2. > cd fizzbuzz
  3. > irb
  4. > require '.lib/fizzbuzz.rb'
  5. > number_to_play(number) # method that calls the game