Wires

I wrote a simple circuit simulator with pygame inspired by this article by Joscha Bach.

My implementation can be found here.

You can build oscillators and logic gates and even more advanced circuites with it.

Here is an example of a half adder: