搜索资源列表
DivideCardGame
- 游戏规则:将总数为M的纸牌(是N的倍数),任意的划分成成数目不等的N堆,然后经过下列规则的移动,使得每堆牌的数目相等:1.要向第i堆牌移动牌,只能从i+1堆或i-1堆中取得;2.第一堆牌只能从第二堆牌中取得;3.第N堆牌只能从第N-1堆牌中取得。 算法要求:求解均分时的最小移动次数-Rules of the game: the total M of the card (which is a multiple of N), divided into any number ranging fro
Cat-and-mouse
- 自创的一个猫抓老鼠的小游戏。c语言编写。能在在Windows窗口运行。s表示老鼠,M表示猫。老鼠按随机路线窜动,玩家用键操纵猫的移动。当老鼠看见猫时会相反方向逃跑,遇到墙口时马上转弯。-Own a cat and mouse game. c language. It can run on Windows window. s represents mice, M is the cat. Mice were randomly route ran, the player with the key mo