Skip to content

Latest commit

 

History

History
60 lines (49 loc) · 2.29 KB

README.md

File metadata and controls

60 lines (49 loc) · 2.29 KB

KATA SKELETON - Typescript VERSION

FIZZ BUZZ

Write a program that prints all the numbers from 1 to 100, but with some exceptions:

  • for all numbers that are multiples of 3, print “Fizz” instead of the number itself
  • for all numbers that are multiples of 5, print “Buzz” instead of the number itself
  • for all numbers that are multiples of both 3 and 5, print “FizzBuzz” instead of the number itself

Assigment

At the very minimum, write a program that solves the problem. Make it the best use you can of all the clean code principles you know, but also show us your habit on using GIT and everything else you tipically use. Feel free to add a section to this README to add some notes from your side.

Bonus/advanced objective:

  • write automated tests that prove that the code solves the problems
  • use TDD (use GIT in a good way to show the TDD Cycle by committing each step)

Feel free to use this repository as a template for your one, or fork from this: in this branch, you have a ready-to-use Python project with a stupid class and its own stupid test, that you can use as a starting point for your solution. If you prefer another language or simply starting from scratch, feel free to do it, just be sure to copy this README file in the repository as a reference. Thanks!

Input/Output table example

Input Output
1 1
2 2
3 Fizz
4 4
5 Buzz
6 Fizz
7 7
8 8
9 9
10 Buzz
11 11
12 Fizz
13 13
14 14
15 FizzBuzz
... ...
90 FizzBuzz
91 91
92 92
93 Fizz
94 94
95 Buzz
96 Fizz
97 97
98 98
99 Fizz
100 Buzz

Setup

The only requirements on your computer are:

Then, clone it and install dependencies running the command make install from your terminal, in the root folder of the project. After dependencies are installed, you can run tests via make test.