搜索资源列表
九宫图算法实现(过程表示法)
- 这题奇数是有数学方法的,可以构造出解。描述起来比较麻烦。 出一解的构造法: 首先在整个矩阵的最下面一行的中央置1, 然后向右下方向顺序填上2,3,4,5,6,7,…… 注意碰到底的时候就将数翻到上面去,碰到右边的时候就翻到左面去 比如5*5的幻方,如果1填在(5,3)处,2就应该填在(1,4)处,4就应该填在(3,1)处…… 另外,当原数的下方已经有数时,要将要填入的数填到原数正上方 仍举5*5幻方的例子,当5已填好(4,2)时,其右下方为1,不能把6填在那里,而应填在(3,2)处,即5的上方。
guisnake
- 贪吃蛇游戏,主要是一个算法,怎样更新屏幕的显示,怎么构造蛇的数据结构.-Snake games, it is a major algorithm, and how to update the screen, how tectonic snake data structure.
贪吃蛇
- 贪吃蛇游戏源码,一系列经典游戏,通过C的编写构造该游戏,设计该游戏的操作 较为简单,但是算法挺难。(Snake game source code, a series of classic games, through the preparation of the C to build the game, the design of the game is relatively simple operation, but the algorithm is difficult.)