Inspired by @Upperline and this blog post: https://blog.upperlinecode.com/apcs-a-tool-to-teach-the-binary-search-algorithm-78b0c3c8c372
New features:
- Reset button
- Press enter also resets
- Some stats at the bottom - best, worst, median, mode
- Hidden in the code: 3 different scenarios that might happen:
- Numbers are completely random
- Numbers skew low (so 50 more likely to be towards top)
- Numbers skew high (so 50 more likely to be towards bottom)
- Hidden in the code: 1 in 8 chance that 50 us guaranteed to appear