lemanchester / fizz-buzz

Fizz Buzz game implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fizz Buzz Game

Description

Read the Wikipedia article on the game of fizz buzz (just the section entitled Play).

Next, implement fizz buzz from scratch. For any given number n return a list of the n first fizz buzz values. Use Ruby and RSpec, commit your result to a new public GitHub repo.

Play

FizzBuzzGame.new(10).play # => [1, 2, "Fizz", 4, "Buzz", "Fizz", 7, 8, "Fizz", "Buzz"]

About

Fizz Buzz game implementation


Languages

Language:Ruby 100.0%