A simple C version of the popular game