Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sdecandelario/fizz-buzz-extended-kata
FizzBuzz extended kata
https://github.com/sdecandelario/fizz-buzz-extended-kata
kata php7 phpunit
Last synced: 27 days ago
JSON representation
FizzBuzz extended kata
- Host: GitHub
- URL: https://github.com/sdecandelario/fizz-buzz-extended-kata
- Owner: sdecandelario
- Created: 2017-02-02T22:31:38.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-06T22:48:28.000Z (almost 8 years ago)
- Last Synced: 2024-11-06T23:42:35.446Z (3 months ago)
- Topics: kata, php7, phpunit
- Language: PHP
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FizzBuzz extended kata
## Introduction
The objective of the kata consists what, when a number is passed return a string if is dividible by another number### 1st step
There are some rules:
- Normal number return the same number
- Numbers divisible by **3** return **fizz**
- Numbers divisible by **5** return **buzz**### 2nd step
- Numbers divisible by **7** return **pop**
- Numbers divisible by **2** return **fuzz**### 3rd step
- You can define any rule you want, for example: numbers divisible by **4** return **pep** or whatever you want## Clarification
If a number is divisible for various number, then return all the strings of all the numbers, for example the number 14 return **fuzz pop**