Python3 + pygame 实现黑白棋(翻转棋)
直接上代码:
import pygame
# 确认导入成功
print(pygame.ver)
EMPTY = 0
BLACK = 1
WHITE = 2
MOVEOUT = 0
blackColor = [0, 0, 0]
whiteColor = [255, 255, 255]
# 棋盘类
class AppleBoard(object):
def __init__(self...
原创
2020-03-01 17:29:10 ·
1141 阅读 ·
0 评论