A basic 1D Cellular Automaton, full of features but not very mobile-friendly Controls: -N or the Flag to restart from a new random seed -Space to generate the next line (and pause auto) -A to generate automatically (press again to pause) -I to set the rule (pause first) -R to randomize the rule -V to toggle info visibility: --AutoRand randomizes the rule every n generations, 0 turns it off --Periodic toggles wether the left and right sides are connected --StartState controls the initial state 0: empty (all 0's) 1: single cell in middle 2: filled (all 1's) 3: random (50/50) --Style shows a single (1) or all (2) rows at once (click or next gen to update), 1 is much faster. Press 1 or 2 to switch quickly Notes: -Turning on stats visibility also turns on period checking, which may slow down the program especially at high generations with undefined period (recommended to turn off when it starts to slow down) -There is a maximum of 200k generations enforced by Scratch's list limits -There is a total of 2^60 possible configurations here, which is about 10^18 (max possible period) --Therefore, a few rules won't have a period simply because lack of time, sorry about that