Location:
Search - 05033
Search list
Description: 马踏棋盘的程序设计
设计一个国际象棋的马踏遍棋盘的演示程序。
将马随机放在国际象棋的8×8棋盘Board[8][8]的某个方格中,马按走棋规则(见题集p98)进行移动。要求每个方格只进入一次,走边棋盘上全部64个方格。编制非递归程序,求出马的行走路线,并按求出的行走路线,将数字1,2,3,…,64依次填入一个8×8的方阵,输出之。
Platform: |
Size: 50331 |
Author: 耗子 |
Hits:
Description: 马踏棋盘的程序设计
设计一个国际象棋的马踏遍棋盘的演示程序。
将马随机放在国际象棋的8×8棋盘Board[8][8]的某个方格中,马按走棋规则(见题集p98)进行移动。要求每个方格只进入一次,走边棋盘上全部64个方格。编制非递归程序,求出马的行走路线,并按求出的行走路线,将数字1,2,3,…,64依次填入一个8×8的方阵,输出之。
-Horse riding programming board to design a chess board horses all over the demo program. Ma Random Chess on the 8 × 8 chessboard Board [8] [8] of a box, the horse moves in accordance with the rules (see title set p98) mobile. Requires each box to enter only once, take the side of the chessboard of 64 squares total. The preparation of non-recursive procedures, and run routes, and routes are obtained, the number 1,2,3, ..., 64 followed by an 8 × 8 filled the square, the output of.
Platform: |
Size: 50176 |
Author: 耗子 |
Hits: