aIexandria

MPagodNaAkomasmahabangcode

Sep 25th, 2019
710
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 190.91 KB | None | 0 0
  1. rint ("Welcome to Checkers!", "\n")
  2. board= [ ["-" , "x" , "-" , "x" , "-" , "x", "-", "x" , 8 ] ,
  3. ["x" , "-" , "x" , "-" , "x" , "-", "x", "-" , 7 ],
  4. ["-" , "x" , "-" , "x" , "-" , "x", "-", "x" , 6 ],
  5. ["-" , "-" , "-" , "-" , "-" , "-", "-", "-" , 5 ],
  6. ["-" , "-" , "-" , "-" , "-" , "-", "-", "-" , 4 ],
  7. ["o" , "-" , "o" , "-" , "o" , "-", "o", "-" , 3 ],
  8. ["-" , "o" , "-" , "o" , "-" , "o", "-", "o" , 2 ],
  9. ["o" , "-" , "o" , "-" , "o" , "-", "o", "-" , 1 ],
  10. ["A" , "B" , "C" , "D" , "E" , "F", "G", "H"] ]
  11. for i in range (len(board)) :
  12. for j in range (len(board[i])) :
  13. print (board[i][j], end = " ")
  14. print ()
  15.  
  16. letter = {"A":0, "B":1 , "C":2 , "D":3 , "E":4 , "F":5 , "G":6, "H":7}
  17. number = {"8":0, "7":1, "6":2, "5":3, "4":4, "3":5, "2":6, "1":7}
  18. rettel = {0:"A", 1:"B", 2:"C", 3:"D", 4:"E", 5:"F", 6:"G", 7:"H"}
  19. rebmun = {0:"8", 1:"7", 2:"6", 3:"5", 4:"4", 5:"3", 6:"2", 7:"1"}
  20.  
  21. def move_d():
  22. global dmove
  23. dmove = input("Dark pieces to play. Enter your move:")
  24. return dmove
  25.  
  26.  
  27. def move_l():
  28. global lmove
  29. lmove = input("Light pieces to play. Enter your move:")
  30. return lmove
  31.  
  32.  
  33.  
  34. def convertdmove(dmove):
  35.  
  36. da = dmove[0]
  37. db = dmove[1]
  38. dc = dmove[3]
  39. dd = dmove[4]
  40. global dx1
  41. global dy1
  42. global dx2
  43. global dy2
  44. dx1 = number[db]
  45. dx1 = int(dx1)
  46. dy1 = letter[da]
  47. dy1 = int(dy1)
  48. dx2 = number[dd]
  49. dx2 = int(dx2)
  50. dy2 = letter[dc]
  51. dy2 = int(dy2)
  52. return dx1,dy1,dx2,dy2
  53.  
  54.  
  55.  
  56. def convertlmove(lmove):
  57.  
  58. la = lmove[0]
  59. lb = lmove[1]
  60. lc = lmove[3]
  61. ld = lmove[4]
  62. global lx1
  63. global ly1
  64. global lx2
  65. global ly2
  66. lx1 = number[lb]
  67. lx1 = int(lx1)
  68. ly1 = letter[la]
  69. ly1 = int(ly1)
  70. lx2 = number[ld]
  71. lx2 = int(lx2)
  72. ly2 = letter[lc]
  73. ly2 = int(ly2)
  74.  
  75. #if len(lmove)>5:
  76.  
  77.  
  78.  
  79. def dmovement(board):
  80. board[dx1][dy1],board[dx2][dy2]=board[dx2][dy2],board[dx1][dy1]
  81. return board
  82.  
  83. def dmovement1(board):
  84. board[dx1][dy1],board[dx2][dy2]=board[dx2][dy2],board[dx1][dy1]
  85. board[dx2][dy2],board[dx3][dy3]=board[dx3][dy3],board[dx2][dy2]
  86. return board
  87.  
  88. #def dmovement2(board):
  89. #board[dx1][dy1],board[dx2][dy2]=board[dx2][dy2],board[dx1][dy1]
  90. #board[dx2][dy2],board[dx3][dy3]=board[dx3][dy3],board[dx2][dy2]
  91. #board[dx3][dy3],board[dx4][dy4]=board[dx4][dy4],board[dx3][dy3]
  92. #return board
  93.  
  94.  
  95. def lmovement(board):
  96. board[lx1][ly1],board[lx2][ly2]=board[lx2][ly2],board[lx1][ly1]
  97. return board
  98.  
  99.  
  100.  
  101. def validity_check_d():
  102. if len(dmove)>=5:
  103. if board[dx1][dy1]=="x":
  104. if dx2==dx1+1 and dy2==dy1-1:
  105. dmovement(board)
  106. elif dx2==dx1+1 and dy2==dy1+1:
  107. dmovement(board)
  108. elif dx2==dx1+2 or dx2==dx1-2 or dy2==dy1-2 or dy2==dy1+2:
  109. darkcapture()
  110. 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:
  111. print("Invalid input.Try again.")
  112. move_d()
  113. convertdmove(dmove)
  114. validity_check_d()
  115. elif board[dx1][dy1]!="x":
  116. print("Invalid input. Wrong piece. Try again.")
  117. move_d()
  118. convertdmove(dmove)
  119. validity_check_d()
  120. elif len(dmove)<5:
  121. print("Invalid input. Try again.")
  122. move_d()
  123. convertdmove(dmove)
  124. validity_check_d()
  125. elif dmove=="END" or dmove=="end" or dmove=="End":
  126. end()
  127.  
  128. def validity_check_l():
  129. if len(lmove)>=5:
  130. if board[lx1][ly1]=="o":
  131. if lx2==lx1-1 and ly2==ly1-1:
  132. lmovement(board)
  133. elif lx2==lx1-1 and ly2==ly1+1:
  134. lmovement(board)
  135. elif lx2==lx1+2 or lx2==lx1-2 or ly2==ly1-2 or ly2==ly1+2:
  136. lightcapture()
  137. elif lx2!=lx1+1 or ly2!=ly1+1 or ly2!=ly1-1:
  138. print("Invalid input.Try again.")
  139. move_l()
  140. convertlmove(lmove)
  141. validity_check_l()
  142. elif board[lx1][ly1]!="o":
  143. print("Invalid input. Wrong piece. Try again.")
  144. move_l()
  145. convertlmove(lmove)
  146. validity_check_l()
  147. elif lmove=="END" or lmove=="end" or lmove=="End":
  148. end()
  149. elif len(lmove)<5 and not ("END" or "end" or "End"):
  150. print("Invalid input. Try again.")
  151. move_l()
  152. convertlmove(lmove)
  153. validity_check_l()
  154.  
  155.  
  156. def darkcapture():
  157. global dcapture
  158. dcapture = 0
  159. for x in range (8):
  160. for y in range(8):
  161. if board[x][y]=="x" or board[x][y]=="X":
  162. if x-2 >= 0 or y-2 >= 0:
  163. if board[x-1][y-1]=="o" or board[x-1][y-1]=="O":
  164. if board[x-2][y-2]=="-":
  165. if dx2==x-2 and dy2==y-2:
  166. board[x-1][y-1]="-"
  167. dmovement(board)
  168. dcapture +=1
  169. return dcapture
  170. if x-4 >= 0 or y-4 >= 0:
  171. if board[x-2][y-2]=="o" or board[x-2][y-2]=="O":
  172. if board[x-3][y-3]=="-":
  173. if dx3==x-4 and dy3==y-4:
  174. board[x-3][y-3]="-"
  175. dmovement1(board)
  176. dcapture +=1
  177. return dcapture
  178. if x-6 >= 0 or y-6 >= 0:
  179. if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
  180. if board[x-5][y-5]=="-":
  181. if dx3==x-6 and dy3==y-6:
  182. board[x-5][y-5]="-"
  183. dmovement2(board)
  184. dcapture +=1
  185. return dcapture
  186. elif dx4!=x-6 and dy4!=y-6:
  187. 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])
  188. move_d()
  189. convertdmove(dmove)
  190. darkcapture()
  191. if x-6 >= 0 or y+6 < 8:
  192. if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
  193. if board[x-5][y+5]=="-":
  194. if dx3==x-6 and dy3==y+6:
  195. board[x-5][y+5]="-"
  196. dmovement2(board)
  197. dcapture += 1
  198. return dcapture
  199. elif dx4!=x-6 and dy4!=y+6:
  200. 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])
  201. move_d()
  202. convertdmove(dmove)
  203. darkcapture()
  204. if x+6 < 8 and y-6 >= 0:
  205. if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
  206. if board[x+5][y-5]=="-":
  207. if dx3==x+6 or dy3==y-6:
  208. board[x+5][y-5]="-"
  209. dmovement2(board)
  210. dcapture += 1
  211. return dcapture
  212. elif dx4!=x+6 and dy4!=y-6:
  213. 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])
  214. move_d()
  215. convertdmove(dmove)
  216. darkcapture()
  217. if x+6 < 8 or y+6 < 8:
  218. if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
  219. if board[x+5][y+5]=="-":
  220. if dx4==x+6 and dy4==y+6:
  221. board[x+5][y+5]="-"
  222. dmovement2(board)
  223. dcapture += 1
  224. return dcapture
  225. elif dx4!=x+6 and dy4!=y+6:
  226. 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])
  227. move_d()
  228. convertdmove(dmove)
  229. darkcapture()
  230. elif dx3!=x-4 and dy3!=y-4:
  231. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4])
  232. move_d()
  233. convertdmove(dmove)
  234. darkcapture()
  235.  
  236. if x-4 >= 0 or y+4 < 8:
  237. if board[x-2][y+2]=="o" or board[x-2][y+2]=="O":
  238. if board[x-3][y+3]=="-":
  239. if dx3==x-4 and dy3==y+4:
  240. board[x-3][y+3]="-"
  241. dmovement1(board)
  242. dcapture += 1
  243. return dcapture
  244. if x-6 >= 0 or y-6 >= 0:
  245. if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
  246. if board[x-5][y-5]=="-":
  247. if dx3==x-6 and dy3==y-6:
  248. board[x-5][y-5]="-"
  249. dmovement2(board)
  250. dcapture +=1
  251. elif dx4!=x-6 and dy4!=y-6:
  252. 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])
  253. move_d()
  254. convertdmove(dmove)
  255. darkcapture()
  256. if x-6 >= 0 or y+6 < 8:
  257. if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
  258. if board[x-5][y+5]=="-":
  259. if dx3==x-6 and dy3==y+6:
  260. board[x-5][y+5]="-"
  261. dmovement2(board)
  262. dcapture += 1
  263. return dcapture
  264. elif dx4!=x-6 and dy4!=y+6:
  265. 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])
  266. move_d()
  267. convertdmove(dmove)
  268. darkcapture()
  269. if x+6 < 8 and y-6 >= 0:
  270. if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
  271. if board[x+5][y-5]=="-":
  272. if dx3==x+6 or dy3==y-6:
  273. board[x+5][y-5]="-"
  274. dmovement2(board)
  275. dcapture += 1
  276. return dcapture
  277. elif dx4!=x+6 and dy4!=y-6:
  278. 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])
  279. move_d()
  280. convertdmove(dmove)
  281. darkcapture()
  282. if x+6 < 8 or y+6 < 8:
  283. if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
  284. if board[x+5][y+5]=="-":
  285. if dx4==x+6 and dy4==y+6:
  286. board[x+5][y+5]="-"
  287. dmovement2(board)
  288. dcapture += 1
  289. return dcapture
  290. elif dx4!=x+6 and dy4!=y+6:
  291. 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])
  292. move_d()
  293. convertdmove(dmove)
  294. darkcapture()
  295. elif dx3!=x-4 and dy3!=y+4:
  296. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4])
  297. move_d()
  298. convertdmove(dmove)
  299. darkcapture()
  300. if x+4 < 8 and y-4 >= 0:
  301. if board[x+2][y-2]=="o" or board[x+2][y-2]=="O":
  302. if board[x+3][y-3]=="-":
  303. if dx3==x+4 or dy3==y-4:
  304. board[x+3][y-3]="-"
  305. dmovement1(board)
  306. dcapture += 1
  307. return dcapture
  308. if x-6 >= 0 or y-6 >= 0:
  309. if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
  310. if board[x-5][y-5]=="-":
  311. if dx3==x-6 and dy3==y-6:
  312. board[x-5][y-5]="-"
  313. dmovement2(board)
  314. dcapture +=1
  315. return dcapture
  316. elif dx4!=x-6 and dy4!=y-6:
  317. 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])
  318. move_d()
  319. convertdmove(dmove)
  320. darkcapture()
  321. if x-6 >= 0 or y+6 < 8:
  322. if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
  323. if board[x-5][y+5]=="-":
  324. if dx3==x-6 and dy3==y+6:
  325. board[x-5][y+5]="-"
  326. dmovement2(board)
  327. dcapture += 1
  328. return dcapture
  329. elif dx4!=x-6 and dy4!=y+6:
  330. 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])
  331. move_d()
  332. convertdmove(dmove)
  333. darkcapture()
  334. if x+6 < 8 and y-6 >= 0:
  335. if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
  336. if board[x+5][y-5]=="-":
  337. if dx3==x+6 or dy3==y-6:
  338. board[x+5][y-5]="-"
  339. dmovement2(board)
  340. dcapture += 1
  341. return dcapture
  342. elif dx4!=x+6 and dy4!=y-6:
  343. 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])
  344. move_d()
  345. convertdmove(dmove)
  346. darkcapture()
  347. if x+6 < 8 or y+6 < 8:
  348. if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
  349. if board[x+5][y+5]=="-":
  350. if dx4==x+6 and dy4==y+6:
  351. board[x+5][y+5]="-"
  352. dmovement2(board)
  353. return dcapture += 1
  354. elif dx4!=x+6 and dy4!=y+6:
  355. 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])
  356. move_d()
  357. convertdmove(dmove)
  358. darkcapture()
  359. elif dx3!=x+4 and dy3!=y-4:
  360. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4])
  361. move_d()
  362. convertdmove(dmove)
  363. darkcapture()
  364. if x+4 < 8 and y+4 < 8:
  365. if board[x+2][y+2]=="o" or board[x+2][y-2]=="O":
  366. if board[x+3][y+3]=="-":
  367. if dx3==x+4 or dy3==y+4:
  368. board[x+3][y+3]="-"
  369. dmovement1(board)
  370. return dcapture += 1
  371. if x-6 >= 0 or y-6 >= 0:
  372. if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
  373. if board[x-5][y-5]=="-":
  374. if dx3==x-6 and dy3==y-6:
  375. board[x-5][y-5]="-"
  376. dmovement2(board)
  377. return dcapture +=1
  378. elif dx4!=x-6 and dy4!=y-6:
  379. 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])
  380. move_d()
  381. convertdmove(dmove)
  382. darkcapture()
  383. if x-6 >= 0 or y+6 < 8:
  384. if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
  385. if board[x-5][y+5]=="-":
  386. if dx3==x-6 and dy3==y+6:
  387. board[x-5][y+5]="-"
  388. dmovement2(board)
  389. return dcapture += 1
  390. elif dx4!=x-6 and dy4!=y+6:
  391. 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])
  392. move_d()
  393. convertdmove(dmove)
  394. darkcapture()
  395. if x+6 < 8 and y-6 >= 0:
  396. if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
  397. if board[x+5][y-5]=="-":
  398. if dx3==x+6 or dy3==y-6:
  399. board[x+5][y-5]="-"
  400. dmovement2(board)
  401. return dcapture += 1
  402. elif dx4!=x+6 and dy4!=y-6:
  403. 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])
  404. move_d()
  405. convertdmove(dmove)
  406. darkcapture()
  407. if x+6 < 8 or y+6 < 8:
  408. if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
  409. if board[x+5][y+5]=="-":
  410. if dx4==x+6 and dy4==y+6:
  411. board[x+5][y+5]="-"
  412. dmovement2(board)
  413. return dcapture += 1
  414. elif dx4!=x+6 and dy4!=y+6:
  415. 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])
  416. move_d()
  417. convertdmove(dmove)
  418. darkcapture()
  419.  
  420. elif dx3!=x+4 and dy3!=y+4:
  421. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x+4])
  422. move_d()
  423. convertdmove(dmove)
  424. darkcapture()
  425. elif dx2!=x-2 and dy2!=y-2:
  426. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[y-2],rebmun[x-2])
  427. move_d()
  428. convertdmove(dmove)
  429. darkcapture()
  430.  
  431. if x-2 >= 0 or y+2 < 8:
  432. if board[x-1][y+1]=="o" or board[x-1][y+1]=="O":
  433. if board[x-2][y+2]=="-":
  434. if dx2==x-2 and dy2==y+2:
  435. board[x-1][y+1]="-"
  436. dmovement(board)
  437. return dcapture += 1
  438. if x-4 >= 0 or y-4 >= 0:
  439. if board[x-2][y-2]=="o" or board[x-2][y-2]=="O":
  440. if board[x-3][y-3]=="-":
  441. if dx3==x-4 and dy3==y-4:
  442. board[x-3][y-3]="-"
  443. dmovement1(board)
  444. return dcapture +=1
  445. if x-6 >= 0 or y-6 >= 0:
  446. if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
  447. if board[x-5][y-5]=="-":
  448. if dx3==x-6 and dy3==y-6:
  449. board[x-5][y-5]="-"
  450. dmovement2(board)
  451. return dcapture +=1
  452. elif dx4!=x-6 and dy4!=y-6:
  453. 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])
  454. move_d()
  455. convertdmove(dmove)
  456. darkcapture()
  457. if x-6 >= 0 or y+6 < 8:
  458. if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
  459. if board[x-5][y+5]=="-":
  460. if dx3==x-6 and dy3==y+6:
  461. board[x-5][y+5]="-"
  462. dmovement2(board)
  463. return dcapture += 1
  464. elif dx4!=x-6 and dy4!=y+6:
  465. 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])
  466. move_d()
  467. convertdmove(dmove)
  468. darkcapture()
  469. if x+6 < 8 and y-6 >= 0:
  470. if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
  471. if board[x+5][y-5]=="-":
  472. if dx3==x+6 or dy3==y-6:
  473. board[x+5][y-5]="-"
  474. dmovement2(board)
  475. return dcapture += 1
  476. elif dx4!=x+6 and dy4!=y-6:
  477. 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])
  478. move_d()
  479. convertdmove(dmove)
  480. darkcapture()
  481. if x+6 < 8 or y+6 < 8:
  482. if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
  483. if board[x+5][y+5]=="-":
  484. if dx4==x+6 and dy4==y+6:
  485. board[x+5][y+5]="-"
  486. dmovement2(board)
  487. return dcapture += 1
  488. elif dx4!=x+6 and dy4!=y+6:
  489. 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])
  490. move_d()
  491. convertdmove(dmove)
  492. darkcapture()
  493. elif dx3!=x-4 and dy3!=y-4:
  494. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],number[x-4])
  495. move_d()
  496. convertdmove(dmove)
  497. darkcapture()
  498. if x-4 >= 0 or y+4 < 8:
  499. if board[x-2][y+2]=="o" or board[x-2][y+2]=="O":
  500. if board[x-3][y+3]=="-":
  501. if dx3==x-4 and dy3==y+4:
  502. board[x-3][y+3]="-"
  503. dmovement1(board)
  504. return dcapture += 1
  505. if x-6 >= 0 or y-6 >= 0:
  506. if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
  507. if board[x-5][y-5]=="-":
  508. if dx3==x-6 and dy3==y-6:
  509. board[x-5][y-5]="-"
  510. dmovement2(board)
  511. return dcapture +=1
  512. elif dx4!=x-6 and dy4!=y-6:
  513. 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])
  514. move_d()
  515. convertdmove(dmove)
  516. darkcapture()
  517. if x-6 >= 0 or y+6 < 8:
  518. if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
  519. if board[x-5][y+5]=="-":
  520. if dx3==x-6 and dy3==y+6:
  521. board[x-5][y+5]="-"
  522. dmovement2(board)
  523. return dcapture += 1
  524. elif dx4!=x-6 and dy4!=y+6:
  525. 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])
  526. move_d()
  527. convertdmove(dmove)
  528. darkcapture()
  529. if x+6 < 8 and y-6 >= 0:
  530. if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
  531. if board[x+5][y-5]=="-":
  532. if dx3==x+6 or dy3==y-6:
  533. board[x+5][y-5]="-"
  534. dmovement2(board)
  535. return dcapture += 1
  536. elif dx4!=x+6 and dy4!=y-6:
  537. 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])
  538. move_d()
  539. convertdmove(dmove)
  540. darkcapture()
  541. if x+6 < 8 or y+6 < 8:
  542. if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
  543. if board[x+5][y+5]=="-":
  544. if dx4==x+6 and dy4==y+6:
  545. board[x+5][y+5]="-"
  546. dmovement2(board)
  547. return dcapture += 1
  548. elif dx4!=x+6 and dy4!=y+6:
  549. 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])
  550. move_d()
  551. convertdmove(dmove)
  552. darkcapture()
  553. elif dx3!=x-4 and dy3!=y+4:
  554. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],number[x-4])
  555. move_d()
  556. convertdmove(dmove)
  557. darkcapture()
  558. if x+4 < 8 and y-4 >= 0:
  559. if board[x+2][y-1]=="o" or board[x+2][y-2]=="O":
  560. if board[x+3][y-3]=="-":
  561. if dx3==x+4 or dy3==y-4:
  562. board[x+3][y-3]="-"
  563. dmovement1(board)
  564. return dcapture += 1
  565. if x-6 >= 0 or y-6 >= 0:
  566. if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
  567. if board[x-5][y-5]=="-":
  568. if dx3==x-6 and dy3==y-6:
  569. board[x-5][y-5]="-"
  570. dmovement2(board)
  571. return dcapture +=1
  572. elif dx4!=x-6 and dy4!=y-6:
  573. 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])
  574. move_d()
  575. convertdmove(dmove)
  576. darkcapture()
  577. if x-6 >= 0 or y+6 < 8:
  578. if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
  579. if board[x-5][y+5]=="-":
  580. if dx3==x-6 and dy3==y+6:
  581. board[x-5][y+5]="-"
  582. dmovement2(board)
  583. return dcapture += 1
  584. elif dx4!=x-6 and dy4!=y+6:
  585. 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])
  586. move_d()
  587. convertdmove(dmove)
  588. darkcapture()
  589. if x+6 < 8 and y-6 >= 0:
  590. if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
  591. if board[x+5][y-5]=="-":
  592. if dx3==x+6 or dy3==y-6:
  593. board[x+5][y-5]="-"
  594. dmovement2(board)
  595. return dcapture += 1
  596. elif dx4!=x+6 and dy4!=y-6:
  597. 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])
  598. move_d()
  599. convertdmove(dmove)
  600. darkcapture()
  601. if x+6 < 8 or y+6 < 8:
  602. if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
  603. if board[x+5][y+5]=="-":
  604. if dx4==x+6 and dy4==y+6:
  605. board[x+5][y+5]="-"
  606. dmovement2(board)
  607. return dcapture += 1
  608. elif dx4!=x+6 and dy4!=y+6:
  609. 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])
  610. move_d()
  611. convertdmove(dmove)
  612. darkcapture()
  613. elif dx3!=x+4 and dy3!=y-4:
  614. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],number[x+4])
  615. move_d()
  616. convertdmove(dmove)
  617. darkcapture()
  618. if x+4 < 8 or y+4 < 8:
  619. if board[x+2][y+2]=="o" or board[x+2][y+2]=="O":
  620. if board[x+3][y+3]=="-":
  621. if dx3==x+4 and dy3==y+4:
  622. board[x+1][y+1]="-"
  623. dmovement1(board)
  624. return dcapture += 1
  625. if x-6 >= 0 or y-6 >= 0:
  626. if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
  627. if board[x-5][y-5]=="-":
  628. if dx3==x-6 and dy3==y-6:
  629. board[x-5][y-5]="-"
  630. dmovement2(board)
  631. return dcapture +=1
  632. elif dx4!=x-6 and dy4!=y-6:
  633. 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])
  634. move_d()
  635. convertdmove(dmove)
  636. darkcapture()
  637. if x-6 >= 0 or y+6 < 8:
  638. if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
  639. if board[x-5][y+5]=="-":
  640. if dx3==x-6 and dy3==y+6:
  641. board[x-5][y+5]="-"
  642. dmovement2(board)
  643. return dcapture += 1
  644. elif dx4!=x-6 and dy4!=y+6:
  645. 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])
  646. move_d()
  647. convertdmove(dmove)
  648. darkcapture()
  649. if x+6 < 8 and y-6 >= 0:
  650. if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
  651. if board[x+5][y-5]=="-":
  652. if dx3==x+6 or dy3==y-6:
  653. board[x+5][y-5]="-"
  654. dmovement2(board)
  655. return dcapture += 1
  656. elif dx4!=x+6 and dy4!=y-6:
  657. 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])
  658. move_d()
  659. convertdmove(dmove)
  660. darkcapture()
  661. if x+6 < 8 or y+6 < 8:
  662. if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
  663. if board[x+5][y+5]=="-":
  664. if dx4==x+6 and dy4==y+6:
  665. board[x+5][y+5]="-"
  666. dmovement2(board)
  667. return dcapture += 1
  668. elif dx4!=x+6 and dy4!=y+6:
  669. 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])
  670. move_d()
  671. convertdmove(dmove)
  672. darkcapture()
  673. elif dx3!=x+4 and dy3!=y+4:
  674. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],number[x+4])
  675. move_d()
  676. convertdmove(dmove)
  677. darkcapture()
  678.  
  679.  
  680. elif dx2!=x-2 or dy2!=y+2:
  681. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x],rettel[y+2],rebmun[x-2])
  682. move_d()
  683. convertdmove(dmove)
  684. darkcapture()
  685. if x+2 < 8 and y-2 >= 0:
  686. if board[x+1][y-1]=="o" or board[x+1][y-1]=="O":
  687. if board[x+2][y-2]=="-":
  688. if dx2==x+2 or dy2==y-2:
  689. board[x+1][y-1]="-"
  690. dmovement(board)
  691. return dcapture += 1
  692. if x-4 >= 0 or y-4 >= 0:
  693. if board[x-2][y-2]=="o" or board[x-2][y-2]=="O":
  694. if board[x-3][y-3]=="-":
  695. if dx3==x-4 and dy3==y-4:
  696. board[x-3][y-3]="-"
  697. dmovement1(board)
  698. return dcapture +=1
  699. if x-6 >= 0 or y-6 >= 0:
  700. if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
  701. if board[x-5][y-5]=="-":
  702. if dx3==x-6 and dy3==y-6:
  703. board[x-5][y-5]="-"
  704. dmovement2(board)
  705. return dcapture +=1
  706. elif dx4!=x-6 and dy4!=y-6:
  707. 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])
  708. move_d()
  709. convertdmove(dmove)
  710. darkcapture()
  711. if x-6 >= 0 or y+6 < 8:
  712. if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
  713. if board[x-5][y+5]=="-":
  714. if dx3==x-6 and dy3==y+6:
  715. board[x-5][y+5]="-"
  716. dmovement2(board)
  717. return dcapture += 1
  718. elif dx4!=x-6 and dy4!=y+6:
  719. 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])
  720. move_d()
  721. convertdmove(dmove)
  722. darkcapture()
  723. if x+6 < 8 and y-6 >= 0:
  724. if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
  725. if board[x+5][y-5]=="-":
  726. if dx3==x+6 or dy3==y-6:
  727. board[x+5][y-5]="-"
  728. dmovement2(board)
  729. return dcapture += 1
  730. elif dx4!=x+6 and dy4!=y-6:
  731. 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])
  732. move_d()
  733. convertdmove(dmove)
  734. darkcapture()
  735. if x+6 < 8 or y+6 < 8:
  736. if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
  737. if board[x+5][y+5]=="-":
  738. if dx4==x+6 and dy4==y+6:
  739. board[x+5][y+5]="-"
  740. dmovement2(board)
  741. return dcapture += 1
  742. elif dx4!=x+6 and dy4!=y+6:
  743. 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])
  744. move_d()
  745. convertdmove(dmove)
  746. darkcapture()
  747. elif dx3!=x-4 and dy3!=y-4:
  748. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4])
  749. move_d()
  750. convertdmove(dmove)
  751. darkcapture()
  752. if x-4 >= 0 or y+4 < 8:
  753. if board[x-2][y+2]=="o" or board[x-2][y+2]=="O":
  754. if board[x-3][y+3]=="-":
  755. if dx3==x-4 and dy3==y+4:
  756. board[x-3][y+3]="-"
  757. dmovement1(board)
  758. return dcapture += 1
  759. if x-6 >= 0 or y-6 >= 0:
  760. if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
  761. if board[x-5][y-5]=="-":
  762. if dx3==x-6 and dy3==y-6:
  763. board[x-5][y-5]="-"
  764. dmovement2(board)
  765. return dcapture +=1
  766. elif dx4!=x-6 and dy4!=y-6:
  767. 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])
  768. move_d()
  769. convertdmove(dmove)
  770. darkcapture()
  771. if x-6 >= 0 or y+6 < 8:
  772. if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
  773. if board[x-5][y+5]=="-":
  774. if dx3==x-6 and dy3==y+6:
  775. board[x-5][y+5]="-"
  776. dmovement2(board)
  777. return dcapture += 1
  778. elif dx4!=x-6 and dy4!=y+6:
  779. 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])
  780. move_d()
  781. convertdmove(dmove)
  782. darkcapture()
  783. if x+6 < 8 and y-6 >= 0:
  784. if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
  785. if board[x+5][y-5]=="-":
  786. if dx3==x+6 or dy3==y-6:
  787. board[x+5][y-5]="-"
  788. dmovement2(board)
  789. return dcapture += 1
  790. elif dx4!=x+6 and dy4!=y-6:
  791. 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])
  792. move_d()
  793. convertdmove(dmove)
  794. darkcapture()
  795. if x+6 < 8 or y+6 < 8:
  796. if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
  797. if board[x+5][y+5]=="-":
  798. if dx4==x+6 and dy4==y+6:
  799. board[x+5][y+5]="-"
  800. dmovement2(board)
  801. return dcapture += 1
  802. elif dx4!=x+6 and dy4!=y+6:
  803. 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])
  804. move_d()
  805. convertdmove(dmove)
  806. darkcapture()
  807. elif dx3!=x-4 and dy3!=y+4:
  808. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4])
  809. move_d()
  810. convertdmove(dmove)
  811. darkcapture()
  812. if x+4 < 8 and y-4 >= 0:
  813. if board[x+2][y-1]=="o" or board[x+2][y-2]=="O":
  814. if board[x+3][y-3]=="-":
  815. if dx3==x+4 or dy3==y-4:
  816. board[x+3][y-3]="-"
  817. dmovement1(board)
  818. return dcapture += 1
  819. if x-6 >= 0 or y-6 >= 0:
  820. if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
  821. if board[x-5][y-5]=="-":
  822. if dx3==x-6 and dy3==y-6:
  823. board[x-5][y-5]="-"
  824. dmovement2(board)
  825. return dcapture +=1
  826. elif dx4!=x-6 and dy4!=y-6:
  827. 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])
  828. move_d()
  829. convertdmove(dmove)
  830. darkcapture()
  831. if x-6 >= 0 or y+6 < 8:
  832. if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
  833. if board[x-5][y+5]=="-":
  834. if dx3==x-6 and dy3==y+6:
  835. board[x-5][y+5]="-"
  836. dmovement2(board)
  837. return dcapture += 1
  838. elif dx4!=x-6 and dy4!=y+6:
  839. 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])
  840. move_d()
  841. convertdmove(dmove)
  842. darkcapture()
  843. if x+6 < 8 and y-6 >= 0:
  844. if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
  845. if board[x+5][y-5]=="-":
  846. if dx3==x+6 or dy3==y-6:
  847. board[x+5][y-5]="-"
  848. dmovement2(board)
  849. return dcapture += 1
  850. elif dx4!=x+6 and dy4!=y-6:
  851. 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])
  852. move_d()
  853. convertdmove(dmove)
  854. darkcapture()
  855. if x+6 < 8 or y+6 < 8:
  856. if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
  857. if board[x+5][y+5]=="-":
  858. if dx4==x+6 and dy4==y+6:
  859. board[x+5][y+5]="-"
  860. dmovement2(board)
  861. return dcapture += 1
  862. elif dx4!=x+6 and dy4!=y+6:
  863. 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])
  864. move_d()
  865. convertdmove(dmove)
  866. darkcapture()
  867. elif dx3!=x+4 and dy3!=y-4:
  868. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4])
  869. move_d()
  870. convertdmove(dmove)
  871. darkcapture()
  872. if x+4 < 8 or y+4 < 8:
  873. if board[x+2][y+2]=="o" or board[x+2][y+2]=="O":
  874. if board[x+3][y+3]=="-":
  875. if dx3==x+4 and dy3==y+4:
  876. board[x+1][y+1]="-"
  877. dmovement1(board)
  878. return dcapture += 1
  879. if x-6 >= 0 or y-6 >= 0:
  880. if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
  881. if board[x-5][y-5]=="-":
  882. if dx3==x-6 and dy3==y-6:
  883. board[x-5][y-5]="-"
  884. dmovement2(board)
  885. return dcapture +=1
  886. elif dx4!=x-6 and dy4!=y-6:
  887. 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])
  888. move_d()
  889. convertdmove(dmove)
  890. darkcapture()
  891. if x-6 >= 0 or y+6 < 8:
  892. if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
  893. if board[x-5][y+5]=="-":
  894. if dx3==x-6 and dy3==y+6:
  895. board[x-5][y+5]="-"
  896. dmovement2(board)
  897. return dcapture += 1
  898. elif dx4!=x-6 and dy4!=y+6:
  899. 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])
  900. move_d()
  901. convertdmove(dmove)
  902. darkcapture()
  903. if x+6 < 8 and y-6 >= 0:
  904. if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
  905. if board[x+5][y-5]=="-":
  906. if dx3==x+6 or dy3==y-6:
  907. board[x+5][y-5]="-"
  908. dmovement2(board)
  909. return dcapture += 1
  910. elif dx4!=x+6 and dy4!=y-6:
  911. 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])
  912. move_d()
  913. convertdmove(dmove)
  914. darkcapture()
  915. if x+6 < 8 or y+6 < 8:
  916. if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
  917. if board[x+5][y+5]=="-":
  918. if dx4==x+6 and dy4==y+6:
  919. board[x+5][y+5]="-"
  920. dmovement2(board)
  921. return dcapture += 1
  922. elif dx4!=x+6 and dy4!=y+6:
  923. 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])
  924. move_d()
  925. convertdmove(dmove)
  926. darkcapture()
  927. elif dx3!=x+4 and dy3!=y+4:
  928. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x+4])
  929. move_d()
  930. convertdmove(dmove)
  931. darkcapture()
  932. elif dx2!=x+2 and dy2!=y-2:
  933. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x],rettel[y-2],rebmun[x+2])
  934. move_d()
  935. convertdmove(dmove)
  936. darkcapture()
  937. if x+2 < 8 or y+2 < 8:
  938. if board[x+1][y+1]=="o" or board[x+1][y+1]=="O":
  939. if board[x+2][y+2]=="-":
  940. if dx2==x+2 and dy2==x+2:
  941. board[x+1][y+1]="-"
  942. dmovement(board)
  943. return dcapture +=1
  944. if x-4 >= 0 or y-4 >= 0:
  945. if board[x-2][y-2]=="o" or board[x-2][y-2]=="O":
  946. if board[x-3][y-3]=="-":
  947. if dx3==x-4 and dy3==y-4:
  948. board[x-3][y-3]="-"
  949. dmovement1(board)
  950. return dcapture +=1
  951. if x-6 >= 0 or y-6 >= 0:
  952. if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
  953. if board[x-5][y-5]=="-":
  954. if dx3==x-6 and dy3==y-6:
  955. board[x-5][y-5]="-"
  956. dmovement2(board)
  957. return dcapture +=1
  958. elif dx4!=x-6 and dy4!=y-6:
  959. 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])
  960. move_d()
  961. convertdmove(dmove)
  962. darkcapture()
  963. if x-6 >= 0 or y+6 < 8:
  964. if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
  965. if board[x-5][y+5]=="-":
  966. if dx3==x-6 and dy3==y+6:
  967. board[x-5][y+5]="-"
  968. dmovement2(board)
  969. return dcapture += 1
  970. elif dx4!=x-6 and dy4!=y+6:
  971. 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])
  972. move_d()
  973. convertdmove(dmove)
  974. darkcapture()
  975. if x+6 < 8 and y-6 >= 0:
  976. if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
  977. if board[x+5][y-5]=="-":
  978. if dx3==x+6 or dy3==y-6:
  979. board[x+5][y-5]="-"
  980. dmovement2(board)
  981. return dcapture += 1
  982. elif dx4!=x+6 and dy4!=y-6:
  983. 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])
  984. move_d()
  985. convertdmove(dmove)
  986. darkcapture()
  987. if x+6 < 8 or y+6 < 8:
  988. if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
  989. if board[x+5][y+5]=="-":
  990. if dx4==x+6 and dy4==y+6:
  991. board[x+5][y+5]="-"
  992. dmovement2(board)
  993. return dcapture += 1
  994. elif dx4!=x+6 and dy4!=y+6:
  995. 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])
  996. move_d()
  997. convertdmove(dmove)
  998. darkcapture()
  999. elif dx3!=x-4 and dy3!=y-4:
  1000. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4])
  1001. move_d()
  1002. convertdmove(dmove)
  1003. darkcapture()
  1004. if x-4 >= 0 or y+4 < 8:
  1005. if board[x-2][y+2]=="o" or board[x-2][y+2]=="O":
  1006. if board[x-3][y+3]=="-":
  1007. if dx3==x-4 and dy3==y+4:
  1008. board[x-3][y+3]="-"
  1009. dmovement1(board)
  1010. return dcapture += 1
  1011. if x-6 >= 0 or y-6 >= 0:
  1012. if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
  1013. if board[x-5][y-5]=="-":
  1014. if dx3==x-6 and dy3==y-6:
  1015. board[x-5][y-5]="-"
  1016. dmovement2(board)
  1017. return dcapture +=1
  1018. elif dx4!=x-6 and dy4!=y-6:
  1019. 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])
  1020. move_d()
  1021. convertdmove(dmove)
  1022. darkcapture()
  1023. if x-6 >= 0 or y+6 < 8:
  1024. if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
  1025. if board[x-5][y+5]=="-":
  1026. if dx3==x-6 and dy3==y+6:
  1027. board[x-5][y+5]="-"
  1028. dmovement2(board)
  1029. return dcapture += 1
  1030. elif dx4!=x-6 and dy4!=y+6:
  1031. 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])
  1032. move_d()
  1033. convertdmove(dmove)
  1034. darkcapture()
  1035. if x+6 < 8 and y-6 >= 0:
  1036. if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
  1037. if board[x+5][y-5]=="-":
  1038. if dx3==x+6 or dy3==y-6:
  1039. board[x+5][y-5]="-"
  1040. dmovement2(board)
  1041. return dcapture += 1
  1042. elif dx4!=x+6 and dy4!=y-6:
  1043. 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])
  1044. move_d()
  1045. convertdmove(dmove)
  1046. darkcapture()
  1047. if x+6 < 8 or y+6 < 8:
  1048. if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
  1049. if board[x+5][y+5]=="-":
  1050. if dx4==x+6 and dy4==y+6:
  1051. board[x+5][y+5]="-"
  1052. dmovement2(board)
  1053. return dcapture += 1
  1054. elif dx4!=x+6 and dy4!=y+6:
  1055. 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])
  1056. move_d()
  1057. convertdmove(dmove)
  1058. darkcapture()
  1059. elif dx3!=x-4 and dy3!=y+4:
  1060. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4])
  1061. move_d()
  1062. convertdmove(dmove)
  1063. darkcapture()
  1064. if x+4 < 8 and y-4 >= 0:
  1065. if board[x+2][y-1]=="o" or board[x+2][y-2]=="O":
  1066. if board[x+3][y-3]=="-":
  1067. if dx3==x+4 or dy3==y-4:
  1068. board[x+3][y-3]="-"
  1069. dmovement1(board)
  1070. return dcapture += 1
  1071. if x-6 >= 0 or y-6 >= 0:
  1072. if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
  1073. if board[x-5][y-5]=="-":
  1074. if dx3==x-6 and dy3==y-6:
  1075. board[x-5][y-5]="-"
  1076. dmovement2(board)
  1077. return dcapture +=1
  1078. elif dx4!=x-6 and dy4!=y-6:
  1079. 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])
  1080. move_d()
  1081. convertdmove(dmove)
  1082. darkcapture()
  1083. if x-6 >= 0 or y+6 < 8:
  1084. if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
  1085. if board[x-5][y+5]=="-":
  1086. if dx3==x-6 and dy3==y+6:
  1087. board[x-5][y+5]="-"
  1088. dmovement2(board)
  1089. return dcapture += 1
  1090. elif dx4!=x-6 and dy4!=y+6:
  1091. 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])
  1092. move_d()
  1093. convertdmove(dmove)
  1094. darkcapture()
  1095. if x+6 < 8 and y-6 >= 0:
  1096. if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
  1097. if board[x+5][y-5]=="-":
  1098. if dx3==x+6 or dy3==y-6:
  1099. board[x+5][y-5]="-"
  1100. dmovement2(board)
  1101. return dcapture += 1
  1102. elif dx4!=x+6 and dy4!=y-6:
  1103. 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])
  1104. move_d()
  1105. convertdmove(dmove)
  1106. darkcapture()
  1107. if x+6 < 8 or y+6 < 8:
  1108. if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
  1109. if board[x+5][y+5]=="-":
  1110. if dx4==x+6 and dy4==y+6:
  1111. board[x+5][y+5]="-"
  1112. dmovement2(board)
  1113. return dcapture += 1
  1114. elif dx4!=x+6 and dy4!=y+6:
  1115. 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])
  1116. move_d()
  1117. convertdmove(dmove)
  1118. darkcapture()
  1119. elif dx3!=x+4 and dy3!=y-4:
  1120. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4])
  1121. move_d()
  1122. convertdmove(dmove)
  1123. darkcapture()
  1124. if x+4 < 8 or y+4 < 8:
  1125. if board[x+2][y+2]=="o" or board[x+2][y+2]=="O":
  1126. if board[x+3][y+3]=="-":
  1127. if dx3==x+4 and dy3==y+4:
  1128. board[x+1][y+1]="-"
  1129. dmovement1(board)
  1130. return dcapture += 1
  1131. if x-6 >= 0 or y-6 >= 0:
  1132. if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
  1133. if board[x-5][y-5]=="-":
  1134. if dx3==x-6 and dy3==y-6:
  1135. board[x-5][y-5]="-"
  1136. dmovement2(board)
  1137. return dcapture +=1
  1138. elif dx4!=x-6 and dy4!=y-6:
  1139. 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])
  1140. move_d()
  1141. convertdmove(dmove)
  1142. darkcapture()
  1143. if x-6 >= 0 or y+6 < 8:
  1144. if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
  1145. if board[x-5][y+5]=="-":
  1146. if dx3==x-6 and dy3==y+6:
  1147. board[x-5][y+5]="-"
  1148. dmovement2(board)
  1149. return dcapture += 1
  1150. elif dx4!=x-6 and dy4!=y+6:
  1151. 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])
  1152. move_d()
  1153. convertdmove(dmove)
  1154. darkcapture()
  1155. if x+6 < 8 and y-6 >= 0:
  1156. if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
  1157. if board[x+5][y-5]=="-":
  1158. if dx3==x+6 or dy3==y-6:
  1159. board[x+5][y-5]="-"
  1160. dmovement2(board)
  1161. return dcapture += 1
  1162. elif dx4!=x+6 and dy4!=y-6:
  1163. 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])
  1164. move_d()
  1165. convertdmove(dmove)
  1166. darkcapture()
  1167. if x+6 < 8 or y+6 < 8:
  1168. if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
  1169. if board[x+5][y+5]=="-":
  1170. if dx4==x+6 and dy4==y+6:
  1171. board[x+5][y+5]="-"
  1172. dmovement2(board)
  1173. return dcapture += 1
  1174. elif dx4!=x+6 and dy4!=y+6:
  1175. 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])
  1176. move_d()
  1177. convertdmove(dmove)
  1178. darkcapture()
  1179. elif dx3!=x+4 and dy3!=y+4:
  1180. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x+4])
  1181. move_d()
  1182. convertdmove(dmove)
  1183. darkcapture()
  1184. elif dx2!=x+2 and dy2!=y+2:
  1185. print("Invalid input. Mandatory capture on",rettel[y],rebmun[x],rettel[y+2],rebmun[x+2])
  1186. move_d()
  1187. convertdmove(dmove)
  1188. darkcapture()
  1189. else:
  1190. continue
  1191. else:
  1192. continue
  1193. else:
  1194. continue
  1195.  
  1196. def lightcapture():
  1197. global lcapture
  1198. lcapture = 0
  1199. for x in range (8):
  1200. for y in range(8):
  1201. if board[x][y]=="x" or board[x][y]=="X":
  1202. if x-2 >= 0 or y-2 >= 0:
  1203. if board[x-1][y-1]=="o" or board[x-1][y-1]=="O":
  1204. if board[x-2][y-2]=="-":
  1205. if lx2==x-2 and ly2==y-2:
  1206. board[x-1][y-1]="-"
  1207. lmovement(board)
  1208. lcapture +=1
  1209. return lcapture
  1210. if x-4 >= 0 or y-4 >= 0:
  1211. if board[x-2][y-2]=="o" or board[x-2][y-2]=="O":
  1212. if board[x-3][y-3]=="-":
  1213. if lx3==x-4 and ly3==y-4:
  1214. board[x-3][y-3]="-"
  1215. dmovement1(board)
  1216. lcapture +=1
  1217. return lcapture
  1218. if x-6 >= 0 or y-6 >= 0:
  1219. if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
  1220. if board[x-5][y-5]=="-":
  1221. if lx3==x-6 and ly3==y-6:
  1222. board[x-5][y-5]="-"
  1223. lmovement2(board)
  1224. lcapture +=1
  1225. return lcapture
  1226. elif lx4!=x-6 and ly4!=y-6:
  1227. 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])
  1228. move_l()
  1229. convertlmove(lmove)
  1230. lightcapture()
  1231. if x-6 >= 0 or y+6 < 8:
  1232. if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
  1233. if board[x-5][y+5]=="-":
  1234. if lx3==x-6 and ly3==y+6:
  1235. board[x-5][y+5]="-"
  1236. lmovement2(board)
  1237. lcapture += 1
  1238. return dcapture
  1239. elif lx4!=x-6 and ly4!=y+6:
  1240. 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])
  1241. move_d()
  1242. convertlmove(lmove)
  1243. lightcapture()
  1244. if x+6 < 8 and y-6 >= 0:
  1245. if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
  1246. if board[x+5][y-5]=="-":
  1247. if lx3==x+6 or ly3==y-6:
  1248. board[x+5][y-5]="-"
  1249. lmovement2(board)
  1250. lcapture += 1
  1251. return lcapture
  1252. elif lx4!=x+6 and ly4!=y-6:
  1253. 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])
  1254. move_l()
  1255. convertdmove(lmove)
  1256. darkcapture()
  1257. if x+6 < 8 or y+6 < 8:
  1258. if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
  1259. if board[x+5][y+5]=="-":
  1260. if lx4==x+6 and ly4==y+6:
  1261. board[x+5][y+5]="-"
  1262. lmovement2(board)
  1263. lcapture += 1
  1264. return dcapture
  1265. elif lx4!=x+6 and ly4!=y+6:
  1266. 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])
  1267. move_l()
  1268. convertlmove(lmove)
  1269. lightcapture()
  1270. elif lx3!=x-4 and ly3!=y-4:
  1271. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4])
  1272. move_l()
  1273. convertlmove(lmove)
  1274. lightcapture()
  1275.  
  1276. if x-4 >= 0 or y+4 < 8:
  1277. if board[x-2][y+2]=="o" or board[x-2][y+2]=="O":
  1278. if board[x-3][y+3]=="-":
  1279. if lx3==x-4 and ly3==y+4:
  1280. board[x-3][y+3]="-"
  1281. lmovement1(board)
  1282. lcapture += 1
  1283. return lcapture
  1284. if x-6 >= 0 or y-6 >= 0:
  1285. if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
  1286. if board[x-5][y-5]=="-":
  1287. if lx3==x-6 and ly3==y-6:
  1288. board[x-5][y-5]="-"
  1289. lmovement2(board)
  1290. lcapture +=1
  1291. elif lx4!=x-6 and ly4!=y-6:
  1292. 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])
  1293. move_l()
  1294. convertlmove(lmove)
  1295. lightcapture()
  1296. if x-6 >= 0 or y+6 < 8:
  1297. if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
  1298. if board[x-5][y+5]=="-":
  1299. if lx3==x-6 and ly3==y+6:
  1300. board[x-5][y+5]="-"
  1301. lmovement2(board)
  1302. lcapture += 1
  1303. return lcapture
  1304. elif lx4!=x-6 and ly4!=y+6:
  1305. 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])
  1306. move_l()
  1307. convertlmove(lmove)
  1308. lightcapture()
  1309. if x+6 < 8 and y-6 >= 0:
  1310. if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
  1311. if board[x+5][y-5]=="-":
  1312. if dx3==x+6 or dy3==y-6:
  1313. board[x+5][y-5]="-"
  1314. lmovement2(board)
  1315. lcapture += 1
  1316. return lcapture
  1317. elif lx4!=x+6 and ly4!=y-6:
  1318. 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])
  1319. move_l()
  1320. convertlmove(lmove)
  1321. lightcapture()
  1322. if x+6 < 8 or y+6 < 8:
  1323. if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
  1324. if board[x+5][y+5]=="-":
  1325. if lx4==x+6 and ly4==y+6:
  1326. board[x+5][y+5]="-"
  1327. lmovement2(board)
  1328. lcapture += 1
  1329. return lcapture
  1330. elif lx4!=x+6 and ly4!=y+6:
  1331. 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])
  1332. move_l()
  1333. convertlmove(lmove)
  1334. lightcapture()
  1335. elif lx3!=x-4 and ly3!=y+4:
  1336. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4])
  1337. move_l()
  1338. convertlmove(lmove)
  1339. lightcapture()
  1340. if x+4 < 8 and y-4 >= 0:
  1341. if board[x+2][y-2]=="o" or board[x+2][y-2]=="O":
  1342. if board[x+3][y-3]=="-":
  1343. if lx3==x+4 or ly3==y-4:
  1344. board[x+3][y-3]="-"
  1345. lmovement1(board)
  1346. lcapture += 1
  1347. return lcapture
  1348. if x-6 >= 0 or y-6 >= 0:
  1349. if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
  1350. if board[x-5][y-5]=="-":
  1351. if lx3==x-6 and ly3==y-6:
  1352. board[x-5][y-5]="-"
  1353. lmovement2(board)
  1354. lcapture +=1
  1355. return lcapture
  1356. elif lx4!=x-6 and ly4!=y-6:
  1357. 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])
  1358. move_l()
  1359. convertlmove(lmove)
  1360. lightcapture()
  1361. if x-6 >= 0 or y+6 < 8:
  1362. if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
  1363. if board[x-5][y+5]=="-":
  1364. if lx3==x-6 and ly3==y+6:
  1365. board[x-5][y+5]="-"
  1366. lmovement2(board)
  1367. lcapture += 1
  1368. return lcapture
  1369. elif lx4!=x-6 and ly4!=y+6:
  1370. 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])
  1371. move_l()
  1372. convertlmove(lmove)
  1373. lightcapture()
  1374. if x+6 < 8 and y-6 >= 0:
  1375. if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
  1376. if board[x+5][y-5]=="-":
  1377. if lx3==x+6 or ly3==y-6:
  1378. board[x+5][y-5]="-"
  1379. lmovement2(board)
  1380. lcapture += 1
  1381. return lcapture
  1382. elif lx4!=x+6 and ly4!=y-6:
  1383. 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])
  1384. move_l()
  1385. convertlmove(lmove)
  1386. lightcapture()
  1387. if x+6 < 8 or y+6 < 8:
  1388. if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
  1389. if board[x+5][y+5]=="-":
  1390. if lx4==x+6 and ly4==y+6:
  1391. board[x+5][y+5]="-"
  1392. lmovement2(board)
  1393. lcapture += 1
  1394. return lcapture
  1395. elif lx4!=x+6 and ly4!=y+6:
  1396. 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])
  1397. move_l()
  1398. convertlmove(lmove)
  1399. lightcapture()
  1400. elif lx3!=x+4 and ly3!=y-4:
  1401. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4])
  1402. move_l()
  1403. convertlmove(lmove)
  1404. lightcapture()
  1405. if x+4 < 8 and y+4 < 8:
  1406. if board[x+2][y+2]=="o" or board[x+2][y-2]=="O":
  1407. if board[x+3][y+3]=="-":
  1408. if lx3==x+4 or ly3==y+4:
  1409. board[x+3][y+3]="-"
  1410. lmovement1(board)
  1411. lcapture += 1
  1412. return lcapture
  1413. if x-6 >= 0 or y-6 >= 0:
  1414. if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
  1415. if board[x-5][y-5]=="-":
  1416. if lx3==x-6 and ly3==y-6:
  1417. board[x-5][y-5]="-"
  1418. lmovement2(board)
  1419. lcapture +=1
  1420. return lcapture
  1421. elif lx4!=x-6 and ly4!=y-6:
  1422. 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])
  1423. move_l()
  1424. convertlmove(lmove)
  1425. lightcapture()
  1426. if x-6 >= 0 or y+6 < 8:
  1427. if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
  1428. if board[x-5][y+5]=="-":
  1429. if lx3==x-6 and ly3==y+6:
  1430. board[x-5][y+5]="-"
  1431. lmovement2(board)
  1432. lcapture += 1
  1433. return lcapture
  1434. elif lx4!=x-6 and ly4!=y+6:
  1435. 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])
  1436. move_l()
  1437. convertlmove(lmove)
  1438. lightcapture()
  1439. if x+6 < 8 and y-6 >= 0:
  1440. if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
  1441. if board[x+5][y-5]=="-":
  1442. if lx3==x+6 or ly3==y-6:
  1443. board[x+5][y-5]="-"
  1444. lmovement2(board)
  1445. return lcapture += 1
  1446. elif lx4!=x+6 and ly4!=y-6:
  1447. 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])
  1448. move_l()
  1449. convertlmove(lmove)
  1450. lightcapture()
  1451. if x+6 < 8 or y+6 < 8:
  1452. if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
  1453. if board[x+5][y+5]=="-":
  1454. if lx4==x+6 and ly4==y+6:
  1455. board[x+5][y+5]="-"
  1456. lmovement2(board)
  1457. return lcapture += 1
  1458. elif lx4!=x+6 and ly4!=y+6:
  1459. 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])
  1460. move_l()
  1461. convertlmove(lmove)
  1462. lightcapture()
  1463.  
  1464. elif x3!=x+4 dy3!=x+4 and dy3!=y+4:
  1465. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x+4])
  1466. move_d()
  1467. convertlmove(lmove)
  1468. lightcapture()
  1469. elif lx2!=x-2 and ly2!=y-2:
  1470. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[y-2],rebmun[x-2])
  1471. move_l()
  1472. convertlmove(lmove)
  1473. lightcapture()
  1474.  
  1475. if x-2 >= 0 or y+2 < 8:
  1476. if board[x-1][y+1]=="o" or board[x-1][y+1]=="O":
  1477. if board[x-2][y+2]=="-":
  1478. if lx2==x-2 and ly2==y+2:
  1479. board[x-1][y+1]="-"
  1480. lmovement(board)
  1481. lcapture += 1
  1482. return lcapture
  1483. if x-4 >= 0 or y-4 >= 0:
  1484. if board[x-2][y-2]=="o" or board[x-2][y-2]=="O":
  1485. if board[x-3][y-3]=="-":
  1486. if dx3==x-4 and dy3==y-4:
  1487. board[x-3][y-3]="-"
  1488. lmovement1(board)
  1489. lcapture +=1
  1490. return lcapture
  1491. if x-6 >= 0 or y-6 >= 0:
  1492. if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
  1493. if board[x-5][y-5]=="-":
  1494. if dx3==x-6 and dy3==y-6:
  1495. board[x-5][y-5]="-"
  1496. lmovement2(board)
  1497. lcapture +=1
  1498. return lcapture
  1499. elif lx4!=x-6 and ly4!=y-6:
  1500. 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])
  1501. move_l()
  1502. convertlmove(lmove)
  1503. lightcapture()
  1504. if x-6 >= 0 or y+6 < 8:
  1505. if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
  1506. if board[x-5][y+5]=="-":
  1507. if lx4==x-6 and ly4==y+6:
  1508. board[x-5][y+5]="-"
  1509. lmovement2(board)
  1510. lcapture += 1
  1511. return lcapture
  1512. elif dx4!=x-6 and dy4!=y+6:
  1513. 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])
  1514. move_l()
  1515. convertlmove(lmove)
  1516. lightcapture()
  1517. if x+6 < 8 and y-6 >= 0:
  1518. if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
  1519. if board[x+5][y-5]=="-":
  1520. if lx3==x+6 or ly3==y-6:
  1521. board[x+5][y-5]="-"
  1522. lmovement2(board)
  1523. lcapture +=1
  1524. return lcapture
  1525. elif lx4!=x+6 and ly4!=y-6:
  1526. 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])
  1527. move_l()
  1528. convertlmove(lmove)
  1529. lightcapture()
  1530. if x+6 < 8 or y+6 < 8:
  1531. if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
  1532. if board[x+5][y+5]=="-":
  1533. if lx4==x+6 and ly4==y+6:
  1534. board[x+5][y+5]="-"
  1535. lmovement2(board)
  1536. lcapture += 1
  1537. return lcapture
  1538. elif lx4!=x+6 and ly4!=y+6:
  1539. 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])
  1540. move_l()
  1541. convertlmove(lmove)
  1542. lightcapture()
  1543. elif lx3!=x-4 and ly3!=y-4:
  1544. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],number[x-4])
  1545. move_l()
  1546. convertlmove(lmove)
  1547. lightcapture()
  1548. if x-4 >= 0 or y+4 < 8:
  1549. if board[x-2][y+2]=="o" or board[x-2][y+2]=="O":
  1550. if board[x-3][y+3]=="-":
  1551. if lx3==x-4 and ly3==y+4:
  1552. board[x-3][y+3]="-"
  1553. lmovement1(board)
  1554. return lcapture += 1
  1555. if x-6 >= 0 or y-6 >= 0:
  1556. if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
  1557. if board[x-5][y-5]=="-":
  1558. if lx3==x-6 and ly3==y-6:
  1559. board[x-5][y-5]="-"
  1560. lmovement2(board)
  1561. return lcapture +=1
  1562. elif lx4!=x-6 and ly4!=y-6:
  1563. 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])
  1564. move_l()
  1565. convertlmove(lmove)
  1566. lightcapture()
  1567. if x-6 >= 0 or y+6 < 8:
  1568. if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
  1569. if board[x-5][y+5]=="-":
  1570. if lx3==x-6 and ly3==y+6:
  1571. board[x-5][y+5]="-"
  1572. lmovement2(board)
  1573. return lcapture += 1
  1574. elif lx4!=x-6 and ly4!=y+6:
  1575. 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])
  1576. move_l()
  1577. convertlmove(lmove)
  1578. lightcapture()
  1579. if x+6 < 8 and y-6 >= 0:
  1580. if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
  1581. if board[x+5][y-5]=="-":
  1582. if lx3==x+6 or ly3==y-6:
  1583. board[x+5][y-5]="-"
  1584. lmovement2(board)
  1585. return lcapture += 1
  1586. elif lx4!=x+6 and ly4!=y-6:
  1587. 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])
  1588. move_l()
  1589. convertlmove(lmove)
  1590. lightcapture()
  1591. if x+6 < 8 or y+6 < 8:
  1592. if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
  1593. if board[x+5][y+5]=="-":
  1594. if lx4==x+6 and ly4==y+6:
  1595. board[x+5][y+5]="-"
  1596. lmovement2(board)
  1597. return lcapture += 1
  1598. elif lx4!=x+6 and ly4!=y+6:
  1599. 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])
  1600. move_l()
  1601. convertlmove(lmove)
  1602. lightcapture()
  1603. elif lx3!=x-4 and ly3!=y+4:
  1604. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],number[x-4])
  1605. move_l()
  1606. convertlmove(dmove)
  1607. lightcapture()
  1608. if x+4 < 8 and y-4 >= 0:
  1609. if board[x+2][y-1]=="o" or board[x+2][y-2]=="O":
  1610. if board[x+3][y-3]=="-":
  1611. if lx3==x+4 or ly3==y-4:
  1612. board[x+3][y-3]="-"
  1613. lmovement1(board)
  1614. return lcapture += 1
  1615. if x-6 >= 0 or y-6 >= 0:
  1616. if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
  1617. if board[x-5][y-5]=="-":
  1618. if lx3==x-6 and ly3==y-6:
  1619. board[x-5][y-5]="-"
  1620. lmovement2(board)
  1621. return lcapture +=1
  1622. elif lx4!=x-6 and ly4!=y-6:
  1623. 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])
  1624. move_l()
  1625. convertlmove(lmove)
  1626. lightcapture()
  1627. if x-6 >= 0 or y+6 < 8:
  1628. if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
  1629. if board[x-5][y+5]=="-":
  1630. if lx3==x-6 and ly3==y+6:
  1631. board[x-5][y+5]="-"
  1632. lmovement2(board)
  1633. return lcapture += 1
  1634. elif lx4!=x-6 and ly4!=y+6:
  1635. 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])
  1636. move_l()
  1637. convertlmove(lmove)
  1638. lightcapture()
  1639. if x+6 < 8 and y-6 >= 0:
  1640. if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
  1641. if board[x+5][y-5]=="-":
  1642. if lx3==x+6 or ly3==y-6:
  1643. board[x+5][y-5]="-"
  1644. lmovement2(board)
  1645. return lcapture += 1
  1646. elif lx4!=x+6 and ly4!=y-6:
  1647. 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])
  1648. move_l()
  1649. convertlmove(lmove)
  1650. lightcapture()
  1651. if x+6 < 8 or y+6 < 8:
  1652. if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
  1653. if board[x+5][y+5]=="-":
  1654. if lx4==x+6 and ly4==y+6:
  1655. board[x+5][y+5]="-"
  1656. lmovement2(board)
  1657. return lcapture += 1
  1658. elif lx4!=x+6 and ly4!=y+6:
  1659. 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])
  1660. move_l()
  1661. convertlmove(lmove)
  1662. lightcapture()
  1663. elif lx3!=x+4 and ly3!=y-4:
  1664. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],number[x+4])
  1665. move_l()
  1666. convertlmove(lmove)
  1667. lightcapture()
  1668. if x+4 < 8 or y+4 < 8:
  1669. if board[x+2][y+2]=="o" or board[x+2][y+2]=="O":
  1670. if board[x+3][y+3]=="-":
  1671. if lx3==x+4 and ly3==y+4:
  1672. board[x+1][y+1]="-"
  1673. lmovement1(board)
  1674. return lcapture += 1
  1675. if x-6 >= 0 or y-6 >= 0:
  1676. if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
  1677. if board[x-5][y-5]=="-":
  1678. if lx3==x-6 and ly3==y-6:
  1679. board[x-5][y-5]="-"
  1680. lmovement2(board)
  1681. return lcapture +=1
  1682. elif lx4!=x-6 and ly4!=y-6:
  1683. 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])
  1684. move_l()
  1685. convertlmove(lmove)
  1686. lightcapture()
  1687. if x-6 >= 0 or y+6 < 8:
  1688. if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
  1689. if board[x-5][y+5]=="-":
  1690. if lx3==x-6 and ly3==y+6:
  1691. board[x-5][y+5]="-"
  1692. lmovement2(board)
  1693. return lcapture += 1
  1694. elif lx4!=x-6 and ly4!=y+6:
  1695. 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])
  1696. move_l()
  1697. convertlmove(lmove)
  1698. lightcapture()
  1699. if x+6 < 8 and y-6 >= 0:
  1700. if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
  1701. if board[x+5][y-5]=="-":
  1702. if lx3==x+6 or ly3==y-6:
  1703. board[x+5][y-5]="-"
  1704. lmovement2(board)
  1705. return lcapture += 1
  1706. elif lx4!=x+6 and ly4!=y-6:
  1707. 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])
  1708. move_l()
  1709. convertlmove(lmove)
  1710. lightcapture()
  1711. if x+6 < 8 or y+6 < 8:
  1712. if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
  1713. if board[x+5][y+5]=="-":
  1714. if lx4==x+6 and ly4==y+6:
  1715. board[x+5][y+5]="-"
  1716. lmovement2(board)
  1717. return lcapture += 1
  1718. elif lx4!=x+6 and ly4!=y+6:
  1719. 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])
  1720. move_l()
  1721. convertlmove(lmove)
  1722. lightcapture()
  1723. elif lx3!=x+4 and ly3!=y+4:
  1724. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],number[x+4])
  1725. move_l()
  1726. convertlmove(lmove)
  1727. lightcapture()
  1728.  
  1729.  
  1730. elif lx2!=x-2 or ly2!=y+2:
  1731. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x],rettel[y+2],rebmun[x-2])
  1732. move_l()
  1733. convertlmove(lmove)
  1734. lightcapture()
  1735. if x+2 < 8 and y-2 >= 0:
  1736. if board[x+1][y-1]=="o" or board[x+1][y-1]=="O":
  1737. if board[x+2][y-2]=="-":
  1738. if dx2==x+2 or dy2==y-2:
  1739. board[x+1][y-1]="-"
  1740. lmovement(board)
  1741. return lcapture += 1
  1742. if x-4 >= 0 or y-4 >= 0:
  1743. if board[x-2][y-2]=="o" or board[x-2][y-2]=="O":
  1744. if board[x-3][y-3]=="-":
  1745. if lx3==x-4 and ly3==y-4:
  1746. board[x-3][y-3]="-"
  1747. lmovement1(board)
  1748. return lcapture +=1
  1749. if x-6 >= 0 or y-6 >= 0:
  1750. if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
  1751. if board[x-5][y-5]=="-":
  1752. if lx3==x-6 and ly3==y-6:
  1753. board[x-5][y-5]="-"
  1754. lmovement2(board)
  1755. return lcapture +=1
  1756. elif lx4!=x-6 and ly4!=y-6:
  1757. 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])
  1758. move_l()
  1759. convertlmove(lmove)
  1760. lightcapture()
  1761. if x-6 >= 0 or y+6 < 8:
  1762. if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
  1763. if board[x-5][y+5]=="-":
  1764. if lx3==x-6 and ly3==y+6:
  1765. board[x-5][y+5]="-"
  1766. lmovement2(board)
  1767. return lcapture += 1
  1768. elif lx4!=x-6 and ly4!=y+6:
  1769. 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])
  1770. move_l()
  1771. convertlmove(lmove)
  1772. lightcapture()
  1773. if x+6 < 8 and y-6 >= 0:
  1774. if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
  1775. if board[x+5][y-5]=="-":
  1776. if lx3==x+6 or ly3==y-6:
  1777. board[x+5][y-5]="-"
  1778. lmovement2(board)
  1779. return lcapture += 1
  1780. elif lx4!=x+6 and ly4!=y-6:
  1781. 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])
  1782. move_l()
  1783. convertlmove(lmove)
  1784. lightcapture()
  1785. if x+6 < 8 or y+6 < 8:
  1786. if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
  1787. if board[x+5][y+5]=="-":
  1788. if lx4==x+6 and ly4==y+6:
  1789. board[x+5][y+5]="-"
  1790. lmovement2(board)
  1791. return lcapture += 1
  1792. elif lx4!=x+6 and ly4!=y+6:
  1793. 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])
  1794. move_l()
  1795. convertlmove(lmove)
  1796. lightcapture()
  1797. elif lx3!=x-4 and ly3!=y-4:
  1798. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4])
  1799. move_l()
  1800. convertlmove(lmove)
  1801. lightcapture()
  1802. if x-4 >= 0 or y+4 < 8:
  1803. if board[x-2][y+2]=="o" or board[x-2][y+2]=="O":
  1804. if board[x-3][y+3]=="-":
  1805. if lx3==x-4 and ly3==y+4:
  1806. board[x-3][y+3]="-"
  1807. lmovement1(board)
  1808. return lcapture += 1
  1809. if x-6 >= 0 or y-6 >= 0:
  1810. if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
  1811. if board[x-5][y-5]=="-":
  1812. if lx3==x-6 and ly3==y-6:
  1813. board[x-5][y-5]="-"
  1814. lmovement2(board)
  1815. return lcapture +=1
  1816. elif lx4!=x-6 and ly4!=y-6:
  1817. 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])
  1818. move_l()
  1819. convertlmove(lmove)
  1820. lightcapture()
  1821. if x-6 >= 0 or y+6 < 8:
  1822. if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
  1823. if board[x-5][y+5]=="-":
  1824. if dx3==x-6 and dy3==y+6:
  1825. board[x-5][y+5]="-"
  1826. dmovement2(board)
  1827. return dcapture += 1
  1828. elif dx4!=x-6 and dy4!=y+6:
  1829. 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])
  1830. move_d()
  1831. convertdmove(dmove)
  1832. darkcapture()
  1833. if x+6 < 8 and y-6 >= 0:
  1834. if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
  1835. if board[x+5][y-5]=="-":
  1836. if dx3==x+6 or dy3==y-6:
  1837. board[x+5][y-5]="-"
  1838. dmovement2(board)
  1839. return dcapture += 1
  1840. elif dx4!=x+6 and dy4!=y-6:
  1841. 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])
  1842. move_d()
  1843. convertdmove(dmove)
  1844. darkcapture()
  1845. if x+6 < 8 or y+6 < 8:
  1846. if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
  1847. if board[x+5][y+5]=="-":
  1848. if dx4==x+6 and dy4==y+6:
  1849. board[x+5][y+5]="-"
  1850. dmovement2(board)
  1851. return dcapture += 1
  1852. elif dx4!=x+6 and dy4!=y+6:
  1853. 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])
  1854. move_d()
  1855. convertdmove(dmove)
  1856. darkcapture()
  1857. elif dx3!=x-4 and dy3!=y+4:
  1858. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4])
  1859. move_d()
  1860. convertdmove(dmove)
  1861. darkcapture()
  1862. if x+4 < 8 and y-4 >= 0:
  1863. if board[x+2][y-1]=="o" or board[x+2][y-2]=="O":
  1864. if board[x+3][y-3]=="-":
  1865. if dx3==x+4 or dy3==y-4:
  1866. board[x+3][y-3]="-"
  1867. dmovement1(board)
  1868. return dcapture += 1
  1869. if x-6 >= 0 or y-6 >= 0:
  1870. if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
  1871. if board[x-5][y-5]=="-":
  1872. if dx3==x-6 and dy3==y-6:
  1873. board[x-5][y-5]="-"
  1874. dmovement2(board)
  1875. return dcapture +=1
  1876. elif dx4!=x-6 and dy4!=y-6:
  1877. 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])
  1878. move_d()
  1879. convertdmove(dmove)
  1880. darkcapture()
  1881. if x-6 >= 0 or y+6 < 8:
  1882. if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
  1883. if board[x-5][y+5]=="-":
  1884. if dx3==x-6 and dy3==y+6:
  1885. board[x-5][y+5]="-"
  1886. dmovement2(board)
  1887. return dcapture += 1
  1888. elif dx4!=x-6 and dy4!=y+6:
  1889. 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])
  1890. move_d()
  1891. convertdmove(dmove)
  1892. darkcapture()
  1893. if x+6 < 8 and y-6 >= 0:
  1894. if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
  1895. if board[x+5][y-5]=="-":
  1896. if dx3==x+6 or dy3==y-6:
  1897. board[x+5][y-5]="-"
  1898. dmovement2(board)
  1899. return dcapture += 1
  1900. elif dx4!=x+6 and dy4!=y-6:
  1901. 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])
  1902. move_d()
  1903. convertdmove(dmove)
  1904. darkcapture()
  1905. if x+6 < 8 or y+6 < 8:
  1906. if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
  1907. if board[x+5][y+5]=="-":
  1908. if dx4==x+6 and dy4==y+6:
  1909. board[x+5][y+5]="-"
  1910. dmovement2(board)
  1911. return dcapture += 1
  1912. elif dx4!=x+6 and dy4!=y+6:
  1913. 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])
  1914. move_d()
  1915. convertdmove(dmove)
  1916. darkcapture()
  1917. elif dx3!=x+4 and dy3!=y-4:
  1918. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4])
  1919. move_d()
  1920. convertdmove(dmove)
  1921. darkcapture()
  1922. if x+4 < 8 or y+4 < 8:
  1923. if board[x+2][y+2]=="o" or board[x+2][y+2]=="O":
  1924. if board[x+3][y+3]=="-":
  1925. if dx3==x+4 and dy3==y+4:
  1926. board[x+1][y+1]="-"
  1927. dmovement1(board)
  1928. return dcapture += 1
  1929. if x-6 >= 0 or y-6 >= 0:
  1930. if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
  1931. if board[x-5][y-5]=="-":
  1932. if dx3==x-6 and dy3==y-6:
  1933. board[x-5][y-5]="-"
  1934. dmovement2(board)
  1935. return dcapture +=1
  1936. elif dx4!=x-6 and dy4!=y-6:
  1937. 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])
  1938. move_d()
  1939. convertdmove(dmove)
  1940. darkcapture()
  1941. if x-6 >= 0 or y+6 < 8:
  1942. if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
  1943. if board[x-5][y+5]=="-":
  1944. if dx3==x-6 and dy3==y+6:
  1945. board[x-5][y+5]="-"
  1946. dmovement2(board)
  1947. return dcapture += 1
  1948. elif dx4!=x-6 and dy4!=y+6:
  1949. 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])
  1950. move_d()
  1951. convertdmove(dmove)
  1952. darkcapture()
  1953. if x+6 < 8 and y-6 >= 0:
  1954. if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
  1955. if board[x+5][y-5]=="-":
  1956. if dx3==x+6 or dy3==y-6:
  1957. board[x+5][y-5]="-"
  1958. dmovement2(board)
  1959. return dcapture += 1
  1960. elif dx4!=x+6 and dy4!=y-6:
  1961. 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])
  1962. move_d()
  1963. convertdmove(dmove)
  1964. darkcapture()
  1965. if x+6 < 8 or y+6 < 8:
  1966. if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
  1967. if board[x+5][y+5]=="-":
  1968. if dx4==x+6 and dy4==y+6:
  1969. board[x+5][y+5]="-"
  1970. dmovement2(board)
  1971. return dcapture += 1
  1972. elif dx4!=x+6 and dy4!=y+6:
  1973. 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])
  1974. move_d()
  1975. convertdmove(dmove)
  1976. darkcapture()
  1977. elif dx3!=x+4 and dy3!=y+4:
  1978. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x+4])
  1979. move_d()
  1980. convertdmove(dmove)
  1981. darkcapture()
  1982. elif dx2!=x+2 and dy2!=y-2:
  1983. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x],rettel[y-2],rebmun[x+2])
  1984. move_d()
  1985. convertdmove(dmove)
  1986. darkcapture()
  1987. if x+2 < 8 or y+2 < 8:
  1988. if board[x+1][y+1]=="o" or board[x+1][y+1]=="O":
  1989. if board[x+2][y+2]=="-":
  1990. if dx2==x+2 and dy2==x+2:
  1991. board[x+1][y+1]="-"
  1992. dmovement(board)
  1993. return dcapture +=1
  1994. if x-4 >= 0 or y-4 >= 0:
  1995. if board[x-2][y-2]=="o" or board[x-2][y-2]=="O":
  1996. if board[x-3][y-3]=="-":
  1997. if dx3==x-4 and dy3==y-4:
  1998. board[x-3][y-3]="-"
  1999. dmovement1(board)
  2000. return dcapture +=1
  2001. if x-6 >= 0 or y-6 >= 0:
  2002. if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
  2003. if board[x-5][y-5]=="-":
  2004. if dx3==x-6 and dy3==y-6:
  2005. board[x-5][y-5]="-"
  2006. dmovement2(board)
  2007. return dcapture +=1
  2008. elif dx4!=x-6 and dy4!=y-6:
  2009. 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])
  2010. move_d()
  2011. convertdmove(dmove)
  2012. darkcapture()
  2013. if x-6 >= 0 or y+6 < 8:
  2014. if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
  2015. if board[x-5][y+5]=="-":
  2016. if dx3==x-6 and dy3==y+6:
  2017. board[x-5][y+5]="-"
  2018. dmovement2(board)
  2019. return dcapture += 1
  2020. elif dx4!=x-6 and dy4!=y+6:
  2021. 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])
  2022. move_d()
  2023. convertdmove(dmove)
  2024. darkcapture()
  2025. if x+6 < 8 and y-6 >= 0:
  2026. if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
  2027. if board[x+5][y-5]=="-":
  2028. if dx3==x+6 or dy3==y-6:
  2029. board[x+5][y-5]="-"
  2030. dmovement2(board)
  2031. return dcapture += 1
  2032. elif dx4!=x+6 and dy4!=y-6:
  2033. 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])
  2034. move_d()
  2035. convertdmove(dmove)
  2036. darkcapture()
  2037. if x+6 < 8 or y+6 < 8:
  2038. if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
  2039. if board[x+5][y+5]=="-":
  2040. if dx4==x+6 and dy4==y+6:
  2041. board[x+5][y+5]="-"
  2042. dmovement2(board)
  2043. return dcapture += 1
  2044. elif dx4!=x+6 and dy4!=y+6:
  2045. 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])
  2046. move_d()
  2047. convertdmove(dmove)
  2048. darkcapture()
  2049. elif dx3!=x-4 and dy3!=y-4:
  2050. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x-4])
  2051. move_d()
  2052. convertdmove(dmove)
  2053. darkcapture()
  2054. if x-4 >= 0 or y+4 < 8:
  2055. if board[x-2][y+2]=="o" or board[x-2][y+2]=="O":
  2056. if board[x-3][y+3]=="-":
  2057. if dx3==x-4 and dy3==y+4:
  2058. board[x-3][y+3]="-"
  2059. dmovement1(board)
  2060. return dcapture += 1
  2061. if x-6 >= 0 or y-6 >= 0:
  2062. if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
  2063. if board[x-5][y-5]=="-":
  2064. if dx3==x-6 and dy3==y-6:
  2065. board[x-5][y-5]="-"
  2066. dmovement2(board)
  2067. return dcapture +=1
  2068. elif dx4!=x-6 and dy4!=y-6:
  2069. 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])
  2070. move_d()
  2071. convertdmove(dmove)
  2072. darkcapture()
  2073. if x-6 >= 0 or y+6 < 8:
  2074. if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
  2075. if board[x-5][y+5]=="-":
  2076. if dx3==x-6 and dy3==y+6:
  2077. board[x-5][y+5]="-"
  2078. dmovement2(board)
  2079. return dcapture += 1
  2080. elif dx4!=x-6 and dy4!=y+6:
  2081. 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])
  2082. move_d()
  2083. convertdmove(dmove)
  2084. darkcapture()
  2085. if x+6 < 8 and y-6 >= 0:
  2086. if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
  2087. if board[x+5][y-5]=="-":
  2088. if dx3==x+6 or dy3==y-6:
  2089. board[x+5][y-5]="-"
  2090. dmovement2(board)
  2091. return dcapture += 1
  2092. elif dx4!=x+6 and dy4!=y-6:
  2093. 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])
  2094. move_d()
  2095. convertdmove(dmove)
  2096. darkcapture()
  2097. if x+6 < 8 or y+6 < 8:
  2098. if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
  2099. if board[x+5][y+5]=="-":
  2100. if dx4==x+6 and dy4==y+6:
  2101. board[x+5][y+5]="-"
  2102. dmovement2(board)
  2103. return dcapture += 1
  2104. elif dx4!=x+6 and dy4!=y+6:
  2105. 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])
  2106. move_d()
  2107. convertdmove(dmove)
  2108. darkcapture()
  2109. elif dx3!=x-4 and dy3!=y+4:
  2110. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x-4])
  2111. move_d()
  2112. convertdmove(dmove)
  2113. darkcapture()
  2114. if x+4 < 8 and y-4 >= 0:
  2115. if board[x+2][y-1]=="o" or board[x+2][y-2]=="O":
  2116. if board[x+3][y-3]=="-":
  2117. if dx3==x+4 or dy3==y-4:
  2118. board[x+3][y-3]="-"
  2119. dmovement1(board)
  2120. return dcapture += 1
  2121. if x-6 >= 0 or y-6 >= 0:
  2122. if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
  2123. if board[x-5][y-5]=="-":
  2124. if dx3==x-6 and dy3==y-6:
  2125. board[x-5][y-5]="-"
  2126. dmovement2(board)
  2127. return dcapture +=1
  2128. elif dx4!=x-6 and dy4!=y-6:
  2129. 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])
  2130. move_d()
  2131. convertdmove(dmove)
  2132. darkcapture()
  2133. if x-6 >= 0 or y+6 < 8:
  2134. if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
  2135. if board[x-5][y+5]=="-":
  2136. if dx3==x-6 and dy3==y+6:
  2137. board[x-5][y+5]="-"
  2138. dmovement2(board)
  2139. return dcapture += 1
  2140. elif dx4!=x-6 and dy4!=y+6:
  2141. 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])
  2142. move_d()
  2143. convertdmove(dmove)
  2144. darkcapture()
  2145. if x+6 < 8 and y-6 >= 0:
  2146. if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
  2147. if board[x+5][y-5]=="-":
  2148. if dx3==x+6 or dy3==y-6:
  2149. board[x+5][y-5]="-"
  2150. dmovement2(board)
  2151. return dcapture += 1
  2152. elif dx4!=x+6 and dy4!=y-6:
  2153. 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])
  2154. move_d()
  2155. convertdmove(dmove)
  2156. darkcapture()
  2157. if x+6 < 8 or y+6 < 8:
  2158. if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
  2159. if board[x+5][y+5]=="-":
  2160. if dx4==x+6 and dy4==y+6:
  2161. board[x+5][y+5]="-"
  2162. dmovement2(board)
  2163. return dcapture += 1
  2164. elif dx4!=x+6 and dy4!=y+6:
  2165. 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])
  2166. move_d()
  2167. convertdmove(dmove)
  2168. darkcapture()
  2169. elif dx3!=x+4 and dy3!=y-4:
  2170. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y-4],rebmun[x+4])
  2171. move_d()
  2172. convertdmove(dmove)
  2173. darkcapture()
  2174. if x+4 < 8 or y+4 < 8:
  2175. if board[x+2][y+2]=="o" or board[x+2][y+2]=="O":
  2176. if board[x+3][y+3]=="-":
  2177. if dx3==x+4 and dy3==y+4:
  2178. board[x+1][y+1]="-"
  2179. dmovement1(board)
  2180. return dcapture += 1
  2181. if x-6 >= 0 or y-6 >= 0:
  2182. if board[x-4][y-4]=="o" or board[x-4][y-4]=="O":
  2183. if board[x-5][y-5]=="-":
  2184. if dx3==x-6 and dy3==y-6:
  2185. board[x-5][y-5]="-"
  2186. dmovement2(board)
  2187. return dcapture +=1
  2188. elif dx4!=x-6 and dy4!=y-6:
  2189. 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])
  2190. move_d()
  2191. convertdmove(dmove)
  2192. darkcapture()
  2193. if x-6 >= 0 or y+6 < 8:
  2194. if board[x-4][y+4]=="o" or board[x-4][y+4]=="O":
  2195. if board[x-5][y+5]=="-":
  2196. if dx3==x-6 and dy3==y+6:
  2197. board[x-5][y+5]="-"
  2198. dmovement2(board)
  2199. return dcapture += 1
  2200. elif dx4!=x-6 and dy4!=y+6:
  2201. 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])
  2202. move_d()
  2203. convertdmove(dmove)
  2204. darkcapture()
  2205. if x+6 < 8 and y-6 >= 0:
  2206. if board[x+4][y-4]=="o" or board[x+4][y-4]=="O":
  2207. if board[x+5][y-5]=="-":
  2208. if dx3==x+6 or dy3==y-6:
  2209. board[x+5][y-5]="-"
  2210. dmovement2(board)
  2211. return dcapture += 1
  2212. elif dx4!=x+6 and dy4!=y-6:
  2213. 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])
  2214. move_d()
  2215. convertdmove(dmove)
  2216. darkcapture()
  2217. if x+6 < 8 or y+6 < 8:
  2218. if board[x+4][y+4]=="o" or board[x+4][y+4]=="O":
  2219. if board[x+5][y+5]=="-":
  2220. if dx4==x+6 and dy4==y+6:
  2221. board[x+5][y+5]="-"
  2222. dmovement2(board)
  2223. return dcapture += 1
  2224. elif dx4!=x+6 and dy4!=y+6:
  2225. 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])
  2226. move_d()
  2227. convertdmove(dmove)
  2228. darkcapture()
  2229. elif dx3!=x+4 and dy3!=y+4:
  2230. print("Invalid input. Mandatory capture on", rettel[y],rebmun[x], rettel[x-2],rebmun[y-2],rettel[y+4],rebmun[x+4])
  2231. move_d()
  2232. convertdmove(dmove)
  2233. darkcapture()
  2234. elif dx2!=x+2 and dy2!=y+2:
  2235. print("Invalid input. Mandatory capture on",rettel[y],rebmun[x],rettel[y+2],rebmun[x+2])
  2236. move_d()
  2237. convertdmove(dmove)
  2238. darkcapture()
  2239. else:
  2240. continue
  2241. else:
  2242. continue
  2243. else:
  2244. continue
Add Comment
Please, Sign In to add comment