This is still being written. For now, you can visit the garage page for sandcastle, browse the source code, or play a similar game in Java.