资 源 简 介
本程序是在一个房间里猫捉老鼠的游戏。通过键盘上的上、下、左、右方向键控制一只猫,十只老鼠在窗口中自由活动,可随时改变行走方向,遇窗口边界则改变方向。猫碰到老鼠后就吃掉它(该鼠不再显示)。若猫吃掉所有老鼠,游戏结束并显示游戏所剩时间;若时间用完,猫没有吃掉所有老鼠, 游戏结束并显示所剩老鼠数目。-This program is in a room where a cat-and-mouse game. Through the keyboard up, down, left and right arrow keys to control a cat, 10 mice in the window to freely travel at any time to change the direction of the window border, however, to change the direction of the event. Encountered after the cat mouse eat it (the mouse is no longer displayed). If the cats eat all the rats, the game is over and displays the time remaining for the game if time runs out, the cat did not eat all the rats, the game is over and displays the number of the remaining mice.