convolutedcointoss
A program that returns "heads" or "tails"
Dive in and see if you can work out how.
This is a logic challenge.
This repo will increase in difficulty as I gain the ability to update it.
If you would like to make a pull request, please do so.
The more janky and perilous the code, the better.
RULES:
- convolutedCoinToss must be a single function that returns either "heads" or "tails"
- the function must be over 100 lines in length
- there is no maximum length, but try to keep it down to what one person would reasonably be able to read through with their own eyes in under 20 minutes
- each line of code is allowed to appear ONLY ONCE
- variations in methods that product similar results are allowed, but the exact same chars in the exact same sequence are not
PURPOSE:
To teach intermediate-level programmers new ways to produce the same results.
Thank you, happy coding!