Using a Raspberry Pi to add some computing power to the traditonal ‘wire and loop’ electrical game. You can download the Python code and circuit diagram as follows:
CIRCUIT DIAGRAM:
http://www.explainingcomputers.com/pi_stuff/pi_wire_loop_circuit.jpg
PYTHON 3 CODE:
Basic: http://www.explainingcomputers.com/pi_stuff/Wire_Loop_Basic.py
Score: http://www.explainingcomputers.com/pi_stuff/Wire_Loop_Score.py
Analysis: http://www.explainingcomputers.com/pi_stuff/Wire_Loop_Analysis.py
You may also want to watch my broader guide to using Raspberry Pi GPIO inputs: https://www.youtube.com/watch?v=NAl-ULEattw
More videos on the Raspberry Pi and other computing-related topics can be found at: http://www.youtube.com/explainingcomputers
You may also like my ExplainingTheFuture channel at: http://www.youtube.com/explainingthefuture