全球旧事资料 分类
坐标publici
tgetY
retur
thisy
计算棋盘上某一方格上八个方向棋子的最大值,这八个方向分别是:左、右、上、下、左上、左下、右上、右下publici
tcheckMaxi
txi
tyi
tblack_or_white
i
t
um0max_
ummax_temp0i
tx_tempxy_tempyi
tx_temp1x_tempy_temp1y_tempjudgerightfori
ti1i5i
x_temp11ifx_temp1thiswidth
break
fifthisarrMapShowx_temp1y_temp1black_or_white
um
elsebreak
judgeleftx_temp1x_tempfori
ti1i5i
x_temp11ifx_temp10
breakifthisarrMapShowx_temp1y_temp1black_or_white
umelse
breakif
um5
max_temp
um
judgeupx_temp1x_tempy_temp1y_temp
um0fori
ti1i5i
y_temp11ify_temp10
breakifthisarrMapShowx_temp1y_temp1black_or_white
umelse
breakjudgedow
y_temp1y_tempfori
ti1i5i
y_temp11ify_temp1thisheight
breakifthisarrMapShowx_temp1y_temp1black_or_white
umelse
breakif
ummax_temp
um5
fmax_temp
um
judgeleft_upx_temp1x_tempy_temp1y_temp
um0fori
ti1i5i
x_temp11y_temp11ify_temp10x_temp10
breakifthisarrMapShowx_temp1y_temp1black_or_white
umelse
breakjudgeright_dow
x_temp1x_tempy_temp1y_tempfori
ti1i5i
x_temp11y_temp11ify_temp1thisheightx_temp1thiswidth
breakifthisarrMapShowx_temp1y_temp1black_or_white
umelse
breakif
ummax_temp
um5
max_temp
um
judgeright_upx_temp1x_tempy_temp1y_temp
um0fori
ti1i5i
x_temp11y_temp11ify_temp10x_temp1thiswidth
breakifthisarrMapShowx_temp1y_temp1black_or_white
umelse
fbreakjudgeleft_dow
x_temp1x_tempy_temp1y_tempfori
ti1i5i
x_temp11y_temp11ify_temp1thisheightx_temp10
breakifthisarrMapShowx_temp1y_temp1black_or_white
umelse
breakif
ummax_temp
um5
max_temp
ummax_
ummax_tempretur
max_
um
判断胜负publicboolea
judgeSuccessi
txi
tyboolea
isodd
i
t
um1i
tarrvaluei
tx_tempxy_tempyifisodd
arrvalue2else
arrvalue1i
tx_temp1x_tempy_temp1y_temp判断右边fori
ti1i6i
x_temp11ifx_temp1thiswidth
breakifthisarrMapShowx_temp1y_temp1arrvalue
umelse
break判断左边x_temp1x_tempfori
ti1i6i
fx_temp11ifx_temp10
breakifthisarrMapShowx_temp1y_temp1arrvalue
umelse
breakif
um5
retur
true
判断上方x_temp1x_tempy_temp1y_temp
um1fori
ti1i6i
y_temp11ify_temp10
breakifthisarrMapShowx_temp1y_temp1arrvalue
umelse
break判断下方y_temp1y_tempfori
ti1i6i
y_temp11ify_temp1thisheight
breakifthisarrMapShowx_temp1y_temp1arrvalue
umelse
breakif
um5
retur
true
判断左上x_temp1x_tempy_temp1y_temp
um1fori
tr
好听全球资料 返回顶部