By Jarred Spear Remixed from a project by Mayhem called SimpleCircuit. The original simulation allowed a user to create a functional circuit with three parts: a bulb, a battery, and a switch. I have (with questionable artistic ability) added a fourth slot in which to place a fourth or fifth part. One can place a wire, which has no effect, or a resistor, which will make the bulb less bright. Additionally, if the fourth slot is left empty, or one of the original three pieces is missing, the bulb will not light up. The code looks a little bit bulky because of the tremendously large nested "and"s and "if"s required to check for all the connections.