|
|
|
@ -26,7 +26,7 @@ WIDTH , HEIGHT = 1200 , 800
|
|
|
|
|
ID = [1 for i in range(20)]
|
|
|
|
|
FPS = 60
|
|
|
|
|
WIN = pygame.display.set_mode((WIDTH,HEIGHT))
|
|
|
|
|
pygame.display.set_caption("Jungle")
|
|
|
|
|
#pygame.display.set_caption("Jungle")
|
|
|
|
|
SPACE = pygame.transform.scale(pygame.image.load('images/map.png'),(WIDTH,HEIGHT))
|
|
|
|
|
CHESSSIZE_X=120
|
|
|
|
|
CHESSSIZE_Y=100 #棋子大小
|
|
|
|
@ -130,6 +130,7 @@ def draw_right_animals(r_elephant,r_eagle,r_wolf,r_lion,r_leopard,r_mouse,r_fox)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def draw_window(l_elephant,l_eagle,l_wolf,l_lion,l_leopard,l_mouse,l_fox,r_elephant,r_eagle,r_wolf,r_lion,r_leopard,r_mouse,r_fox,id, x, y, status, MAP, MAP1,turn):
|
|
|
|
|
pygame.display.set_caption("Jungle")
|
|
|
|
|
WIN.blit(SPACE,(0,0))
|
|
|
|
|
if turn == 1:
|
|
|
|
|
WIN.blit(left_turn,init.tran(8,3))
|
|
|
|
@ -1749,6 +1750,7 @@ def main():
|
|
|
|
|
run = False
|
|
|
|
|
if demo == 1 or demo == 2:
|
|
|
|
|
C.start_new_thread(server_thread, (client,Address))
|
|
|
|
|
print(turn,player.side)
|
|
|
|
|
Right_win = player.Right_win
|
|
|
|
|
Left_win = player.Left_win
|
|
|
|
|
for event in pygame.event.get():
|
|
|
|
@ -1820,7 +1822,7 @@ def main():
|
|
|
|
|
status = 0
|
|
|
|
|
if(demo == 1):
|
|
|
|
|
C.move(client,player.game_id,1 - player.side,(id+7) % 14,old_x,old_y,x,y)
|
|
|
|
|
turn = 1
|
|
|
|
|
turn = 1 - turn
|
|
|
|
|
else:
|
|
|
|
|
status = 0
|
|
|
|
|
elif (id == 2 and turn == 0 and status == 1 and demo == 0) or (id == 2 and demo == 1 and status == 1 and turn == player.side and turn == 0):
|
|
|
|
@ -1834,7 +1836,7 @@ def main():
|
|
|
|
|
status = 0
|
|
|
|
|
if (demo == 1):
|
|
|
|
|
C.move(client, player.game_id, 1 - player.side, (id+7) % 14, old_x, old_y, x, y)
|
|
|
|
|
turn = 1
|
|
|
|
|
turn = 1 - turn
|
|
|
|
|
else :
|
|
|
|
|
status = 0
|
|
|
|
|
elif (id == 3 and turn == 0 and status == 1 and demo == 0) or (id == 3 and demo == 1 and status == 1 and turn == player.side and turn == 0):
|
|
|
|
@ -1848,7 +1850,7 @@ def main():
|
|
|
|
|
status = 0
|
|
|
|
|
if (demo == 1):
|
|
|
|
|
C.move(client, player.game_id, 1 - player.side, (id+7) % 14, old_x, old_y, x, y)
|
|
|
|
|
turn = 1
|
|
|
|
|
turn = 1 - turn
|
|
|
|
|
else :
|
|
|
|
|
status = 0
|
|
|
|
|
elif (id == 4 and turn == 0 and status == 1 and demo == 0) or (id == 4 and demo == 1 and status == 1 and turn == player.side and turn == 0):
|
|
|
|
@ -1862,7 +1864,7 @@ def main():
|
|
|
|
|
status = 0
|
|
|
|
|
if (demo == 1):
|
|
|
|
|
C.move(client, player.game_id, 1 - player.side, (id+7) % 14, old_x, old_y, x, y)
|
|
|
|
|
turn = 1
|
|
|
|
|
turn = 1 - turn
|
|
|
|
|
else :
|
|
|
|
|
status = 0
|
|
|
|
|
elif (id == 5 and turn == 0 and status == 1 and demo == 0) or (id == 5 and demo == 1 and status == 1 and turn == player.side and turn == 0):
|
|
|
|
@ -1876,7 +1878,7 @@ def main():
|
|
|
|
|
status = 0
|
|
|
|
|
if (demo == 1):
|
|
|
|
|
C.move(client, player.game_id, 1 - player.side, (id+7) % 14, old_x, old_y, x, y)
|
|
|
|
|
turn = 1
|
|
|
|
|
turn = 1 - turn
|
|
|
|
|
else :
|
|
|
|
|
status = 0
|
|
|
|
|
elif (id == 6 and turn == 0 and status == 1 and demo == 0) or (id == 6 and demo == 1 and status == 1 and turn == player.side and turn == 0):
|
|
|
|
@ -1890,7 +1892,7 @@ def main():
|
|
|
|
|
status = 0
|
|
|
|
|
if (demo == 1):
|
|
|
|
|
C.move(client, player.game_id, 1 - player.side, (id+7) % 14, old_x, old_y, x, y)
|
|
|
|
|
turn = 1
|
|
|
|
|
turn = 1 - turn
|
|
|
|
|
else :
|
|
|
|
|
status = 0
|
|
|
|
|
elif (id == 7 and turn == 0 and status == 1 and demo == 0) or (id == 7 and demo == 1 and status == 1 and turn == player.side and turn == 0):
|
|
|
|
@ -1904,7 +1906,7 @@ def main():
|
|
|
|
|
status = 0
|
|
|
|
|
if (demo == 1):
|
|
|
|
|
C.move(client, player.game_id, 1 - player.side, (id+7) % 14, old_x, old_y, x, y)
|
|
|
|
|
turn = 1
|
|
|
|
|
turn = 1 - turn
|
|
|
|
|
else :
|
|
|
|
|
status = 0
|
|
|
|
|
elif (id == 8 and turn == 1 and status == 2 and demo == 0) or (id == 8 and turn == player.side and status == 2 and demo == 1 and turn == 1):
|
|
|
|
@ -1918,7 +1920,7 @@ def main():
|
|
|
|
|
status = 0
|
|
|
|
|
if (demo == 1):
|
|
|
|
|
C.move(client, player.game_id, 1 - player.side, (id+7) % 14, old_x, old_y, x, y)
|
|
|
|
|
turn = 0
|
|
|
|
|
turn = 1 - turn
|
|
|
|
|
else :
|
|
|
|
|
status = 0
|
|
|
|
|
elif (id == 9 and turn == 1 and status == 2 and demo == 0) or (id == 9 and turn == player.side and status == 2 and demo == 1 and turn == 1):
|
|
|
|
@ -1932,7 +1934,7 @@ def main():
|
|
|
|
|
status = 0
|
|
|
|
|
if (demo == 1):
|
|
|
|
|
C.move(client, player.game_id, 1 - player.side, (id+7) % 14, old_x, old_y, x, y)
|
|
|
|
|
turn = 0
|
|
|
|
|
turn = 1 - turn
|
|
|
|
|
else :
|
|
|
|
|
status = 0
|
|
|
|
|
elif (id == 10 and turn == 1 and status == 2 and demo == 0) or (id == 10 and turn == player.side and status == 2 and demo == 1 and turn == 1):
|
|
|
|
@ -1946,7 +1948,7 @@ def main():
|
|
|
|
|
status = 0
|
|
|
|
|
if (demo == 1):
|
|
|
|
|
C.move(client, player.game_id, 1 - player.side, (id+7) % 14, old_x, old_y, x, y)
|
|
|
|
|
turn = 0
|
|
|
|
|
turn = 1 - turn
|
|
|
|
|
else :
|
|
|
|
|
status = 0
|
|
|
|
|
elif (id == 11 and turn == 1 and status == 2 and demo == 0) or (id == 11 and turn == player.side and status == 2 and demo == 1 and turn == 1):
|
|
|
|
@ -1960,7 +1962,7 @@ def main():
|
|
|
|
|
status = 0
|
|
|
|
|
if (demo == 1):
|
|
|
|
|
C.move(client, player.game_id, 1 - player.side, (id+7) % 14, old_x, old_y, x, y)
|
|
|
|
|
turn = 0
|
|
|
|
|
turn = 1 - turn
|
|
|
|
|
else :
|
|
|
|
|
status = 0
|
|
|
|
|
elif (id == 12 and turn == 1 and status == 2 and demo == 0) or (id == 12 and turn == player.side and status == 2 and demo == 1 and turn == 1):
|
|
|
|
@ -1974,7 +1976,7 @@ def main():
|
|
|
|
|
status = 0
|
|
|
|
|
if (demo == 1):
|
|
|
|
|
C.move(client, player.game_id, 1 - player.side, (id+7) % 14, old_x, old_y, x, y)
|
|
|
|
|
turn = 0
|
|
|
|
|
turn = 1 - turn
|
|
|
|
|
else :
|
|
|
|
|
status = 0
|
|
|
|
|
elif (id == 13 and turn == 1 and status == 2 and demo == 0) or (id == 13 and turn == player.side and status == 2 and demo == 1 and turn == 1):
|
|
|
|
@ -1988,7 +1990,7 @@ def main():
|
|
|
|
|
status = 0
|
|
|
|
|
if (demo == 1):
|
|
|
|
|
C.move(client, player.game_id, 1 - player.side, (id+7) % 14, old_x, old_y, x, y)
|
|
|
|
|
turn = 0
|
|
|
|
|
turn = 1 - turn
|
|
|
|
|
else :
|
|
|
|
|
status = 0
|
|
|
|
|
elif (id == 14 and turn == 1 and status == 2 and demo == 0) or (id == 14 and turn == player.side and status == 2 and demo == 1 and turn == 1):
|
|
|
|
@ -2002,16 +2004,17 @@ def main():
|
|
|
|
|
status = 0
|
|
|
|
|
if (demo == 1):
|
|
|
|
|
C.move(client, player.game_id, 1 - player.side, (id+7) % 14, old_x, old_y, x, y)
|
|
|
|
|
turn = 0
|
|
|
|
|
turn = 1 - turn
|
|
|
|
|
else :
|
|
|
|
|
status = 0
|
|
|
|
|
elif (demo == 1 or demo == 2) and player.id and turn != player.side and player.invalid == 1 and player.status_2 == -1:
|
|
|
|
|
print("in")
|
|
|
|
|
counterpart_id = player.id
|
|
|
|
|
counterpart_old_x , counterpart_old_y = Axis.axis[counterpart_id]['old_x'],Axis.axis[counterpart_id]['old_y']
|
|
|
|
|
counterpart_x ,counterpart_y = Axis.axis[counterpart_id]['x'],Axis.axis[counterpart_id]['y']
|
|
|
|
|
if counterpart_id == 1 and turn == 0:
|
|
|
|
|
if counterpart_id == 1 :
|
|
|
|
|
if MAP[counterpart_x][counterpart_y] != counterpart_id:
|
|
|
|
|
if 1 <= MAP[counterpart_x][counterpart_y] <= 14:
|
|
|
|
|
if 8 <= MAP[counterpart_x][counterpart_y] <= 14:
|
|
|
|
|
ID[MAP[counterpart_x][counterpart_y]] = 0
|
|
|
|
|
r_animals -= 1
|
|
|
|
|
MAP[counterpart_old_x][counterpart_old_y] = MAP1[counterpart_old_x][counterpart_old_y]
|
|
|
|
@ -2019,9 +2022,9 @@ def main():
|
|
|
|
|
l_mouse.x , l_mouse.y = init.tran(counterpart_x,counterpart_y)
|
|
|
|
|
turn = (1-turn)
|
|
|
|
|
player.invalid = 0
|
|
|
|
|
elif counterpart_id == 2 and turn == 0:
|
|
|
|
|
elif counterpart_id == 2 :
|
|
|
|
|
if MAP[counterpart_x][counterpart_y] != counterpart_id:
|
|
|
|
|
if 1 <= MAP[counterpart_x][counterpart_y] <= 14:
|
|
|
|
|
if 8 <= MAP[counterpart_x][counterpart_y] <= 14:
|
|
|
|
|
ID[MAP[counterpart_x][counterpart_y]] = 0
|
|
|
|
|
r_animals -= 1
|
|
|
|
|
MAP[counterpart_old_x][counterpart_old_y] = MAP1[counterpart_old_x][counterpart_old_y]
|
|
|
|
@ -2029,9 +2032,9 @@ def main():
|
|
|
|
|
l_eagle.x , l_eagle.y = init.tran(counterpart_x,counterpart_y)
|
|
|
|
|
turn = (1-turn)
|
|
|
|
|
player.invalid = 0
|
|
|
|
|
elif counterpart_id == 3 and turn == 0:
|
|
|
|
|
elif counterpart_id == 3 :
|
|
|
|
|
if MAP[counterpart_x][counterpart_y] != counterpart_id:
|
|
|
|
|
if 1 <= MAP[counterpart_x][counterpart_y] <= 14:
|
|
|
|
|
if 8 <= MAP[counterpart_x][counterpart_y] <= 14:
|
|
|
|
|
r_animals -= 1
|
|
|
|
|
ID[MAP[counterpart_x][counterpart_y]] = 0
|
|
|
|
|
MAP[counterpart_old_x][counterpart_old_y] = MAP1[counterpart_old_x][counterpart_old_y]
|
|
|
|
@ -2039,9 +2042,9 @@ def main():
|
|
|
|
|
l_fox.x , l_fox.y = init.tran(counterpart_x,counterpart_y)
|
|
|
|
|
turn = (1-turn)
|
|
|
|
|
player.invalid = 0
|
|
|
|
|
elif counterpart_id == 4 and turn == 0:
|
|
|
|
|
elif counterpart_id == 4 :
|
|
|
|
|
if MAP[counterpart_x][counterpart_y] != counterpart_id:
|
|
|
|
|
if 1 <= MAP[counterpart_x][counterpart_y] <= 14:
|
|
|
|
|
if 8 <= MAP[counterpart_x][counterpart_y] <= 14:
|
|
|
|
|
ID[MAP[counterpart_x][counterpart_y]] = 0
|
|
|
|
|
r_animals -= 1
|
|
|
|
|
MAP[counterpart_old_x][counterpart_old_y] = MAP1[counterpart_old_x][counterpart_old_y]
|
|
|
|
@ -2049,9 +2052,9 @@ def main():
|
|
|
|
|
l_wolf.x , l_wolf.y = init.tran(counterpart_x,counterpart_y)
|
|
|
|
|
turn = (1-turn)
|
|
|
|
|
player.invalid = 0
|
|
|
|
|
elif counterpart_id == 5 and turn == 0:
|
|
|
|
|
elif counterpart_id == 5 :
|
|
|
|
|
if MAP[counterpart_x][counterpart_y] != counterpart_id:
|
|
|
|
|
if 1 <= MAP[counterpart_x][counterpart_y] <= 14:
|
|
|
|
|
if 8 <= MAP[counterpart_x][counterpart_y] <= 14:
|
|
|
|
|
ID[MAP[counterpart_x][counterpart_y]] = 0
|
|
|
|
|
r_animals -= 1
|
|
|
|
|
MAP[counterpart_old_x][counterpart_old_y] = MAP1[counterpart_old_x][counterpart_old_y]
|
|
|
|
@ -2059,9 +2062,9 @@ def main():
|
|
|
|
|
l_leopard.x , l_leopard.y = init.tran(counterpart_x,counterpart_y)
|
|
|
|
|
turn = (1-turn)
|
|
|
|
|
player.invalid = 0
|
|
|
|
|
elif counterpart_id == 6 and turn == 0:
|
|
|
|
|
elif counterpart_id == 6 :
|
|
|
|
|
if MAP[counterpart_x][counterpart_y] != counterpart_id:
|
|
|
|
|
if 1 <= MAP[counterpart_x][counterpart_y] <= 14:
|
|
|
|
|
if 8 <= MAP[counterpart_x][counterpart_y] <= 14:
|
|
|
|
|
ID[MAP[counterpart_x][counterpart_y]] = 0
|
|
|
|
|
r_animals -= 1
|
|
|
|
|
MAP[counterpart_old_x][counterpart_old_y] = MAP1[counterpart_old_x][counterpart_old_y]
|
|
|
|
@ -2069,9 +2072,9 @@ def main():
|
|
|
|
|
l_lion.x , l_lion.y = init.tran(counterpart_x,counterpart_y)
|
|
|
|
|
turn = (1-turn)
|
|
|
|
|
player.invalid = 0
|
|
|
|
|
elif counterpart_id == 7 and turn == 0:
|
|
|
|
|
elif counterpart_id == 7 :
|
|
|
|
|
if MAP[counterpart_x][counterpart_y] != counterpart_id:
|
|
|
|
|
if 1 <= MAP[counterpart_x][counterpart_y] <= 14:
|
|
|
|
|
if 8 <= MAP[counterpart_x][counterpart_y] <= 14:
|
|
|
|
|
ID[MAP[counterpart_x][counterpart_y]] = 0
|
|
|
|
|
r_animals -= 1
|
|
|
|
|
MAP[counterpart_old_x][counterpart_old_y] = MAP1[counterpart_old_x][counterpart_old_y]
|
|
|
|
@ -2079,9 +2082,9 @@ def main():
|
|
|
|
|
l_elephant.x , l_elephant.y = init.tran(counterpart_x,counterpart_y)
|
|
|
|
|
turn = (1-turn)
|
|
|
|
|
player.invalid = 0
|
|
|
|
|
elif counterpart_id == 8 and turn == 1:
|
|
|
|
|
elif counterpart_id == 8 :
|
|
|
|
|
if MAP[counterpart_x][counterpart_y] != counterpart_id:
|
|
|
|
|
if 1 <= MAP[counterpart_x][counterpart_y] <= 14:
|
|
|
|
|
if 1 <= MAP[counterpart_x][counterpart_y] <= 7:
|
|
|
|
|
ID[MAP[counterpart_x][counterpart_y]] = 0
|
|
|
|
|
l_animals -= 1
|
|
|
|
|
MAP[counterpart_old_x][counterpart_old_y] = MAP1[counterpart_old_x][counterpart_old_y]
|
|
|
|
@ -2089,9 +2092,9 @@ def main():
|
|
|
|
|
r_mouse.x , r_mouse.y = init.tran(counterpart_x,counterpart_y)
|
|
|
|
|
turn = (1-turn)
|
|
|
|
|
player.invalid = 0
|
|
|
|
|
elif counterpart_id == 9 and turn == 1:
|
|
|
|
|
elif counterpart_id == 9 :
|
|
|
|
|
if MAP[counterpart_x][counterpart_y] != counterpart_id:
|
|
|
|
|
if 1 <= MAP[counterpart_x][counterpart_y] <= 14:
|
|
|
|
|
if 1 <= MAP[counterpart_x][counterpart_y] <= 7:
|
|
|
|
|
ID[MAP[counterpart_x][counterpart_y]] = 0
|
|
|
|
|
l_animals -= 1
|
|
|
|
|
MAP[counterpart_old_x][counterpart_old_y] = MAP1[counterpart_old_x][counterpart_old_y]
|
|
|
|
@ -2099,9 +2102,9 @@ def main():
|
|
|
|
|
r_eagle.x , r_eagle.y = init.tran(counterpart_x,counterpart_y)
|
|
|
|
|
turn = (1-turn)
|
|
|
|
|
player.invalid = 0
|
|
|
|
|
elif counterpart_id == 10 and turn == 1:
|
|
|
|
|
elif counterpart_id == 10 :
|
|
|
|
|
if MAP[counterpart_x][counterpart_y] != counterpart_id:
|
|
|
|
|
if 1 <= MAP[counterpart_x][counterpart_y] <= 14:
|
|
|
|
|
if 1 <= MAP[counterpart_x][counterpart_y] <= 7:
|
|
|
|
|
ID[MAP[counterpart_x][counterpart_y]] = 0
|
|
|
|
|
l_animals -= 1
|
|
|
|
|
MAP[counterpart_old_x][counterpart_old_y] = MAP1[counterpart_old_x][counterpart_old_y]
|
|
|
|
@ -2109,9 +2112,9 @@ def main():
|
|
|
|
|
r_fox.x , r_fox.y = init.tran(counterpart_x,counterpart_y)
|
|
|
|
|
turn = (1-turn)
|
|
|
|
|
player.invalid = 0
|
|
|
|
|
elif counterpart_id == 11 and turn == 1:
|
|
|
|
|
elif counterpart_id == 11 :
|
|
|
|
|
if MAP[counterpart_x][counterpart_y] != counterpart_id:
|
|
|
|
|
if 1 <= MAP[counterpart_x][counterpart_y] <= 14:
|
|
|
|
|
if 1 <= MAP[counterpart_x][counterpart_y] <= 7:
|
|
|
|
|
ID[MAP[counterpart_x][counterpart_y]] = 0
|
|
|
|
|
l_animals -= 1
|
|
|
|
|
MAP[counterpart_old_x][counterpart_old_y] = MAP1[counterpart_old_x][counterpart_old_y]
|
|
|
|
@ -2119,9 +2122,9 @@ def main():
|
|
|
|
|
r_wolf.x , r_wolf.y = init.tran(counterpart_x,counterpart_y)
|
|
|
|
|
turn = (1-turn)
|
|
|
|
|
player.invalid = 0
|
|
|
|
|
elif counterpart_id == 12 and turn == 1:
|
|
|
|
|
elif counterpart_id == 12 :
|
|
|
|
|
if MAP[counterpart_x][counterpart_y] != counterpart_id:
|
|
|
|
|
if 1 <= MAP[counterpart_x][counterpart_y] <= 14:
|
|
|
|
|
if 1 <= MAP[counterpart_x][counterpart_y] <= 7:
|
|
|
|
|
ID[MAP[counterpart_x][counterpart_y]] = 0
|
|
|
|
|
l_animals -= 1
|
|
|
|
|
MAP[counterpart_old_x][counterpart_old_y] = MAP1[counterpart_old_x][counterpart_old_y]
|
|
|
|
@ -2129,9 +2132,9 @@ def main():
|
|
|
|
|
r_leopard.x , r_leopard.y = init.tran(counterpart_x,counterpart_y)
|
|
|
|
|
turn = (1-turn)
|
|
|
|
|
player.invalid = 0
|
|
|
|
|
elif counterpart_id == 13 and turn == 1:
|
|
|
|
|
elif counterpart_id == 13 :
|
|
|
|
|
if MAP[counterpart_x][counterpart_y] != counterpart_id:
|
|
|
|
|
if 1 <= MAP[counterpart_x][counterpart_y] <= 14:
|
|
|
|
|
if 1 <= MAP[counterpart_x][counterpart_y] <= 7:
|
|
|
|
|
ID[MAP[counterpart_x][counterpart_y]] = 0
|
|
|
|
|
l_animals -= 1
|
|
|
|
|
MAP[counterpart_old_x][counterpart_old_y] = MAP1[counterpart_old_x][counterpart_old_y]
|
|
|
|
@ -2139,9 +2142,9 @@ def main():
|
|
|
|
|
r_lion.x , r_lion.y = init.tran(counterpart_x,counterpart_y)
|
|
|
|
|
turn = (1-turn)
|
|
|
|
|
player.invalid = 0
|
|
|
|
|
elif counterpart_id == 14 and turn == 1:
|
|
|
|
|
elif counterpart_id == 14 :
|
|
|
|
|
if MAP[counterpart_x][counterpart_y] != counterpart_id:
|
|
|
|
|
if 1 <= MAP[counterpart_x][counterpart_y] <= 14:
|
|
|
|
|
if 1 <= MAP[counterpart_x][counterpart_y] <= 7:
|
|
|
|
|
ID[MAP[counterpart_x][counterpart_y]] = 0
|
|
|
|
|
l_animals -= 1
|
|
|
|
|
MAP[counterpart_old_x][counterpart_old_y] = MAP1[counterpart_old_x][counterpart_old_y]
|
|
|
|
@ -2149,8 +2152,9 @@ def main():
|
|
|
|
|
r_elephant.x , r_elephant.y = init.tran(counterpart_x,counterpart_y)
|
|
|
|
|
turn = (1-turn)
|
|
|
|
|
player.invalid = 0
|
|
|
|
|
elif demo == 2 and player.id and turn == player.id:
|
|
|
|
|
id,x,y = DLS.depthLimitedSearch2(Axis.axis,player.id)#TODO:AI algorithm
|
|
|
|
|
elif demo == 2 and player.side and turn == player.side:
|
|
|
|
|
id,x,y = DLS.depthLimitedSearch2(Axis.axis,player.side)#TODO:AI algorithm
|
|
|
|
|
print(id,x,y)
|
|
|
|
|
if id == 1:
|
|
|
|
|
if 8 <= MAP[x][y] <= 14:
|
|
|
|
|
ID[MAP[x][y]] = 0
|
|
|
|
@ -2347,6 +2351,7 @@ def main():
|
|
|
|
|
Axis.axis[id]["y"] = y
|
|
|
|
|
r_elephant.x, r_elephant.y = init.tran(x, y)
|
|
|
|
|
turn = (1 - turn)
|
|
|
|
|
C.move(client, player.game_id, 1 - player.side, (id + 7) % 14, old_x, old_y, x, y)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
draw_window(l_elephant, l_eagle, l_wolf, l_lion, l_leopard, l_mouse, l_fox, r_elephant, r_eagle, r_wolf, r_lion,
|
|
|
|
|