Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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**