Skip to content

A repository of Fuzzbuzz solutions

Notifications You must be signed in to change notification settings

robbertstevens/fizzbuzz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

What is Fizzbuz?

Fizz Buzz is a game where players sit in a circle and count up to a certain number. However, any number divisible by three is replaced by the word fizz and any divisible by five by the word buzz. Numbers divisible by both become fizz buzz. A player who hesitates or makes a mistake is eliminated from the game.

In these solutions there is obviously only one player, the script, but it's funny to program nevertheless.

solution1.php is the first solution I came up with. It follow the rules exactly.

solution2.php is a little bit more advanced, you can add any amount of rules with number to divide and which word to replace them with.

About

A repository of Fuzzbuzz solutions

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages