An Arduino-controlled whack-a-mole game with buttons and LEDs.
A simple electronic circuit along with some code to make the classic arcade whack-a-mole game.
The key function here is millis() which allows the random LEDs to run while another loop runs that checks for your input. Kind of like multithreading but easier.
I made this for fun. There is an image and video attached to see it in action.