Create guess game by C code