https://github.com/j0rgeserran0/kata-fizzbuzz
FizzBuzz Kata
https://github.com/j0rgeserran0/kata-fizzbuzz
csharp fizz-buzz game-development kata
Last synced: 18 days ago
JSON representation
FizzBuzz Kata
- Host: GitHub
- URL: https://github.com/j0rgeserran0/kata-fizzbuzz
- Owner: J0rgeSerran0
- Created: 2021-04-02T10:04:33.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-04T15:36:55.000Z (over 5 years ago)
- Last Synced: 2025-10-28T20:46:49.524Z (9 months ago)
- Topics: csharp, fizz-buzz, game-development, kata
- Language: C#
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kata FizzBuzz
Kata or programming game about a FizzBuzz solution
## In this code
If a number is divisible by **3**, you should return **Fizz**
If a number is divisible by **5**, you should return **Buzz**
But if a number is divisible by **3 AND 5**, you should return **FizzBuzz**
> In this sample code, if the number is not divisible by 3 and/or 5, returns an empty text, but it could return the number too instead of an empty text
## Adding complexity (not covered in this sample code)
There are another additional complex rules for this game.
If a number contains **5**, you should return **Buzz**.
If a number contains **7** or is divisible y **7**, you should return **Fizz**
For example, for 35, you should get: *Buzz Buzz Fizz*
- 35 is divisible by 5 = Buzz
- 35 contains 5 = Buzz
- 35 is divisible by 7 = Fizz