5retur
trueelseco
ti
ueCou
t1继续另一种情况的搜索斜向西北寻找fori
txxI
dex1yyI
dex1y0x0xyColorcisBlackColorblackColorwhite
fifgetChessxyc
ullco
ti
ueCou
telsebreak西南寻找fori
txxI
dex1yyI
dex1yROWSxCOLSxyColorcisBlackColorblackColorwhiteifgetChessxyc
ullco
ti
ueCou
telsebreakifco
ti
ueCou
t5retur
trueelseco
ti
ueCou
t1retur
falseprivatePoi
tgetChessi
txI
dexi
tyI
dexColorcolorforPoi
tcchessListifc
ullcgetXxI
dexcgetYyI
dexcgetColorcolorretur
cretur
ullpublicvoidrestartGame清除棋子fori
ti0ichessListle
gthichessListi
ull恢复游戏相关的变量值isBlacktruegameOverfalse游戏是否结束chessCou
t0当前棋盘的棋子个数repai
t悔棋publicvoidgoback
fifchessCou
t0retur
chessListchessCou
t1
ullchessCou
tifchessCou
t0xI
dexchessListchessCou
t1getXyI
dexchessListchessCou
t1getYisBlackisBlackrepai
tDime
sio
矩形publicDime
sio
getPreferredSizeretur
ewDime
sio
MARGIN2GRID_SPANCOLSMARGIN2GRID_SPANROWS
fr