/Hacktoberfest-2020-FizzBuzz

:jack_o_lantern: Submit creative FizzBuzz solutions in any language you want!

Primary LanguagePythonThe UnlicenseUnlicense

🎃 Hacktoberfest 2020 FizzBuzz


Submit creative FizzBuzz solutions in any language you want!


Read the official issue for an intro:
NullDev#3


TL;DR: We're searching for creative/extraordinary/weird FizzBuzz solutions :)


Note:
We can't accept every PR and label invalid one's accordingly. Examples are off-topic contributions as well as duplicated solutions.
This repository aligns with the values of the Hacktoberfest as it is a platform to learn (experiment with different solutions, learning how GitHub & PR's work, challanging yourself to come up with creative solutions to a unique problem). Denied PR's can be found here.


🔧 Steps to add your solution:

  1. Fork this repository.

  2. Add your solution to the folder with the name of your language. If there is no folder for your language yet, create one!

  3. Name your file with a fitting description.

  4. Comment the first lines of your file (if possible) like that (use whatever commenting syntax is supported by the language you use!):

// [SHORT DESCRIPTION HERE]
// Author: @YourGitHubUserName

...

A sample file can be found here: https://github.com/NLDev/Hacktoberfest-2020-FizzBuzz/blob/master/JavaScript/one-liner.js
Or check out our top 5 user contributed samples :)


❓ What is FizzBuzz?

Quick summary:

FizzBuzz is a program that prints the numbers from 1 to 100. But for multiples of three it prints “Fizz” instead of the number and for the multiples of five, it prints “Buzz”. For numbers which are multiples of both three and five it prints “FizzBuzz”.

Read more about it here: https://www.tomdalling.com/blog/software-design/fizzbuzz-in-too-much-detail/


🏆 Top 5 personal favorites:

  1. Fizz Buzz As Compiler Error (C++) by @Braintelligence
  2. First and only FizzBuzz implementation in "omgrofl" by @adamsoutar - See PR for more information!
  3. Overly complicated FizzBuzz solution (Python) by @InitialPosition
  4. Hardcoded FizzBuzz (Python) by @khong612
  5. FizzBuzz in CharArrays, Bytes and Hex Values (Java) by @nimbl0

❓ What do you mean by "creative" solutions?

Well, I'm not looking for normal solutions. You know, the ones you'd find in a book or so. I'm looking for something interesting! Whether that's a fancy one-liner in the language of your choice, or perhaps a funny eso-language, or maybe an intentionally weird solution that you don't even quite understand yourself (be sure to document those!). Anyhow, the goal is to have fun and maybe even learn a thing or two.

If you're still unsure, check out our top 5 user contributed samples :)

Happy hacking!