Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rint ("Welcome to Checkers!", "\n")
- board= [ ["-" , "x" , "-" , "x" , "-" , "x", "-", "x" , 8 ] ,
- ["x" , "-" , "x" , "-" , "x" , "-", "x", "-" , 7 ],
- ["-" , "x" , "-" , "x" , "-" , "x", "-", "x" , 6 ],
- ["-" , "-" , "-" , "-" , "-" , "-", "-", "-" , 5 ],
- ["-" , "-" , "-" , "-" , "-" , "-", "-", "-" , 4 ],
- ["o" , "-" , "o" , "-" , "o" , "-", "o", "-" , 3 ],
- ["-" , "o" , "-" , "o" , "-" , "o", "-", "o" , 2 ],
- ["o" , "-" , "o" , "-" , "o" , "-", "o", "-" , 1 ],
- ["A" , "B" , "C" , "D" , "E" , "F", "G", "H"] ]
- for i in range (len(board)) :
- for j in range (len(board[i])) :
- print (board[i][j], end = " ")
- print ()
- letter = {"A":0, "B":1 , "C":2 , "D":3 , "E":4 , "F":5 , "G":6, "H":7}
- number = {"8":0, "7":1, "6":2, "5":3, "4":4, "3":5, "2":6, "1":7}
- rettel = {0:"A", 1:"B", 2:"C", 3:"D", 4:"E", 5:"F", 6:"G", 7:"H"}
- rebmun = {0:"8", 1:"7", 2:"6", 3:"5", 4:"4", 5:"3", 6:"2", 7:"1"}
- def move_d():
- global dmove
- dmove = input("Dark pieces to play. Enter your move:")
- return dmove
- def move_l():
- global lmove
- lmove = input("Light pieces to play. Enter your move:")
- return lmove
- def convertdmove(dmove):
- da = dmove[0]
- db = dmove[1]
- dc = dmove[3]
- dd = dmove[4]
- global dx1
- global dy1
- global dx2
- global dy2
- dx1 = number[db]
- dx1 = int(dx1)
- dy1 = letter[da]
- dy1 = int(dy1)
- dx2 = number[dd]
- dx2 = int(dx2)
- dy2 = letter[dc]
- dy2 = int(dy2)
- return dx1,dy1,dx2,dy2
- def convertlmove(lmove):
- la = lmove[0]
- lb = lmove[1]
- lc = lmove[3]
- ld = lmove[4]
- global lx1
- global ly1
- global lx2
- global ly2
- lx1 = number[lb]
- lx1 = int(lx1)
- ly1 = letter[la]
- ly1 = int(ly1)
- lx2 = number[ld]
- lx2 = int(lx2)
- ly2 = letter[lc]
- ly2 = int(ly2)
- #if len(lmove)>5:
- def dmovement(board):
- board[dx1][dy1],board[dx2][dy2]=board[dx2][dy2],board[dx1][dy1]
- return board
- def dmovement1(board):
- board[dx1][dy1],board[dx2][dy2]=board[dx2][dy2],board[dx1][dy1]
- board[dx2][dy2],board[dx3][dy3]=board[dx3][dy3],board[dx2][dy2]
- return board
- #def dmovement2(board):
- #board[dx1][dy1],board[dx2][dy2]=board[dx2][dy2],board[dx1][dy1]
- #board[dx2][dy2],board[dx3][dy3]=board[dx3][dy3],board[dx2][dy2]
- #board[dx3][dy3],board[dx4][dy4]=board[dx4][dy4],board[dx3][dy3]
- #return board
- def lmovement(board):
- board[lx1][ly1],board[lx2][ly2]=board[lx2][ly2],board[lx1][ly1]
- return board
- def validity_check_d():
- if len(dmove)>=5:
- if board[dx1][dy1]=="x":
- if dx2==dx1+1 and dy2==dy1-1:
- dmovement(board)
- elif dx2==dx1+1 and dy2==dy1+1:
- dmovement(board)
- elif dx2==dx1+2 or dx2==dx1-2 or dy2==dy1-2 or dy2==dy1+2:
- darkcapture()
- elif dx2!=dx1+1 or dy2!=dy1+1 or dy2!=dy1-1 or dx2!=dx1+2 or dx2!=dx1-2 or dy2!=dy1-2 or dy2!=dy1+2:
- print("Invalid input.Try again.")
- move_d()
- convertdmove(dmove)
- validity_check_d()
- elif board[dx1][dy1]!="x":
- print("Invalid input. Wrong piece. Try again.")
- move_d()
- convertdmove(dmove)
- validity_check_d()
- elif len(dmove)<5:
- print("Invalid input. Try again.")
- move_d()
- convertdmove(dmove)
- validity_check_d()
- elif dmove=="END" or dmove=="end" or dmove=="End":
- end()
- def validity_check_l():
- if len(lmove)>=5:
- if board[lx1][ly1]=="o":
- if lx2==lx1-1 and ly2==ly1-1:
- lmovement(board)
- elif lx2==lx1-1 and ly2==ly1+1:
- lmovement(board)
- elif lx2==lx1+2 or lx2==lx1-2 or ly2==ly1-2 or ly2==ly1+2:
- lightcapture()
- elif lx2!=lx1+1 or ly2!=ly1+1 or ly2!=ly1-1:
- print("Invalid input.Try again.")
- move_l()
- convertlmove(lmove)
- validity_check_l()
- elif board[lx1][ly1]!="o":
- print("Invalid input. Wrong piece. Try again.")
- move_l()
- convertlmove(lmove)
- validity_check_l()
- elif lmove=="END" or lmove=="end" or lmove=="End":
- end()
- elif len(lmove)<5 and not ("END" or "end" or "End"):
- print("Invalid input. Try again.")
- move_l()
- convertlmove(lmove)
- validity_check_l()
- def darkcapture():
- global dcapture
- dcapture = 0
- for x in range (8):
- for y in range(8):
- if board[x][y]=="x" or board[x][y]=="X":
- if x-2 >= 0 or y-2 >= 0:
- if board[x-1][y-1]=="o" or board[x-1][y-1]=="O":
- if board[x-2][y-2]=="-":
- if dx2==x-2 and dy2==y-2:
- board[x-1][y-1]="-"
- dmovement(board)
- dcapture +=1
- return dcapture
- if x-4 >= 0 or y-4 >= 0:
- if board[x-2][y-2]=="o" or board[x-2][y-2]=="O":
- if board[x-3][y-3]=="-":
- if dx3==x-4 and dy3==y-4:
- board[x-3][y-3]="-"
- dmovement1(board)
- dcapture +=1
- return dcapture
- if x-6 >= 0 or y-6 >= 0:
- if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
- if board[x-5][y-5]=="-":
- if dx3==x-6 and dy3==y-6:
- board[x-5][y-5]="-"
- dmovement2(board)
- dcapture +=1
- return dcapture
- elif dx4!=x-6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4],rettel[y-6],rebmun[x-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x-6 >= 0 or y+6 < 8:
- if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
- if board[x-5][y+5]=="-":
- if dx3==x-6 and dy3==y+6:
- board[x-5][y+5]="-"
- dmovement2(board)
- dcapture += 1
- return dcapture
- elif dx4!=x-6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4],rettel[y+6],rebmun[y-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 and y-6 >= 0:
- if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
- if board[x+5][y-5]=="-":
- if dx3==x+6 or dy3==y-6:
- board[x+5][y-5]="-"
- dmovement2(board)
- dcapture += 1
- return dcapture
- elif dx4!=x+6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y-6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 or y+6 < 8:
- if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
- if board[x+5][y+5]=="-":
- if dx4==x+6 and dy4==y+6:
- board[x+5][y+5]="-"
- dmovement2(board)
- dcapture += 1
- return dcapture
- elif dx4!=x+6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y+6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- elif dx3!=x-4 and dy3!=y-4:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x-4 >= 0 or y+4 < 8:
- if board[x-2][y+2]=="o" or board[x-2][y+2]=="O":
- if board[x-3][y+3]=="-":
- if dx3==x-4 and dy3==y+4:
- board[x-3][y+3]="-"
- dmovement1(board)
- dcapture += 1
- return dcapture
- if x-6 >= 0 or y-6 >= 0:
- if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
- if board[x-5][y-5]=="-":
- if dx3==x-6 and dy3==y-6:
- board[x-5][y-5]="-"
- dmovement2(board)
- dcapture +=1
- elif dx4!=x-6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4],rettel[y-6],rebmun[x-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x-6 >= 0 or y+6 < 8:
- if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
- if board[x-5][y+5]=="-":
- if dx3==x-6 and dy3==y+6:
- board[x-5][y+5]="-"
- dmovement2(board)
- dcapture += 1
- return dcapture
- elif dx4!=x-6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4],rettel[y+6],rebmun[y-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 and y-6 >= 0:
- if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
- if board[x+5][y-5]=="-":
- if dx3==x+6 or dy3==y-6:
- board[x+5][y-5]="-"
- dmovement2(board)
- dcapture += 1
- return dcapture
- elif dx4!=x+6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y-6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 or y+6 < 8:
- if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
- if board[x+5][y+5]=="-":
- if dx4==x+6 and dy4==y+6:
- board[x+5][y+5]="-"
- dmovement2(board)
- dcapture += 1
- return dcapture
- elif dx4!=x+6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y+6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- elif dx3!=x-4 and dy3!=y+4:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+4 < 8 and y-4 >= 0:
- if board[x+2][y-2]=="o" or board[x+2][y-2]=="O":
- if board[x+3][y-3]=="-":
- if dx3==x+4 or dy3==y-4:
- board[x+3][y-3]="-"
- dmovement1(board)
- dcapture += 1
- return dcapture
- if x-6 >= 0 or y-6 >= 0:
- if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
- if board[x-5][y-5]=="-":
- if dx3==x-6 and dy3==y-6:
- board[x-5][y-5]="-"
- dmovement2(board)
- dcapture +=1
- return dcapture
- elif dx4!=x-6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4],rettel[y-6],rebmun[x-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x-6 >= 0 or y+6 < 8:
- if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
- if board[x-5][y+5]=="-":
- if dx3==x-6 and dy3==y+6:
- board[x-5][y+5]="-"
- dmovement2(board)
- dcapture += 1
- return dcapture
- elif dx4!=x-6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4],rettel[y+6],rebmun[y-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 and y-6 >= 0:
- if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
- if board[x+5][y-5]=="-":
- if dx3==x+6 or dy3==y-6:
- board[x+5][y-5]="-"
- dmovement2(board)
- dcapture += 1
- return dcapture
- elif dx4!=x+6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y-6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 or y+6 < 8:
- if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
- if board[x+5][y+5]=="-":
- if dx4==x+6 and dy4==y+6:
- board[x+5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y+6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- elif dx3!=x+4 and dy3!=y-4:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+4 < 8 and y+4 < 8:
- if board[x+2][y+2]=="o" or board[x+2][y-2]=="O":
- if board[x+3][y+3]=="-":
- if dx3==x+4 or dy3==y+4:
- board[x+3][y+3]="-"
- dmovement1(board)
- return dcapture += 1
- if x-6 >= 0 or y-6 >= 0:
- if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
- if board[x-5][y-5]=="-":
- if dx3==x-6 and dy3==y-6:
- board[x-5][y-5]="-"
- dmovement2(board)
- return dcapture +=1
- elif dx4!=x-6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4],rettel[y-6],rebmun[x-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x-6 >= 0 or y+6 < 8:
- if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
- if board[x-5][y+5]=="-":
- if dx3==x-6 and dy3==y+6:
- board[x-5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x-6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4],rettel[y+6],rebmun[y-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 and y-6 >= 0:
- if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
- if board[x+5][y-5]=="-":
- if dx3==x+6 or dy3==y-6:
- board[x+5][y-5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y-6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 or y+6 < 8:
- if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
- if board[x+5][y+5]=="-":
- if dx4==x+6 and dy4==y+6:
- board[x+5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y+6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- elif dx3!=x+4 and dy3!=y+4:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x+4])
- move_d()
- convertdmove(dmove)
- darkcapture()
- elif dx2!=x-2 and dy2!=y-2:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[y-2],rebmun[x-2])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x-2 >= 0 or y+2 < 8:
- if board[x-1][y+1]=="o" or board[x-1][y+1]=="O":
- if board[x-2][y+2]=="-":
- if dx2==x-2 and dy2==y+2:
- board[x-1][y+1]="-"
- dmovement(board)
- return dcapture += 1
- if x-4 >= 0 or y-4 >= 0:
- if board[x-2][y-2]=="o" or board[x-2][y-2]=="O":
- if board[x-3][y-3]=="-":
- if dx3==x-4 and dy3==y-4:
- board[x-3][y-3]="-"
- dmovement1(board)
- return dcapture +=1
- if x-6 >= 0 or y-6 >= 0:
- if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
- if board[x-5][y-5]=="-":
- if dx3==x-6 and dy3==y-6:
- board[x-5][y-5]="-"
- dmovement2(board)
- return dcapture +=1
- elif dx4!=x-6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4],rettel[y-6],rebmun[x-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x-6 >= 0 or y+6 < 8:
- if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
- if board[x-5][y+5]=="-":
- if dx3==x-6 and dy3==y+6:
- board[x-5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x-6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4],rettel[y+6],rebmun[y-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 and y-6 >= 0:
- if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
- if board[x+5][y-5]=="-":
- if dx3==x+6 or dy3==y-6:
- board[x+5][y-5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y-6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 or y+6 < 8:
- if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
- if board[x+5][y+5]=="-":
- if dx4==x+6 and dy4==y+6:
- board[x+5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y+6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- elif dx3!=x-4 and dy3!=y-4:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],number[x-4])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x-4 >= 0 or y+4 < 8:
- if board[x-2][y+2]=="o" or board[x-2][y+2]=="O":
- if board[x-3][y+3]=="-":
- if dx3==x-4 and dy3==y+4:
- board[x-3][y+3]="-"
- dmovement1(board)
- return dcapture += 1
- if x-6 >= 0 or y-6 >= 0:
- if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
- if board[x-5][y-5]=="-":
- if dx3==x-6 and dy3==y-6:
- board[x-5][y-5]="-"
- dmovement2(board)
- return dcapture +=1
- elif dx4!=x-6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4],rettel[y-6],rebmun[x-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x-6 >= 0 or y+6 < 8:
- if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
- if board[x-5][y+5]=="-":
- if dx3==x-6 and dy3==y+6:
- board[x-5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x-6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4],rettel[y+6],rebmun[y-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 and y-6 >= 0:
- if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
- if board[x+5][y-5]=="-":
- if dx3==x+6 or dy3==y-6:
- board[x+5][y-5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y-6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 or y+6 < 8:
- if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
- if board[x+5][y+5]=="-":
- if dx4==x+6 and dy4==y+6:
- board[x+5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y+6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- elif dx3!=x-4 and dy3!=y+4:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],number[x-4])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+4 < 8 and y-4 >= 0:
- if board[x+2][y-1]=="o" or board[x+2][y-2]=="O":
- if board[x+3][y-3]=="-":
- if dx3==x+4 or dy3==y-4:
- board[x+3][y-3]="-"
- dmovement1(board)
- return dcapture += 1
- if x-6 >= 0 or y-6 >= 0:
- if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
- if board[x-5][y-5]=="-":
- if dx3==x-6 and dy3==y-6:
- board[x-5][y-5]="-"
- dmovement2(board)
- return dcapture +=1
- elif dx4!=x-6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4],rettel[y-6],rebmun[x-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x-6 >= 0 or y+6 < 8:
- if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
- if board[x-5][y+5]=="-":
- if dx3==x-6 and dy3==y+6:
- board[x-5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x-6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4],rettel[y+6],rebmun[y-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 and y-6 >= 0:
- if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
- if board[x+5][y-5]=="-":
- if dx3==x+6 or dy3==y-6:
- board[x+5][y-5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y-6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 or y+6 < 8:
- if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
- if board[x+5][y+5]=="-":
- if dx4==x+6 and dy4==y+6:
- board[x+5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y+6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- elif dx3!=x+4 and dy3!=y-4:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],number[x+4])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+4 < 8 or y+4 < 8:
- if board[x+2][y+2]=="o" or board[x+2][y+2]=="O":
- if board[x+3][y+3]=="-":
- if dx3==x+4 and dy3==y+4:
- board[x+1][y+1]="-"
- dmovement1(board)
- return dcapture += 1
- if x-6 >= 0 or y-6 >= 0:
- if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
- if board[x-5][y-5]=="-":
- if dx3==x-6 and dy3==y-6:
- board[x-5][y-5]="-"
- dmovement2(board)
- return dcapture +=1
- elif dx4!=x-6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4],rettel[y-6],rebmun[x-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x-6 >= 0 or y+6 < 8:
- if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
- if board[x-5][y+5]=="-":
- if dx3==x-6 and dy3==y+6:
- board[x-5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x-6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4],rettel[y+6],rebmun[y-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 and y-6 >= 0:
- if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
- if board[x+5][y-5]=="-":
- if dx3==x+6 or dy3==y-6:
- board[x+5][y-5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y-6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 or y+6 < 8:
- if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
- if board[x+5][y+5]=="-":
- if dx4==x+6 and dy4==y+6:
- board[x+5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y+6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- elif dx3!=x+4 and dy3!=y+4:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],number[x+4])
- move_d()
- convertdmove(dmove)
- darkcapture()
- elif dx2!=x-2 or dy2!=y+2:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x],rettel[y+2],rebmun[x-2])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+2 < 8 and y-2 >= 0:
- if board[x+1][y-1]=="o" or board[x+1][y-1]=="O":
- if board[x+2][y-2]=="-":
- if dx2==x+2 or dy2==y-2:
- board[x+1][y-1]="-"
- dmovement(board)
- return dcapture += 1
- if x-4 >= 0 or y-4 >= 0:
- if board[x-2][y-2]=="o" or board[x-2][y-2]=="O":
- if board[x-3][y-3]=="-":
- if dx3==x-4 and dy3==y-4:
- board[x-3][y-3]="-"
- dmovement1(board)
- return dcapture +=1
- if x-6 >= 0 or y-6 >= 0:
- if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
- if board[x-5][y-5]=="-":
- if dx3==x-6 and dy3==y-6:
- board[x-5][y-5]="-"
- dmovement2(board)
- return dcapture +=1
- elif dx4!=x-6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4],rettel[y-6],rebmun[x-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x-6 >= 0 or y+6 < 8:
- if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
- if board[x-5][y+5]=="-":
- if dx3==x-6 and dy3==y+6:
- board[x-5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x-6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4],rettel[y+6],rebmun[y-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 and y-6 >= 0:
- if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
- if board[x+5][y-5]=="-":
- if dx3==x+6 or dy3==y-6:
- board[x+5][y-5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y-6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 or y+6 < 8:
- if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
- if board[x+5][y+5]=="-":
- if dx4==x+6 and dy4==y+6:
- board[x+5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y+6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- elif dx3!=x-4 and dy3!=y-4:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x-4 >= 0 or y+4 < 8:
- if board[x-2][y+2]=="o" or board[x-2][y+2]=="O":
- if board[x-3][y+3]=="-":
- if dx3==x-4 and dy3==y+4:
- board[x-3][y+3]="-"
- dmovement1(board)
- return dcapture += 1
- if x-6 >= 0 or y-6 >= 0:
- if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
- if board[x-5][y-5]=="-":
- if dx3==x-6 and dy3==y-6:
- board[x-5][y-5]="-"
- dmovement2(board)
- return dcapture +=1
- elif dx4!=x-6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4],rettel[y-6],rebmun[x-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x-6 >= 0 or y+6 < 8:
- if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
- if board[x-5][y+5]=="-":
- if dx3==x-6 and dy3==y+6:
- board[x-5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x-6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4],rettel[y+6],rebmun[y-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 and y-6 >= 0:
- if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
- if board[x+5][y-5]=="-":
- if dx3==x+6 or dy3==y-6:
- board[x+5][y-5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y-6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 or y+6 < 8:
- if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
- if board[x+5][y+5]=="-":
- if dx4==x+6 and dy4==y+6:
- board[x+5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y+6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- elif dx3!=x-4 and dy3!=y+4:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+4 < 8 and y-4 >= 0:
- if board[x+2][y-1]=="o" or board[x+2][y-2]=="O":
- if board[x+3][y-3]=="-":
- if dx3==x+4 or dy3==y-4:
- board[x+3][y-3]="-"
- dmovement1(board)
- return dcapture += 1
- if x-6 >= 0 or y-6 >= 0:
- if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
- if board[x-5][y-5]=="-":
- if dx3==x-6 and dy3==y-6:
- board[x-5][y-5]="-"
- dmovement2(board)
- return dcapture +=1
- elif dx4!=x-6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4],rettel[y-6],rebmun[x-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x-6 >= 0 or y+6 < 8:
- if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
- if board[x-5][y+5]=="-":
- if dx3==x-6 and dy3==y+6:
- board[x-5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x-6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4],rettel[y+6],rebmun[y-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 and y-6 >= 0:
- if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
- if board[x+5][y-5]=="-":
- if dx3==x+6 or dy3==y-6:
- board[x+5][y-5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y-6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 or y+6 < 8:
- if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
- if board[x+5][y+5]=="-":
- if dx4==x+6 and dy4==y+6:
- board[x+5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y+6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- elif dx3!=x+4 and dy3!=y-4:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+4 < 8 or y+4 < 8:
- if board[x+2][y+2]=="o" or board[x+2][y+2]=="O":
- if board[x+3][y+3]=="-":
- if dx3==x+4 and dy3==y+4:
- board[x+1][y+1]="-"
- dmovement1(board)
- return dcapture += 1
- if x-6 >= 0 or y-6 >= 0:
- if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
- if board[x-5][y-5]=="-":
- if dx3==x-6 and dy3==y-6:
- board[x-5][y-5]="-"
- dmovement2(board)
- return dcapture +=1
- elif dx4!=x-6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4],rettel[y-6],rebmun[x-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x-6 >= 0 or y+6 < 8:
- if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
- if board[x-5][y+5]=="-":
- if dx3==x-6 and dy3==y+6:
- board[x-5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x-6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4],rettel[y+6],rebmun[y-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 and y-6 >= 0:
- if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
- if board[x+5][y-5]=="-":
- if dx3==x+6 or dy3==y-6:
- board[x+5][y-5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y-6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 or y+6 < 8:
- if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
- if board[x+5][y+5]=="-":
- if dx4==x+6 and dy4==y+6:
- board[x+5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y+6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- elif dx3!=x+4 and dy3!=y+4:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x+4])
- move_d()
- convertdmove(dmove)
- darkcapture()
- elif dx2!=x+2 and dy2!=y-2:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x],rettel[y-2],rebmun[x+2])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+2 < 8 or y+2 < 8:
- if board[x+1][y+1]=="o" or board[x+1][y+1]=="O":
- if board[x+2][y+2]=="-":
- if dx2==x+2 and dy2==x+2:
- board[x+1][y+1]="-"
- dmovement(board)
- return dcapture +=1
- if x-4 >= 0 or y-4 >= 0:
- if board[x-2][y-2]=="o" or board[x-2][y-2]=="O":
- if board[x-3][y-3]=="-":
- if dx3==x-4 and dy3==y-4:
- board[x-3][y-3]="-"
- dmovement1(board)
- return dcapture +=1
- if x-6 >= 0 or y-6 >= 0:
- if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
- if board[x-5][y-5]=="-":
- if dx3==x-6 and dy3==y-6:
- board[x-5][y-5]="-"
- dmovement2(board)
- return dcapture +=1
- elif dx4!=x-6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4],rettel[y-6],rebmun[x-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x-6 >= 0 or y+6 < 8:
- if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
- if board[x-5][y+5]=="-":
- if dx3==x-6 and dy3==y+6:
- board[x-5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x-6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4],rettel[y+6],rebmun[y-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 and y-6 >= 0:
- if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
- if board[x+5][y-5]=="-":
- if dx3==x+6 or dy3==y-6:
- board[x+5][y-5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y-6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 or y+6 < 8:
- if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
- if board[x+5][y+5]=="-":
- if dx4==x+6 and dy4==y+6:
- board[x+5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y+6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- elif dx3!=x-4 and dy3!=y-4:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x-4 >= 0 or y+4 < 8:
- if board[x-2][y+2]=="o" or board[x-2][y+2]=="O":
- if board[x-3][y+3]=="-":
- if dx3==x-4 and dy3==y+4:
- board[x-3][y+3]="-"
- dmovement1(board)
- return dcapture += 1
- if x-6 >= 0 or y-6 >= 0:
- if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
- if board[x-5][y-5]=="-":
- if dx3==x-6 and dy3==y-6:
- board[x-5][y-5]="-"
- dmovement2(board)
- return dcapture +=1
- elif dx4!=x-6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4],rettel[y-6],rebmun[x-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x-6 >= 0 or y+6 < 8:
- if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
- if board[x-5][y+5]=="-":
- if dx3==x-6 and dy3==y+6:
- board[x-5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x-6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4],rettel[y+6],rebmun[y-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 and y-6 >= 0:
- if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
- if board[x+5][y-5]=="-":
- if dx3==x+6 or dy3==y-6:
- board[x+5][y-5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y-6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 or y+6 < 8:
- if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
- if board[x+5][y+5]=="-":
- if dx4==x+6 and dy4==y+6:
- board[x+5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y+6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- elif dx3!=x-4 and dy3!=y+4:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+4 < 8 and y-4 >= 0:
- if board[x+2][y-1]=="o" or board[x+2][y-2]=="O":
- if board[x+3][y-3]=="-":
- if dx3==x+4 or dy3==y-4:
- board[x+3][y-3]="-"
- dmovement1(board)
- return dcapture += 1
- if x-6 >= 0 or y-6 >= 0:
- if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
- if board[x-5][y-5]=="-":
- if dx3==x-6 and dy3==y-6:
- board[x-5][y-5]="-"
- dmovement2(board)
- return dcapture +=1
- elif dx4!=x-6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4],rettel[y-6],rebmun[x-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x-6 >= 0 or y+6 < 8:
- if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
- if board[x-5][y+5]=="-":
- if dx3==x-6 and dy3==y+6:
- board[x-5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x-6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4],rettel[y+6],rebmun[y-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 and y-6 >= 0:
- if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
- if board[x+5][y-5]=="-":
- if dx3==x+6 or dy3==y-6:
- board[x+5][y-5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y-6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 or y+6 < 8:
- if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
- if board[x+5][y+5]=="-":
- if dx4==x+6 and dy4==y+6:
- board[x+5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y+6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- elif dx3!=x+4 and dy3!=y-4:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+4 < 8 or y+4 < 8:
- if board[x+2][y+2]=="o" or board[x+2][y+2]=="O":
- if board[x+3][y+3]=="-":
- if dx3==x+4 and dy3==y+4:
- board[x+1][y+1]="-"
- dmovement1(board)
- return dcapture += 1
- if x-6 >= 0 or y-6 >= 0:
- if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
- if board[x-5][y-5]=="-":
- if dx3==x-6 and dy3==y-6:
- board[x-5][y-5]="-"
- dmovement2(board)
- return dcapture +=1
- elif dx4!=x-6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4],rettel[y-6],rebmun[x-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x-6 >= 0 or y+6 < 8:
- if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
- if board[x-5][y+5]=="-":
- if dx3==x-6 and dy3==y+6:
- board[x-5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x-6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4],rettel[y+6],rebmun[y-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 and y-6 >= 0:
- if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
- if board[x+5][y-5]=="-":
- if dx3==x+6 or dy3==y-6:
- board[x+5][y-5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y-6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 or y+6 < 8:
- if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
- if board[x+5][y+5]=="-":
- if dx4==x+6 and dy4==y+6:
- board[x+5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y+6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- elif dx3!=x+4 and dy3!=y+4:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x+4])
- move_d()
- convertdmove(dmove)
- darkcapture()
- elif dx2!=x+2 and dy2!=y+2:
- print("Invalid input. Mandatory capture on",rettel[y],rebmun[x],rettel[y+2],rebmun[x+2])
- move_d()
- convertdmove(dmove)
- darkcapture()
- else:
- continue
- else:
- continue
- else:
- continue
- def lightcapture():
- global lcapture
- lcapture = 0
- for x in range (8):
- for y in range(8):
- if board[x][y]=="x" or board[x][y]=="X":
- if x-2 >= 0 or y-2 >= 0:
- if board[x-1][y-1]=="o" or board[x-1][y-1]=="O":
- if board[x-2][y-2]=="-":
- if lx2==x-2 and ly2==y-2:
- board[x-1][y-1]="-"
- lmovement(board)
- lcapture +=1
- return lcapture
- if x-4 >= 0 or y-4 >= 0:
- if board[x-2][y-2]=="o" or board[x-2][y-2]=="O":
- if board[x-3][y-3]=="-":
- if lx3==x-4 and ly3==y-4:
- board[x-3][y-3]="-"
- dmovement1(board)
- lcapture +=1
- return lcapture
- if x-6 >= 0 or y-6 >= 0:
- if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
- if board[x-5][y-5]=="-":
- if lx3==x-6 and ly3==y-6:
- board[x-5][y-5]="-"
- lmovement2(board)
- lcapture +=1
- return lcapture
- elif lx4!=x-6 and ly4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4],rettel[y-6],rebmun[x-6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x-6 >= 0 or y+6 < 8:
- if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
- if board[x-5][y+5]=="-":
- if lx3==x-6 and ly3==y+6:
- board[x-5][y+5]="-"
- lmovement2(board)
- lcapture += 1
- return dcapture
- elif lx4!=x-6 and ly4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4],rettel[y+6],rebmun[y-6])
- move_d()
- convertlmove(lmove)
- lightcapture()
- if x+6 < 8 and y-6 >= 0:
- if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
- if board[x+5][y-5]=="-":
- if lx3==x+6 or ly3==y-6:
- board[x+5][y-5]="-"
- lmovement2(board)
- lcapture += 1
- return lcapture
- elif lx4!=x+6 and ly4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y-6],rebmun[x+6])
- move_l()
- convertdmove(lmove)
- darkcapture()
- if x+6 < 8 or y+6 < 8:
- if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
- if board[x+5][y+5]=="-":
- if lx4==x+6 and ly4==y+6:
- board[x+5][y+5]="-"
- lmovement2(board)
- lcapture += 1
- return dcapture
- elif lx4!=x+6 and ly4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y+6],rebmun[x+6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- elif lx3!=x-4 and ly3!=y-4:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x-4 >= 0 or y+4 < 8:
- if board[x-2][y+2]=="o" or board[x-2][y+2]=="O":
- if board[x-3][y+3]=="-":
- if lx3==x-4 and ly3==y+4:
- board[x-3][y+3]="-"
- lmovement1(board)
- lcapture += 1
- return lcapture
- if x-6 >= 0 or y-6 >= 0:
- if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
- if board[x-5][y-5]=="-":
- if lx3==x-6 and ly3==y-6:
- board[x-5][y-5]="-"
- lmovement2(board)
- lcapture +=1
- elif lx4!=x-6 and ly4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4],rettel[y-6],rebmun[x-6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x-6 >= 0 or y+6 < 8:
- if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
- if board[x-5][y+5]=="-":
- if lx3==x-6 and ly3==y+6:
- board[x-5][y+5]="-"
- lmovement2(board)
- lcapture += 1
- return lcapture
- elif lx4!=x-6 and ly4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4],rettel[y+6],rebmun[y-6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x+6 < 8 and y-6 >= 0:
- if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
- if board[x+5][y-5]=="-":
- if dx3==x+6 or dy3==y-6:
- board[x+5][y-5]="-"
- lmovement2(board)
- lcapture += 1
- return lcapture
- elif lx4!=x+6 and ly4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y-6],rebmun[x+6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x+6 < 8 or y+6 < 8:
- if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
- if board[x+5][y+5]=="-":
- if lx4==x+6 and ly4==y+6:
- board[x+5][y+5]="-"
- lmovement2(board)
- lcapture += 1
- return lcapture
- elif lx4!=x+6 and ly4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y+6],rebmun[x+6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- elif lx3!=x-4 and ly3!=y+4:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x+4 < 8 and y-4 >= 0:
- if board[x+2][y-2]=="o" or board[x+2][y-2]=="O":
- if board[x+3][y-3]=="-":
- if lx3==x+4 or ly3==y-4:
- board[x+3][y-3]="-"
- lmovement1(board)
- lcapture += 1
- return lcapture
- if x-6 >= 0 or y-6 >= 0:
- if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
- if board[x-5][y-5]=="-":
- if lx3==x-6 and ly3==y-6:
- board[x-5][y-5]="-"
- lmovement2(board)
- lcapture +=1
- return lcapture
- elif lx4!=x-6 and ly4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4],rettel[y-6],rebmun[x-6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x-6 >= 0 or y+6 < 8:
- if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
- if board[x-5][y+5]=="-":
- if lx3==x-6 and ly3==y+6:
- board[x-5][y+5]="-"
- lmovement2(board)
- lcapture += 1
- return lcapture
- elif lx4!=x-6 and ly4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4],rettel[y+6],rebmun[y-6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x+6 < 8 and y-6 >= 0:
- if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
- if board[x+5][y-5]=="-":
- if lx3==x+6 or ly3==y-6:
- board[x+5][y-5]="-"
- lmovement2(board)
- lcapture += 1
- return lcapture
- elif lx4!=x+6 and ly4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y-6],rebmun[x+6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x+6 < 8 or y+6 < 8:
- if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
- if board[x+5][y+5]=="-":
- if lx4==x+6 and ly4==y+6:
- board[x+5][y+5]="-"
- lmovement2(board)
- lcapture += 1
- return lcapture
- elif lx4!=x+6 and ly4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y+6],rebmun[x+6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- elif lx3!=x+4 and ly3!=y-4:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x+4 < 8 and y+4 < 8:
- if board[x+2][y+2]=="o" or board[x+2][y-2]=="O":
- if board[x+3][y+3]=="-":
- if lx3==x+4 or ly3==y+4:
- board[x+3][y+3]="-"
- lmovement1(board)
- lcapture += 1
- return lcapture
- if x-6 >= 0 or y-6 >= 0:
- if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
- if board[x-5][y-5]=="-":
- if lx3==x-6 and ly3==y-6:
- board[x-5][y-5]="-"
- lmovement2(board)
- lcapture +=1
- return lcapture
- elif lx4!=x-6 and ly4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4],rettel[y-6],rebmun[x-6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x-6 >= 0 or y+6 < 8:
- if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
- if board[x-5][y+5]=="-":
- if lx3==x-6 and ly3==y+6:
- board[x-5][y+5]="-"
- lmovement2(board)
- lcapture += 1
- return lcapture
- elif lx4!=x-6 and ly4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4],rettel[y+6],rebmun[y-6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x+6 < 8 and y-6 >= 0:
- if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
- if board[x+5][y-5]=="-":
- if lx3==x+6 or ly3==y-6:
- board[x+5][y-5]="-"
- lmovement2(board)
- return lcapture += 1
- elif lx4!=x+6 and ly4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y-6],rebmun[x+6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x+6 < 8 or y+6 < 8:
- if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
- if board[x+5][y+5]=="-":
- if lx4==x+6 and ly4==y+6:
- board[x+5][y+5]="-"
- lmovement2(board)
- return lcapture += 1
- elif lx4!=x+6 and ly4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y+6],rebmun[x+6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- elif x3!=x+4 dy3!=x+4 and dy3!=y+4:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x+4])
- move_d()
- convertlmove(lmove)
- lightcapture()
- elif lx2!=x-2 and ly2!=y-2:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[y-2],rebmun[x-2])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x-2 >= 0 or y+2 < 8:
- if board[x-1][y+1]=="o" or board[x-1][y+1]=="O":
- if board[x-2][y+2]=="-":
- if lx2==x-2 and ly2==y+2:
- board[x-1][y+1]="-"
- lmovement(board)
- lcapture += 1
- return lcapture
- if x-4 >= 0 or y-4 >= 0:
- if board[x-2][y-2]=="o" or board[x-2][y-2]=="O":
- if board[x-3][y-3]=="-":
- if dx3==x-4 and dy3==y-4:
- board[x-3][y-3]="-"
- lmovement1(board)
- lcapture +=1
- return lcapture
- if x-6 >= 0 or y-6 >= 0:
- if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
- if board[x-5][y-5]=="-":
- if dx3==x-6 and dy3==y-6:
- board[x-5][y-5]="-"
- lmovement2(board)
- lcapture +=1
- return lcapture
- elif lx4!=x-6 and ly4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4],rettel[y-6],rebmun[x-6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x-6 >= 0 or y+6 < 8:
- if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
- if board[x-5][y+5]=="-":
- if lx4==x-6 and ly4==y+6:
- board[x-5][y+5]="-"
- lmovement2(board)
- lcapture += 1
- return lcapture
- elif dx4!=x-6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4],rettel[y+6],rebmun[y-6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x+6 < 8 and y-6 >= 0:
- if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
- if board[x+5][y-5]=="-":
- if lx3==x+6 or ly3==y-6:
- board[x+5][y-5]="-"
- lmovement2(board)
- lcapture +=1
- return lcapture
- elif lx4!=x+6 and ly4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y-6],rebmun[x+6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x+6 < 8 or y+6 < 8:
- if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
- if board[x+5][y+5]=="-":
- if lx4==x+6 and ly4==y+6:
- board[x+5][y+5]="-"
- lmovement2(board)
- lcapture += 1
- return lcapture
- elif lx4!=x+6 and ly4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y+6],rebmun[x+6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- elif lx3!=x-4 and ly3!=y-4:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],number[x-4])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x-4 >= 0 or y+4 < 8:
- if board[x-2][y+2]=="o" or board[x-2][y+2]=="O":
- if board[x-3][y+3]=="-":
- if lx3==x-4 and ly3==y+4:
- board[x-3][y+3]="-"
- lmovement1(board)
- return lcapture += 1
- if x-6 >= 0 or y-6 >= 0:
- if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
- if board[x-5][y-5]=="-":
- if lx3==x-6 and ly3==y-6:
- board[x-5][y-5]="-"
- lmovement2(board)
- return lcapture +=1
- elif lx4!=x-6 and ly4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4],rettel[y-6],rebmun[x-6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x-6 >= 0 or y+6 < 8:
- if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
- if board[x-5][y+5]=="-":
- if lx3==x-6 and ly3==y+6:
- board[x-5][y+5]="-"
- lmovement2(board)
- return lcapture += 1
- elif lx4!=x-6 and ly4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4],rettel[y+6],rebmun[y-6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x+6 < 8 and y-6 >= 0:
- if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
- if board[x+5][y-5]=="-":
- if lx3==x+6 or ly3==y-6:
- board[x+5][y-5]="-"
- lmovement2(board)
- return lcapture += 1
- elif lx4!=x+6 and ly4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y-6],rebmun[x+6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x+6 < 8 or y+6 < 8:
- if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
- if board[x+5][y+5]=="-":
- if lx4==x+6 and ly4==y+6:
- board[x+5][y+5]="-"
- lmovement2(board)
- return lcapture += 1
- elif lx4!=x+6 and ly4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y+6],rebmun[x+6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- elif lx3!=x-4 and ly3!=y+4:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],number[x-4])
- move_l()
- convertlmove(dmove)
- lightcapture()
- if x+4 < 8 and y-4 >= 0:
- if board[x+2][y-1]=="o" or board[x+2][y-2]=="O":
- if board[x+3][y-3]=="-":
- if lx3==x+4 or ly3==y-4:
- board[x+3][y-3]="-"
- lmovement1(board)
- return lcapture += 1
- if x-6 >= 0 or y-6 >= 0:
- if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
- if board[x-5][y-5]=="-":
- if lx3==x-6 and ly3==y-6:
- board[x-5][y-5]="-"
- lmovement2(board)
- return lcapture +=1
- elif lx4!=x-6 and ly4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4],rettel[y-6],rebmun[x-6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x-6 >= 0 or y+6 < 8:
- if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
- if board[x-5][y+5]=="-":
- if lx3==x-6 and ly3==y+6:
- board[x-5][y+5]="-"
- lmovement2(board)
- return lcapture += 1
- elif lx4!=x-6 and ly4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4],rettel[y+6],rebmun[y-6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x+6 < 8 and y-6 >= 0:
- if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
- if board[x+5][y-5]=="-":
- if lx3==x+6 or ly3==y-6:
- board[x+5][y-5]="-"
- lmovement2(board)
- return lcapture += 1
- elif lx4!=x+6 and ly4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y-6],rebmun[x+6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x+6 < 8 or y+6 < 8:
- if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
- if board[x+5][y+5]=="-":
- if lx4==x+6 and ly4==y+6:
- board[x+5][y+5]="-"
- lmovement2(board)
- return lcapture += 1
- elif lx4!=x+6 and ly4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y+6],rebmun[x+6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- elif lx3!=x+4 and ly3!=y-4:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],number[x+4])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x+4 < 8 or y+4 < 8:
- if board[x+2][y+2]=="o" or board[x+2][y+2]=="O":
- if board[x+3][y+3]=="-":
- if lx3==x+4 and ly3==y+4:
- board[x+1][y+1]="-"
- lmovement1(board)
- return lcapture += 1
- if x-6 >= 0 or y-6 >= 0:
- if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
- if board[x-5][y-5]=="-":
- if lx3==x-6 and ly3==y-6:
- board[x-5][y-5]="-"
- lmovement2(board)
- return lcapture +=1
- elif lx4!=x-6 and ly4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4],rettel[y-6],rebmun[x-6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x-6 >= 0 or y+6 < 8:
- if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
- if board[x-5][y+5]=="-":
- if lx3==x-6 and ly3==y+6:
- board[x-5][y+5]="-"
- lmovement2(board)
- return lcapture += 1
- elif lx4!=x-6 and ly4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4],rettel[y+6],rebmun[y-6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x+6 < 8 and y-6 >= 0:
- if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
- if board[x+5][y-5]=="-":
- if lx3==x+6 or ly3==y-6:
- board[x+5][y-5]="-"
- lmovement2(board)
- return lcapture += 1
- elif lx4!=x+6 and ly4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y-6],rebmun[x+6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x+6 < 8 or y+6 < 8:
- if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
- if board[x+5][y+5]=="-":
- if lx4==x+6 and ly4==y+6:
- board[x+5][y+5]="-"
- lmovement2(board)
- return lcapture += 1
- elif lx4!=x+6 and ly4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y+6],rebmun[x+6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- elif lx3!=x+4 and ly3!=y+4:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],number[x+4])
- move_l()
- convertlmove(lmove)
- lightcapture()
- elif lx2!=x-2 or ly2!=y+2:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x],rettel[y+2],rebmun[x-2])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x+2 < 8 and y-2 >= 0:
- if board[x+1][y-1]=="o" or board[x+1][y-1]=="O":
- if board[x+2][y-2]=="-":
- if dx2==x+2 or dy2==y-2:
- board[x+1][y-1]="-"
- lmovement(board)
- return lcapture += 1
- if x-4 >= 0 or y-4 >= 0:
- if board[x-2][y-2]=="o" or board[x-2][y-2]=="O":
- if board[x-3][y-3]=="-":
- if lx3==x-4 and ly3==y-4:
- board[x-3][y-3]="-"
- lmovement1(board)
- return lcapture +=1
- if x-6 >= 0 or y-6 >= 0:
- if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
- if board[x-5][y-5]=="-":
- if lx3==x-6 and ly3==y-6:
- board[x-5][y-5]="-"
- lmovement2(board)
- return lcapture +=1
- elif lx4!=x-6 and ly4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4],rettel[y-6],rebmun[x-6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x-6 >= 0 or y+6 < 8:
- if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
- if board[x-5][y+5]=="-":
- if lx3==x-6 and ly3==y+6:
- board[x-5][y+5]="-"
- lmovement2(board)
- return lcapture += 1
- elif lx4!=x-6 and ly4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4],rettel[y+6],rebmun[y-6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x+6 < 8 and y-6 >= 0:
- if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
- if board[x+5][y-5]=="-":
- if lx3==x+6 or ly3==y-6:
- board[x+5][y-5]="-"
- lmovement2(board)
- return lcapture += 1
- elif lx4!=x+6 and ly4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y-6],rebmun[x+6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x+6 < 8 or y+6 < 8:
- if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
- if board[x+5][y+5]=="-":
- if lx4==x+6 and ly4==y+6:
- board[x+5][y+5]="-"
- lmovement2(board)
- return lcapture += 1
- elif lx4!=x+6 and ly4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y+6],rebmun[x+6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- elif lx3!=x-4 and ly3!=y-4:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x-4 >= 0 or y+4 < 8:
- if board[x-2][y+2]=="o" or board[x-2][y+2]=="O":
- if board[x-3][y+3]=="-":
- if lx3==x-4 and ly3==y+4:
- board[x-3][y+3]="-"
- lmovement1(board)
- return lcapture += 1
- if x-6 >= 0 or y-6 >= 0:
- if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
- if board[x-5][y-5]=="-":
- if lx3==x-6 and ly3==y-6:
- board[x-5][y-5]="-"
- lmovement2(board)
- return lcapture +=1
- elif lx4!=x-6 and ly4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4],rettel[y-6],rebmun[x-6])
- move_l()
- convertlmove(lmove)
- lightcapture()
- if x-6 >= 0 or y+6 < 8:
- if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
- if board[x-5][y+5]=="-":
- if dx3==x-6 and dy3==y+6:
- board[x-5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x-6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4],rettel[y+6],rebmun[y-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 and y-6 >= 0:
- if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
- if board[x+5][y-5]=="-":
- if dx3==x+6 or dy3==y-6:
- board[x+5][y-5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y-6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 or y+6 < 8:
- if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
- if board[x+5][y+5]=="-":
- if dx4==x+6 and dy4==y+6:
- board[x+5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y+6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- elif dx3!=x-4 and dy3!=y+4:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+4 < 8 and y-4 >= 0:
- if board[x+2][y-1]=="o" or board[x+2][y-2]=="O":
- if board[x+3][y-3]=="-":
- if dx3==x+4 or dy3==y-4:
- board[x+3][y-3]="-"
- dmovement1(board)
- return dcapture += 1
- if x-6 >= 0 or y-6 >= 0:
- if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
- if board[x-5][y-5]=="-":
- if dx3==x-6 and dy3==y-6:
- board[x-5][y-5]="-"
- dmovement2(board)
- return dcapture +=1
- elif dx4!=x-6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4],rettel[y-6],rebmun[x-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x-6 >= 0 or y+6 < 8:
- if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
- if board[x-5][y+5]=="-":
- if dx3==x-6 and dy3==y+6:
- board[x-5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x-6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4],rettel[y+6],rebmun[y-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 and y-6 >= 0:
- if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
- if board[x+5][y-5]=="-":
- if dx3==x+6 or dy3==y-6:
- board[x+5][y-5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y-6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 or y+6 < 8:
- if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
- if board[x+5][y+5]=="-":
- if dx4==x+6 and dy4==y+6:
- board[x+5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y+6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- elif dx3!=x+4 and dy3!=y-4:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+4 < 8 or y+4 < 8:
- if board[x+2][y+2]=="o" or board[x+2][y+2]=="O":
- if board[x+3][y+3]=="-":
- if dx3==x+4 and dy3==y+4:
- board[x+1][y+1]="-"
- dmovement1(board)
- return dcapture += 1
- if x-6 >= 0 or y-6 >= 0:
- if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
- if board[x-5][y-5]=="-":
- if dx3==x-6 and dy3==y-6:
- board[x-5][y-5]="-"
- dmovement2(board)
- return dcapture +=1
- elif dx4!=x-6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4],rettel[y-6],rebmun[x-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x-6 >= 0 or y+6 < 8:
- if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
- if board[x-5][y+5]=="-":
- if dx3==x-6 and dy3==y+6:
- board[x-5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x-6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4],rettel[y+6],rebmun[y-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 and y-6 >= 0:
- if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
- if board[x+5][y-5]=="-":
- if dx3==x+6 or dy3==y-6:
- board[x+5][y-5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y-6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 or y+6 < 8:
- if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
- if board[x+5][y+5]=="-":
- if dx4==x+6 and dy4==y+6:
- board[x+5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y+6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- elif dx3!=x+4 and dy3!=y+4:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x+4])
- move_d()
- convertdmove(dmove)
- darkcapture()
- elif dx2!=x+2 and dy2!=y-2:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x],rettel[y-2],rebmun[x+2])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+2 < 8 or y+2 < 8:
- if board[x+1][y+1]=="o" or board[x+1][y+1]=="O":
- if board[x+2][y+2]=="-":
- if dx2==x+2 and dy2==x+2:
- board[x+1][y+1]="-"
- dmovement(board)
- return dcapture +=1
- if x-4 >= 0 or y-4 >= 0:
- if board[x-2][y-2]=="o" or board[x-2][y-2]=="O":
- if board[x-3][y-3]=="-":
- if dx3==x-4 and dy3==y-4:
- board[x-3][y-3]="-"
- dmovement1(board)
- return dcapture +=1
- if x-6 >= 0 or y-6 >= 0:
- if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
- if board[x-5][y-5]=="-":
- if dx3==x-6 and dy3==y-6:
- board[x-5][y-5]="-"
- dmovement2(board)
- return dcapture +=1
- elif dx4!=x-6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4],rettel[y-6],rebmun[x-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x-6 >= 0 or y+6 < 8:
- if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
- if board[x-5][y+5]=="-":
- if dx3==x-6 and dy3==y+6:
- board[x-5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x-6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4],rettel[y+6],rebmun[y-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 and y-6 >= 0:
- if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
- if board[x+5][y-5]=="-":
- if dx3==x+6 or dy3==y-6:
- board[x+5][y-5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y-6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 or y+6 < 8:
- if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
- if board[x+5][y+5]=="-":
- if dx4==x+6 and dy4==y+6:
- board[x+5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y+6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- elif dx3!=x-4 and dy3!=y-4:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x-4 >= 0 or y+4 < 8:
- if board[x-2][y+2]=="o" or board[x-2][y+2]=="O":
- if board[x-3][y+3]=="-":
- if dx3==x-4 and dy3==y+4:
- board[x-3][y+3]="-"
- dmovement1(board)
- return dcapture += 1
- if x-6 >= 0 or y-6 >= 0:
- if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
- if board[x-5][y-5]=="-":
- if dx3==x-6 and dy3==y-6:
- board[x-5][y-5]="-"
- dmovement2(board)
- return dcapture +=1
- elif dx4!=x-6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4],rettel[y-6],rebmun[x-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x-6 >= 0 or y+6 < 8:
- if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
- if board[x-5][y+5]=="-":
- if dx3==x-6 and dy3==y+6:
- board[x-5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x-6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4],rettel[y+6],rebmun[y-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 and y-6 >= 0:
- if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
- if board[x+5][y-5]=="-":
- if dx3==x+6 or dy3==y-6:
- board[x+5][y-5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y-6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 or y+6 < 8:
- if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
- if board[x+5][y+5]=="-":
- if dx4==x+6 and dy4==y+6:
- board[x+5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y+6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- elif dx3!=x-4 and dy3!=y+4:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+4 < 8 and y-4 >= 0:
- if board[x+2][y-1]=="o" or board[x+2][y-2]=="O":
- if board[x+3][y-3]=="-":
- if dx3==x+4 or dy3==y-4:
- board[x+3][y-3]="-"
- dmovement1(board)
- return dcapture += 1
- if x-6 >= 0 or y-6 >= 0:
- if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
- if board[x-5][y-5]=="-":
- if dx3==x-6 and dy3==y-6:
- board[x-5][y-5]="-"
- dmovement2(board)
- return dcapture +=1
- elif dx4!=x-6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4],rettel[y-6],rebmun[x-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x-6 >= 0 or y+6 < 8:
- if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
- if board[x-5][y+5]=="-":
- if dx3==x-6 and dy3==y+6:
- board[x-5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x-6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4],rettel[y+6],rebmun[y-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 and y-6 >= 0:
- if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
- if board[x+5][y-5]=="-":
- if dx3==x+6 or dy3==y-6:
- board[x+5][y-5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y-6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 or y+6 < 8:
- if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
- if board[x+5][y+5]=="-":
- if dx4==x+6 and dy4==y+6:
- board[x+5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y+6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- elif dx3!=x+4 and dy3!=y-4:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+4 < 8 or y+4 < 8:
- if board[x+2][y+2]=="o" or board[x+2][y+2]=="O":
- if board[x+3][y+3]=="-":
- if dx3==x+4 and dy3==y+4:
- board[x+1][y+1]="-"
- dmovement1(board)
- return dcapture += 1
- if x-6 >= 0 or y-6 >= 0:
- if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
- if board[x-5][y-5]=="-":
- if dx3==x-6 and dy3==y-6:
- board[x-5][y-5]="-"
- dmovement2(board)
- return dcapture +=1
- elif dx4!=x-6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4],rettel[y-6],rebmun[x-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x-6 >= 0 or y+6 < 8:
- if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
- if board[x-5][y+5]=="-":
- if dx3==x-6 and dy3==y+6:
- board[x-5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x-6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4],rettel[y+6],rebmun[y-6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 and y-6 >= 0:
- if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
- if board[x+5][y-5]=="-":
- if dx3==x+6 or dy3==y-6:
- board[x+5][y-5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y-6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y-6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- if x+6 < 8 or y+6 < 8:
- if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
- if board[x+5][y+5]=="-":
- if dx4==x+6 and dy4==y+6:
- board[x+5][y+5]="-"
- dmovement2(board)
- return dcapture += 1
- elif dx4!=x+6 and dy4!=y+6:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4],rettel[y+6],rebmun[x+6])
- move_d()
- convertdmove(dmove)
- darkcapture()
- elif dx3!=x+4 and dy3!=y+4:
- print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x+4])
- move_d()
- convertdmove(dmove)
- darkcapture()
- elif dx2!=x+2 and dy2!=y+2:
- print("Invalid input. Mandatory capture on",rettel[y],rebmun[x],rettel[y+2],rebmun[x+2])
- move_d()
- convertdmove(dmove)
- darkcapture()
- else:
- continue
- else:
- continue
- else:
- continue
Add Comment
Please, Sign In to add comment