源码说明
基于Python3+pygame制作而成,特别适合练手
一、运行效果



二、部分示例代码
def judge_move_up(chess_nums_temp): chess_nums_temp = [list(row) for row in zip(*chess_nums_temp)] return judge_move_left(chess_nums_temp)
def judge_move_down(chess_nums_temp): 逻辑:判断能否向下移动, 也就是对于元素进行转置, 判断转置后的棋盘能否向右移动 chess_nums_temp = [list(row) for row in zip(*chess_nums_temp)] return judge_move_right(chess_nums_temp)