https://github.com/robbertstevens/fizzbuzz
A repository of Fuzzbuzz solutions
https://github.com/robbertstevens/fizzbuzz
buzz fizz fizzbuzz game php
Last synced: 2 months ago
JSON representation
A repository of Fuzzbuzz solutions
- Host: GitHub
- URL: https://github.com/robbertstevens/fizzbuzz
- Owner: robbertstevens
- Created: 2017-08-02T18:50:26.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-02T19:10:21.000Z (almost 8 years ago)
- Last Synced: 2025-01-15T00:45:58.615Z (4 months ago)
- Topics: buzz, fizz, fizzbuzz, game, php
- Language: PHP
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.