Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 1.83 KB

README.md

File metadata and controls

17 lines (11 loc) · 1.83 KB

#Find The Bug#

Find The Bug is a programming puzzle that will be published, hopefully, on a weekly basis. The aims of each puzzle are as follows:

  1. To present problematic code that encapsulates a real-world problem and thus could feasibly be mistakenly written by real people.
  2. To be clear and well-readable. The challenge should come from trying to construct the program flow in your head to find the error, not from trying to decode hard-to-read code.
  3. To fit the entire puzzle on one screen, so that it's easy to visualize the entirety of the puzzle.
  4. To not use obscure libraries to create the problem - only language-level or enormously popular libraries.

Half the challenge is figuring out what input will produce the bug, so you should consider finding the bug by writing tests (i.e. brute-forcing inputs) to be cheating. All solutions are explained and included in a separate folder anyway.

Inspiration is taken from the weekly chess puzzles (i.e. "Find checkmate for black in 3 moves") that were published in newspapers when I was growing up. Happy solving!

#####About Licensing##### None of this code is actually intended to be used (it is full of bugs, after all), so although all of the material put on this repository can technically be compiled, I don't consider it to be "software" and thus it's rather outside the purview of traditional software licenses. So, instead, all files on this repository are licensed under Creative Commons as described below:

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.