AI版完成

develop
huangjielun 3 years ago
parent e9e8bf0402
commit fbe4e48e06

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -2300,8 +2300,8 @@ def main():
turn = (1 - turn) turn = (1 - turn)
player.invalid = 0 player.invalid = 0
elif demo == 2 and turn == player.side: elif demo == 2 and turn == player.side:
id, x, y = DLS.depthLimitedSearch2(Axis.axis, player.side) # TODO:AI algorithm id, x, y = DLS.depthLimitedSearch2(Axis.axis, player.side, ID) # TODO:AI algorithm
#print((id,x,y)) print((id,x,y))
if id == 1: if id == 1:
if 8 <= MAP[x][y] <= 14: if 8 <= MAP[x][y] <= 14:
ID[MAP[x][y]] = 0 ID[MAP[x][y]] = 0

Loading…
Cancel
Save