100 people take turns at switching lights to their opposite state on a board of 100 lights. The first switches every switch, the second switches every second switch, the third switches every third, and the list continues until the 100th person switches the 100th switch. What does the board look like? This project allows you to select any amount of people from 1 to 100 and watch them switch the board as needed to find out what each 100 states of the board look like. Use the LIVE speed slider to slow down the simulation if your computer is struggling to run the simulation. Use the turns slider to adjust the next simulation. To reset halfway through a running simulation, press [SPACE]. Press [SPACE] to begin the simulation AFTER everything has loaded. Wait a small second after restarting the project to avoid errors.
This project was inspired by the Numberphile video. 1.0.1: - The light is now only updated every Xth light (if X is turn) - The light now switches to the correct state when updated (being the opposite of the previous state) - Added compatibility for up to 1000 turns - Increased overall speed