import random import sys from collections import Iterable from functools import reduce import pygame # 屏幕尺寸 WIDTH, HEIGHT = (650, 370) # 背景颜色 BG_COLOR = '#92877d' # 棋盘需要的数据 MARGIN_SIZE = 10 # 间隔大小 BLOCK_SIZE = 80 # 棋子位置大小 def draw_tips(screen): """ 显示提...