Nice project for beginners via Fritzing.org.
Ping-pong with Raspberry Pi
Random first player.
The “jump” between the LEDs is random.
When a player wins, he starts the next game.
First player to reach 9 wins.
Each Friday is PiDay here at Adafruit! Be sure to check out our posts, tutorials and new Raspberry Pi related products. Adafruit has the largest and best selection of Raspberry Pi accessories and all the code & tutorials to get you up and running in no time!