CodeWarriorMalo@gmail.com
@CodeWarriorMalo

vs Reaction
This is a game where the Raspberry Pi lights up a single LED and then two users compete to see who can press their button the fastest. The game plays five time and then lights up the winner's LED.
Parts:
   1 Red LED
   2 Green LEDs
   3 Resistors (220 Ohm)
   2 Buttons

Layout:
   
   White wires connecting ground (GPIO Pin #39)
   Red wires connecting Resistors to Buttons to 3.3v (GPIO Pin #1)
   Purple wire connecting Player 1's LED to GPIO Pin #18
   Green wire connecting Player 1's Button to GPIO Pin #15
   Yellow wire connecting Reaction LED to GPIO Pin #13
   Blue wire connecting Player 2's LED to GPIO Pin #16
   Orange wire connecting Player 2's Button to GPIO Pin #11

Code: