Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/keyvanakbary/fizz-buzz
Groovy implementation for Fizz Buzz game
https://github.com/keyvanakbary/fizz-buzz
Last synced: 4 days ago
JSON representation
Groovy implementation for Fizz Buzz game
- Host: GitHub
- URL: https://github.com/keyvanakbary/fizz-buzz
- Owner: keyvanakbary
- Created: 2015-02-22T13:53:27.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-02-22T13:58:57.000Z (over 9 years ago)
- Last Synced: 2023-03-14T20:10:35.987Z (over 1 year ago)
- Language: Groovy
- Homepage:
- Size: 148 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fizz Buzz
[![Build Status](https://secure.travis-ci.org/keyvanakbary/fizz-buzz.svg?branch=master)](http://travis-ci.org/keyvanakbary/fizz-buzz)
FizzBuzz is a game that has gained in popularity as a programming assignment to weed out non-programmers during job interviews. The object of the assignment is less about solving it correctly according to the below rules and more about showing the programmer understands basic, necessary tools such as `if`-/`else`-statements and loops. The rules of FizzBuzz are as follows:
For numbers 1 through 100,
* if the number is divisible by 3 print Fizz
* if the number is divisible by 5 print Buzz
* if the number is divisible by 3 and 5 (15) print FizzBuzz
* else, print the number.