Would you like to build logic circuits in Sauerbraten?
Download the real-time Sauerbraten Logic Simulator. Build all kinds of logic gates like AND, OR, XOR ... Use components like led, rectangle signal generator, switch and button. Toggle switches or buttons with a shot. Enjoy fast rendering and simulation in real-time. For more information see the Wiki You will love it.