This program takes any number, designate C, and iterates under the function Z*Z + C, with Z starting at 0. EXAMPLE: c = 2 0*0 + 2 = 2 2*2 + 2 = 6 6*6 + 2 = 38 and so on. Some numbers grow exponentially (such as 2) and some stay bounded (like -1 or -2.) with this, you can check if any number (along the 1d number line) is in the mandelbrot set. fun fact: 0.25 is the last positive real number in the mandelbrot set! (numbers such as 0.2501 and 0.25001 just take a stupid amount of iterations. 0.250001 took 3140 iterations to exceed 2!)
Numberphile on YT gave me this idea. v1: released game v2: bug fix v3: changed some text prompts, added iteration viewer v4: added percentage viewer when iterating, hid c and z variables, edited text prompts, added warning at the bottom of the screen, and fixed "c is exponential" trigger (all of these changes were made at different times, i'm just bundling them into one version.) v5: added a mode where the program will iterate until the function under c exceeds 2 v6: improved interface v7: changed interface again and made mode "b" keep iterating until the next iteration under c "is" infinity or has been iterated the desired amount of times (numbers in scratch default to infinity when they are too large)