Code 1. #include 2. #include 3. #include 4. #include 5. #include 6. #include 7. #include 8. #define R 10 /*The size of mouse*/ 9. void init(void); /* BGI initialization */ 10. int cover(int); /*draw lines , set color, output the text*/ 11. void get_board(void); 12. /*using the loop and the line function to draw the chessboard*/ 13. void word(int); /*input word,the color is come from the rand*/ 14. void getmouse(int *,int *,int *); 15. /*get the location and the button of mouse,key=1 is the left button,key=2 is the right button*/ 16. void visbilemouse(void); 17. /*Display the mouse*//*after typing ,gets the x, y and mouse button,then return */ 18. void mouse(int *,int *,int *); 19. /*drawing a mouse is to put an empty rectangular in the memory , then draw the shape of the mouse in the empty rectangular*/ 20. void change_word(int); /*show the black or the white*/ 21. void help(void); /*get playing help*/ 22. void prompt(int); /*the cancel or quit*/ 23. void game_player(void); /*how to realize the game*/ 24. int main() 25. { 26. int key; 27. init();/*BGI initialization*/ 28. key=cover(0); /*the welcome interface*/ 29. while(key) /*only it is 1.it will running the loop*/ 30. { 31. get_board(); /*draw the chessboard*/ 32. game_player(); /*control or play the games*/ 33. } 34. closegraph(); 35. return 0; 36. } 37. void init() /* BGI initialization */ 38. { 39. int graphdriver = DETECT, graphmode = 0; 40. /* The same effect with gd =VGA and gm = VGAHI */ 41. registerbgidriver(EGAVGA_driver); /* After register the BGI driver needn't the support of running the BGI */ 42. initgraph(&graphdriver, &graphmode, ""); 43. return; 44. }...