搜索资源列表
migong1
- 一个用C语言模拟走迷宫的程序,有BUG,即最后都迷宫所有格子都走过后会死循环。-a C language simulation Maze procedure, BUG, that is the end all lattice maze has already gone through cycle after death.
afive
- 功能上力求简单,两位玩家可以在这个棋盘上交替行棋。当某位玩家已经走成五子相连时,程序能判定他赢棋。-Simple functions, the two players can turn in this line on the chess board. When a player has gone into five sub-connected, the program can determine赢棋him.
main
- 搬山游戏:设有n座山,计算机与人作为比赛的双方,双方轮流搬山。规定每次搬山的数目不能超过k座,谁搬最后一座谁输。游戏开始时,计算机请人输入山的总数(n)和每次允许搬山的最大数目(k)。然后请人先开始,人输入了需要搬走的山的数目后,计算机马上输出它搬多少座山,并提示尚余多少座山。双方轮流搬山直到最后一座山搬完为止。计算机显示谁是赢家,并问人是否要继续比赛。若人不想玩了,可以输入山的总数为0,计算机便会告诉人共完了几局,双方胜负如何。-Moving mountains Games: with n m
Mice-have-gone-astray-official
- 老鼠走迷宫是递回求解的基本题型,我们在二维阵列中使用2表示迷宫墙壁,使用1来表 示老鼠的行走路径,试以程式求出由入口至出口的路径。-Mouse Maze recursive solving fundamental questions, we used two maze walls in the two-dimensional array, using a mouse to indicate the walking path, try to programmatically determine