This is a dual player game.
The rules of the game is the participants press the button when the light from the LED (led_center) blinks.
Whoever presses the button first wins.
Inorder to know who won the round two LEDs are installed for two LEDs( led1 , led2 )
if player1 wins the led1 lights up
else if player 2 wins led2 lights up.
This is game which could be executed in raspberry pi/ arduino.
The connections should be given accordingly to the code.
led1- gpio22
led_center- gpio-17
led2- gpio27
button1- gpio2
button2- gpio3