文件名称:chess.py
介绍说明--下载内容均来自于网络,请自行研究使用
Python实现A*算法解决八数码问题。
输入为九个数字的列表,代表八个数的位置(Z字型方向),空位以-1代替。
输出为各移动步骤得到的九个数的矩阵(输出到屏幕)。
使用是调用answer函数。返回一个各移动步骤得到的九个数的矩阵的列表。-Python achieving eight A* algorithm to solve digital problems. Enter a list of the nine numbers represent the number eight position (Z fonts direction), the space to-1 instead. Output for the mobile number of steps to get the nine matrix (output to screen). Use is to call answer function. The move returns a number of steps to get the matrix of the list of nine.
输入为九个数字的列表,代表八个数的位置(Z字型方向),空位以-1代替。
输出为各移动步骤得到的九个数的矩阵(输出到屏幕)。
使用是调用answer函数。返回一个各移动步骤得到的九个数的矩阵的列表。-Python achieving eight A* algorithm to solve digital problems. Enter a list of the nine numbers represent the number eight position (Z fonts direction), the space to-1 instead. Output for the mobile number of steps to get the nine matrix (output to screen). Use is to call answer function. The move returns a number of steps to get the matrix of the list of nine.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
chess.py