Giter Site home page Giter Site logo

nulldev / hacktoberfest-2020-fizzbuzz Goto Github PK

View Code? Open in Web Editor NEW
66.0 2.0 353.0 1.43 MB

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

License: The Unlicense

JavaScript 7.68% LOLCODE 0.60% Java 7.87% HyPhy 0.09% Python 58.64% C++ 9.14% Dart 1.30% Shell 0.48% Go 1.20% CoffeeScript 0.13% C 4.24% Rust 2.06% TypeScript 2.80% AutoIt 0.21% PLSQL 0.16% Swift 0.57% PHP 1.78% C# 0.56% Perl 0.21% Nim 0.27%
hacktoberfest hacktoberfest2020 fizzbuzz hacktober

hacktoberfest-2020-fizzbuzz's Introduction

🎃 Hacktoberfest 2020 FizzBuzz


Submit creative FizzBuzz solutions in any language you want!


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


❗ READ BEFORE CONTRIBUTING

THIS REPOSITORY IS IN COMPLIANCE WITH THE HACKTOBERFEST VALUES AND RULES:
We cannot and will not accept every PR and label invalid one's accordingly! Examples are off-topic contributions, duplicated solutions, copy-paste solutions as well as obvious +1 attempts.
We are searching for interesting/creative/abstract/unique/extraordinary/weird solutions to FizzBuzz. Only one normal solution per language is permitted!
This repository aligns with the values of the Hacktoberfest as it is meant as a fun challenge as well as a platform to learn (experiment with different solutions, challenging 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/NullDev/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”.


[Image source © 100daysofalgorithms]

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


🏆 Top 5 personal favorites:

Side note: There are more than 5 solutions now but I don't want to change the title here because that would break a lot of links and references to it :)

  1. First and only FizzBuzz implementation in "omgrofl" by @adamsoutar - See PR for more information!
  2. FizzBuzz with Branchless logic (C++) by @s0LA1337
  3. Hand written solution in WebAssembly (WASM) by @nlordell - See PR for more information!
  4. Type-Level FizzBuzz solution (TypeScript) by @minajevs - See PR for more information!
  5. Hand written solution in LLVM by @PAndaContron - See PR for more information!
  6. FizzBuzz Machine-Learning implementation (Python) by @mzelenetz - See PR for more information!
  7. Hand written solution in IntCode by @asottile - See PR for more information!
  8. Turing-Machine FizzBuzz Solution by @lennart-k
  9. FizzBuzz implementation in HolyC on TempleOS by @Azgeb - See PR for more information!
  10. Recusive Minecraft-Datapack solution by @cakoshakib - See PR for more information!
  11. FizzBuzz in Shakespearean by @C0DINGLE - See PR for more information!
  12. Overly complicated FizzBuzz solution (Python) by @InitialPosition
  13. Hardcoded FizzBuzz (Python) by @khong612
  14. 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!


hacktoberfest-2020-fizzbuzz's People

Contributors

antidigest avatar chamudi avatar cnguyen-uk avatar creepsore avatar darrenkearney avatar dlppdl avatar elessurgon avatar flyinspaghetti avatar gauravpoosarla avatar hardword avatar hwennnn avatar incarnadined avatar jirawat-opn avatar jmmille avatar mohitdeshpande avatar nulldev avatar oxel40 avatar pandacontron avatar pr1metine avatar rahulkranjan avatar sayashraaj avatar sombit-g avatar soratenshi avatar stephentrainor avatar tamirco2003 avatar tony133 avatar tuatarian avatar twobiers avatar veotani avatar zzz1111zzz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hacktoberfest-2020-fizzbuzz's Issues

Add your solution!

🎃 Hacktoberfest 2020 FizzBuzz

Please consult the ReadMe for information on what this repository is about and how to contribute!


❗ READ BEFORE CONTRIBUTING

THIS REPOSITORY IS IN COMPLIANCE WITH THE HACKTOBERFEST VALUES AND RULES:

We cannot and will not accept every PR and label invalid one's accordingly! Examples are off-topic contributions, duplicated solutions, copy-paste solutions as well as obvious +1 attempts.

We are searching for interesting/creative/abstract/unique/extraordinary/weird solutions to FizzBuzz. Only one normal solution per language is permitted!

This repository aligns with the values of the Hacktoberfest as it is meant as a fun challenge as well as a platform to learn (experiment with different solutions, challenging yourself to come up with creative solutions to a unique problem).

Denied PR's can be found here.


Happy hacking!

Quick Summary description and gif mismatch (README.md)

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”.

The summary states that we need to print numbers from 1 to 100, but in the gif, the numbering starts from 0. (′ʘ⌄ʘ‵)

PseudoRandomFizzBuzz.java: NoSuchFileException

When trying to execute my Java code, the following exception is thrown.

java.nio.file.NoSuchFileException: fizzBuzz.csv
[...]

That's because this file got deleted in another commit.

Most of the Java code does not work

With my current setup (JDK 11 + VS Code or GitHub Codespaces) I am unable to test most of the Java code in this repo. Here are some problematic code snippets:

If you want this issue fixed, @nldev, assign me this issue and I'll be happy to fix it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.