JCR Matos has created a circuit layout in Fritzing for a ping-pong game that you can reproduce for a bit of fun with your Pi. You need several components, including driver chips for the seven-segment displays. He’s included all the code you need to run the game and published it over at Fritzing. Take a look here.