A bit of SVG and a bit of Javascript. And, this is what the childhood-played game translated into:
Give it a try. Caution: You need a web browser that supports SVG. (Don’t worry if you have Firefox, Opera or Safari. They come with built-in SVG support.)