Advertisement
Guest User

Untitled

a guest
Jan 14th, 2013
2,736
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 274.23 KB | None | 0 0
  1. //Program: 6 Men's Morris Project
  2. //Programmer: [redacted]
  3. //Purpose: version of Mill game - mix between checkers and tictactoe
  4. //11,917 lines
  5. //last updated 3/6/12
  6.  
  7. #include <iostream.h> // necessary for cin and cout commands
  8. #include <cstdlib> //necessary for rand( ) and srand( )
  9. #include <ctime> //necess for time( )
  10. #include <windows.h>
  11. #include <string.h>
  12.  
  13. int main()
  14. {
  15. Top:
  16. //Variable declarations
  17. float Num1; //stores num1
  18. int R1; //randomizer
  19. string Move; // place a piece
  20. string M2; //move from
  21. string M3; //move to
  22. string Val = "\x01"; //who's turn it is
  23. //places to go on gameboard
  24. string V1 = "A";
  25. string V2 = "B";
  26. string V3 = "C";
  27. string V4 = "D";
  28. string V5 = "E";
  29. string V6 = "F";
  30. string V7 = "G";
  31. string V8 = "H";
  32. string V9 = "I";
  33. string V10 = "J";
  34. string V11 = "K";
  35. string V12 = "L";
  36. string V13 = "M";
  37. string V14 = "N";
  38. string V15 = "O";
  39. string V16 = "P";
  40. string Spot; //WHERE COMPUTER PLACED
  41. string S; //WHERE COMPUTER MOVED
  42. string S2; //WHERE COMPUTER MOVED
  43. string Took; //WHERE COMPUTER CAPTURED
  44. //how many pieces per color left
  45. string Dir = "Place a piece at: "; //Directions
  46. string D2 = " ";
  47. float N1 = 6; //black //placing pieces
  48. float N2 = 6;//white
  49. //capturing pieces
  50. int Ct1 = 6; //black \x01
  51. int Ct2 = 6; //white \x02
  52. int Mill = 0;
  53. int Mi2 = 0;
  54. //count how many pieces left if < 3 then u lose
  55. string Cap = ""; //choose piece to capture
  56. string Cap2 = "";
  57. float Ans = 0; //play again
  58. system("cls");
  59. Start:
  60. //Ask User for input
  61. system("mode 100 , 50");
  62. cout << " \n";
  63. cout << " \n";
  64. cout << " \n";
  65. cout << " \n";
  66. cout << " \n";
  67. cout << " \n";
  68. cout << " \n";
  69. cout << " \n";
  70. cout << " \n";
  71. cout << " \n";
  72. cout << " ************************\n";
  73. cout << " \x02 Six-Men's Morris \x01 \n";
  74. cout << " \x01 \x02\n";
  75. cout << " \x02 1) 2 Players \x01\n";
  76. cout << " \x02 2) Vs. Computer \x01\n";
  77. cout << " \x01 3) Help \x02\n";
  78. cout << " \x02 4) Exit \x01\n";
  79. cout << " \x01 \x02\n";
  80. cout << " ************************\n";
  81. cout << " \n";
  82. cout << " Make a selection: ";
  83. cin >> Num1;
  84. //\x01 black, x02 white piece
  85. if (Num1 == 1)
  86. {
  87. system("cls");
  88. cout << " \n";
  89. cout << " \n";
  90. cout << " \n";
  91. cout << " \n"; //find who goes first
  92. cout << " \n";
  93. cout << " \n";
  94. cout << " \n";
  95. cout << " \n";
  96. cout << " \n";
  97. cout << " \n";
  98. cout << " To see who goes first: \n";
  99. cout << " ";
  100. system("pause");
  101. cout << " \n";
  102. srand((unsigned)time(0));//randomizer
  103. R1 = (rand()%2) +1; //1-2
  104. if (R1 == 1)
  105. {
  106. cout << " Player \x01 goes first. \n";
  107. Val = "\x01";
  108. }
  109. if (R1 >= 2)
  110. {
  111. cout << " Player \x02 goes first. \n";
  112. Val = "\x02";
  113. }
  114. cout << " ";
  115. system("pause");
  116. system("cls");
  117. Board:
  118. if (N1 < 0)
  119. {
  120. N1 = 0;
  121. }
  122. if (N2 < 0)
  123. {
  124. N2 = 0;
  125. }
  126. system("cls");
  127. cout << " \n";
  128. cout << " \n";
  129. cout << " \x01 Six-Men's Morris \x02 \n";
  130. cout << " \n";
  131. cout << " b \n";
  132. cout << " \n";
  133. cout << " a "<<V1<<"\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4"<<V2<<"\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4"<<V3<<" c\n";
  134. cout << " \xb3 \xb3 \xb3\n";
  135. cout << " \xb3 \xb3 \xb3\n";
  136. cout << " \xb3 \xb3 \xb3\n";
  137. cout << " \xb3 \xb3 \xb3\n";
  138. cout << " \xb3 \xb3 \xb3\n";
  139. cout << " \xb3 j "<<V10<<"\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4"<<V11<<"\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4"<<V12<<" l \xb3\n";
  140. cout << " \xb3 \xb3 \xb3 \xb3\n";
  141. cout << " \xb3 \xb3 k \xb3 \xb3\n";
  142. cout << " \xb3 \xb3 \xb3 \xb3\n";
  143. cout << " \xb3 \xb3 \xb3 \xb3\n";
  144. cout << " \xb3 \xb3 \xb3 \xb3\n";
  145. cout << " h "<<V8<<"\xc4\xc4\xc4\xc4\xc4\xc4\xc4"<<V9<<" i m "<<V13<<"\xc4\xc4\xc4\xc4\xc4\xc4\xc4"<<V4<<" d \n";
  146. cout << " \xb3 \xb3 \xb3 \xb3\n";
  147. cout << " \xb3 \xb3 \xb3 \xb3\n";
  148. cout << " \xb3 \xb3 \xb3 \xb3\n";
  149. cout << " \xb3 \xb3 o \xb3 \xb3\n";
  150. cout << " \xb3 \xb3 \xb3 \xb3\n";
  151. cout << " \xb3 p "<<V16<<"\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4"<<V15<<"\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4"<<V14<<" n \xb3\n";
  152. cout << " \xb3 \xb3 \xb3\n";
  153. cout << " \xb3 \xb3 \xb3\n";
  154. cout << " \xb3 \xb3 \xb3\n";
  155. cout << " \xb3 \xb3 \xb3\n";
  156. cout << " \xb3 \xb3 \xb3\n";
  157. cout << " g "<<V7<<"\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4"<<V6<<"\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4"<<V5<<" e\n";
  158. cout << " \n";
  159. cout << " f \n";
  160. cout << " \n";
  161. //Matching
  162. //ABC (8 MILLS)
  163. if (V1=="\x01" && V2 =="\x01" && V3 =="\x01" && Mill == 1) //put if match the mill = 1 wherever \xo1 at ABC
  164. {//Match ABC black pieces
  165. CBA:
  166. cout << " You formed a mill, choose a piece to capture.\n";
  167. cout << " Capture the piece at spot: ";
  168. cin >> Cap;
  169. //Capture a white piece
  170. if (Cap == "A" || Cap == "a")
  171. {
  172. if (V1 == "\x02")
  173. {
  174. V1 = "A";
  175. goto A1;
  176. }
  177. if (V1 != "\x02")
  178. {
  179. cout << " Invalid move. \n";
  180. cout << " ";
  181. system("pause");
  182. goto Board;
  183. }
  184. }
  185. if (Cap == "B" || Cap == "b")
  186. {
  187. if (V2 == "\x02")
  188. {
  189. V2 = "B";
  190. goto A1;
  191. }
  192. if (V2 != "\x02")
  193. {
  194. cout << " Invalid move. \n";
  195. cout << " ";
  196. system("pause");
  197. goto Board;
  198. }
  199. }
  200. if (Cap == "C" || Cap == "c")
  201. {
  202. if (V3 == "\x02")
  203. {
  204. V3 = "C";
  205. goto A1;
  206. }
  207. if (V3 != "\x02")
  208. {
  209. cout << " Invalid move. \n";
  210. cout << " ";
  211. system("pause");
  212. goto Board;
  213. }
  214. }
  215. if (Cap == "D" || Cap == "d")
  216. {
  217. if (V4 == "\x02")
  218. {
  219. V4 = "D";
  220. goto A1;
  221. }
  222. if (V4 != "\x02")
  223. {
  224. cout << " Invalid move. \n";
  225. cout << " ";
  226. system("pause");
  227. goto Board;
  228. }
  229. }
  230. if (Cap == "E" || Cap == "e")
  231. {
  232. if (V5 == "\x02")
  233. {
  234. V5 = "E";
  235. goto A1;
  236. }
  237. if (V5 != "\x02")
  238. {
  239. cout << " Invalid move. \n";
  240. cout << " ";
  241. system("pause");
  242. goto Board;
  243. }
  244. }
  245. if (Cap == "F" || Cap == "f")
  246. {
  247. if (V6 == "\x02")
  248. {
  249. V6 = "F";
  250. goto A1;
  251. }
  252. if (V6 != "\x02")
  253. {
  254. cout << " Invalid move. \n";
  255. cout << " ";
  256. system("pause");
  257. goto Board;
  258. }
  259. }
  260. if (Cap == "G" || Cap == "g")
  261. {
  262. if (V7 == "\x02")
  263. {
  264. V7 = "G";
  265. goto A1;
  266. }
  267. if (V7 != "\x02")
  268. {
  269. cout << " Invalid move. \n";
  270. cout << " ";
  271. system("pause");
  272. goto Board;
  273. }
  274. }
  275. if (Cap == "H" || Cap == "h")
  276. {
  277. if (V8 == "\x02")
  278. {
  279. V8 = "H";
  280. goto A1;
  281. }
  282. if (V8 != "\x02")
  283. {
  284. cout << " Invalid move. \n";
  285. cout << " ";
  286. system("pause");
  287. goto Board;
  288. }
  289. }
  290. if (Cap == "I" || Cap == "i")
  291. {
  292. if (V9 == "\x02")
  293. {
  294. V9 = "I";
  295. goto A1;
  296. }
  297. if (V9 != "\x02")
  298. {
  299. cout << " Invalid move. \n";
  300. cout << " ";
  301. system("pause");
  302. goto Board;
  303. }
  304. }
  305. if (Cap == "J" || Cap == "j")
  306. {
  307. if (V10 == "\x02")
  308. {
  309. V10 = "J";
  310. goto A1;
  311. }
  312. if (V10 != "\x02")
  313. {
  314. cout << " Invalid move. \n";
  315. cout << " ";
  316. system("pause");
  317. goto Board;
  318. }
  319. }
  320. if (Cap == "K" || Cap == "k")
  321. {
  322. if (V11 == "\x02")
  323. {
  324. V11 = "K";
  325. goto A1;
  326. }
  327. if (V11 != "\x02")
  328. {
  329. cout << " Invalid move. \n";
  330. cout << " ";
  331. system("pause");
  332. goto Board;
  333. }
  334. }
  335. if (Cap == "L" || Cap == "l")
  336. {
  337. if (V12 == "\x02")
  338. {
  339. V12 = "L";
  340. goto A1;
  341. }
  342. if (V12 != "\x02")
  343. {
  344. cout << " Invalid move. \n";
  345. cout << " ";
  346. system("pause");
  347. goto Board;
  348. }
  349. }
  350. if (Cap == "M" || Cap == "m")
  351. {
  352. if (V13 == "\x02")
  353. {
  354. V13 = "M";
  355. goto A1;
  356. }
  357. if (V13 != "\x02")
  358. {
  359. cout << " Invalid move. \n";
  360. cout << " ";
  361. system("pause");
  362. goto Board;
  363. }
  364. }
  365. if (Cap == "N" || Cap == "n")
  366. {
  367. if (V14 == "\x02")
  368. {
  369. V14 = "N";
  370. goto A1;
  371. }
  372. if (V14 != "\x02")
  373. {
  374. cout << " Invalid move. \n";
  375. cout << " ";
  376. system("pause");
  377. goto Board;
  378. }
  379. }
  380. if (Cap == "O" || Cap == "o")
  381. {
  382. if (V15 == "\x02")
  383. {
  384. V15 = "O";
  385. goto A1;
  386. }
  387. if (V15 != "\x02")
  388. {
  389. cout << " Invalid move. \n";
  390. cout << " ";
  391. system("pause");
  392. goto Board;
  393. }
  394. }
  395. if (Cap == "P" || Cap == "p")
  396. {
  397. if (V16 == "\x02")
  398. {
  399. V16 = "P";
  400. goto A1;
  401. }
  402. if (V16 != "\x02")
  403. {
  404. cout << " Invalid move. \n";
  405. cout << " ";
  406. system("pause");
  407. goto Board;
  408. }
  409. }
  410. A1:
  411. Ct2 = Ct2 - 1; //lost a piece
  412. Mill = 0;
  413. system("cls");
  414. goto Board;
  415. }
  416. if (V1=="\x02" && V2 =="\x02" && V3 =="\x02" && Mi2 == 1)
  417. {//Match ABC white pieces
  418. CWA:
  419. cout << " You formed a mill, choose a piece to capture.\n";
  420. cout << " Capture the piece at spot: ";
  421. cin >> Cap2;
  422. //Capture a black piece
  423. if (Cap2 == "A" || Cap2 == "a")
  424. {
  425. if (V1 == "\x01")
  426. {
  427. V1 = "A";
  428. goto B1;
  429. }
  430. if (V1 != "\x01")
  431. {
  432. cout << " Invalid move. \n";
  433. cout << " ";
  434. system("pause");
  435. goto Board;
  436. }
  437. }
  438. if (Cap2 == "B" || Cap2 == "b")
  439. {
  440. if (V2 == "\x01")
  441. {
  442. V2 = "B";
  443. goto B1;
  444. }
  445. if (V2 != "\x01")
  446. {
  447. cout << " Invalid move. \n";
  448. cout << " ";
  449. system("pause");
  450. goto Board;
  451. }
  452. }
  453. if (Cap2 == "C" || Cap2 == "c")
  454. {
  455. if (V3 == "\x01")
  456. {
  457. V3 = "C";
  458. goto B1;
  459. }
  460. if (V3 != "\x01")
  461. {
  462. cout << " Invalid move. \n";
  463. cout << " ";
  464. system("pause");
  465. goto Board;
  466. }
  467. }
  468. if (Cap2 == "D" || Cap2 == "d")
  469. {
  470. if (V4 == "\x01")
  471. {
  472. V4 = "D";
  473. goto B1;
  474. }
  475. if (V4 != "\x01")
  476. {
  477. cout << " Invalid move. \n";
  478. cout << " ";
  479. system("pause");
  480. goto Board;
  481. }
  482. }
  483. if (Cap2 == "E" || Cap2 == "e")
  484. {
  485. if (V5 == "\x01")
  486. {
  487. V5 = "E";
  488. goto B1;
  489. }
  490. if (V5 != "\x01")
  491. {
  492. cout << " Invalid move. \n";
  493. cout << " ";
  494. system("pause");
  495. goto Board;
  496. }
  497. }
  498. if (Cap2 == "F" || Cap2 == "f")
  499. {
  500. if (V6 == "\x01")
  501. {
  502. V6 = "F";
  503. goto B1;
  504. }
  505. if (V6 != "\x01")
  506. {
  507. cout << " Invalid move. \n";
  508. cout << " ";
  509. system("pause");
  510. goto Board;
  511. }
  512. }
  513. if (Cap2 == "G" || Cap2 == "g")
  514. {
  515. if (V7 == "\x01")
  516. {
  517. V7 = "G";
  518. goto B1;
  519. }
  520. if (V7 != "\x01")
  521. {
  522. cout << " Invalid move. \n";
  523. cout << " ";
  524. system("pause");
  525. goto Board;
  526. }
  527. }
  528. if (Cap2 == "H" || Cap2 == "h")
  529. {
  530. if (V8 == "\x01")
  531. {
  532. V8 = "H";
  533. goto B1;
  534. }
  535. if (V8 != "\x01")
  536. {
  537. cout << " Invalid move. \n";
  538. cout << " ";
  539. system("pause");
  540. goto Board;
  541. }
  542. }
  543. if (Cap2 == "I" || Cap2 == "i")
  544. {
  545. if (V9 == "\x01")
  546. {
  547. V9 = "I";
  548. goto B1;
  549. }
  550. if (V9 != "\x01")
  551. {
  552. cout << " Invalid move. \n";
  553. cout << " ";
  554. system("pause");
  555. goto Board;
  556. }
  557. }
  558. if (Cap2 == "J" || Cap2 == "j")
  559. {
  560. if (V10 == "\x01")
  561. {
  562. V10 = "J";
  563. goto B1;
  564. }
  565. if (V10 != "\x01")
  566. {
  567. cout << " Invalid move. \n";
  568. cout << " ";
  569. system("pause");
  570. goto Board;
  571. }
  572. }
  573. if (Cap2 == "K" || Cap2 == "k")
  574. {
  575. if (V11 == "\x01")
  576. {
  577. V11 = "K";
  578. goto B1;
  579. }
  580. if (V11 != "\x01")
  581. {
  582. cout << " Invalid move. \n";
  583. cout << " ";
  584. system("pause");
  585. goto Board;
  586. }
  587. }
  588. if (Cap2 == "L" || Cap2 == "l")
  589. {
  590. if (V12 == "\x01")
  591. {
  592. V12 = "L";
  593. goto B1;
  594. }
  595. if (V12 != "\x01")
  596. {
  597. cout << " Invalid move. \n";
  598. cout << " ";
  599. system("pause");
  600. goto Board;
  601. }
  602. }
  603. if (Cap2 == "M" || Cap2 == "m")
  604. {
  605. if (V13 == "\x01")
  606. {
  607. V13 = "M";
  608. goto B1;
  609. }
  610. if (V13 != "\x01")
  611. {
  612. cout << " Invalid move. \n";
  613. cout << " ";
  614. system("pause");
  615. goto Board;
  616. }
  617. }
  618. if (Cap2 == "N" || Cap2 == "n")
  619. {
  620. if (V14 == "\x01")
  621. {
  622. V14 = "N";
  623. goto B1;
  624. }
  625. if (V14 != "\x01")
  626. {
  627. cout << " Invalid move. \n";
  628. cout << " ";
  629. system("pause");
  630. goto Board;
  631. }
  632. }
  633. if (Cap2 == "O" || Cap2 == "o")
  634. {
  635. if (V15 == "\x01")
  636. {
  637. V15 = "O";
  638. goto B1;
  639. }
  640. if (V15 != "\x01")
  641. {
  642. cout << " Invalid move. \n";
  643. cout << " ";
  644. system("pause");
  645. goto Board;
  646. }
  647. }
  648. if (Cap2 == "P" || Cap2 == "p")
  649. {
  650. if (V16 == "\x01")
  651. {
  652. V16 = "P";
  653. goto B1;
  654. }
  655. if (V16 != "\x01")
  656. {
  657. cout << " Invalid move. \n";
  658. cout << " ";
  659. system("pause");
  660. goto Board;
  661. }
  662. }
  663. B1:
  664. Ct1 = Ct1 - 1; //lost a piece
  665. Mi2 = 0;
  666. goto Board;
  667. }
  668. //AHG
  669. if (V1=="\x01" && V8 =="\x01" && V7 =="\x01" && Mill == 1)
  670. {//Match AHG black pieces
  671. goto CBA;
  672. }
  673. if (V1=="\x02" && V8 =="\x02" && V7 =="\x02" && Mi2 == 1)
  674. {//Match AHG white pieces
  675. goto CWA;
  676. }
  677. //CDE
  678. if (V3=="\x01" && V4 =="\x01" && V5 =="\x01" && Mill == 1)
  679. {//Match CDE black pieces
  680. goto CBA;
  681. }
  682. if (V3=="\x02" && V4 =="\x02" && V5 =="\x02" && Mi2 == 1)
  683. {//Match CDE white pieces
  684. goto CWA;
  685. }
  686. //EFG
  687. if (V5=="\x01" && V6 =="\x01" && V7 =="\x01" && Mill == 1)
  688. {//Match EFG black pieces
  689. goto CBA;
  690. }
  691. if (V5=="\x02" && V6 =="\x02" && V7 =="\x02" && Mi2 == 1)
  692. {//Match EFG white pieces
  693. goto CWA;
  694. }
  695. //JKL
  696. if (V10=="\x01" && V11 =="\x01" && V12 =="\x01" && Mill == 1)
  697. {//Match JKL black pieces
  698. goto CBA;
  699. }
  700. if (V10=="\x02" && V11 =="\x02" && V12 =="\x02" && Mi2 == 1)
  701. {//Match JKL white pieces
  702. goto CWA;
  703. }
  704. //LMN
  705. if (V12=="\x01" && V13 =="\x01" && V14 =="\x01" && Mill == 1)
  706. {//Match LMN black pieces
  707. goto CBA;
  708. }
  709. if (V12=="\x02" && V13 =="\x02" && V14 =="\x02" && Mi2 == 1)
  710. {//Match LMN white pieces
  711. goto CWA;
  712. }
  713. //NOP
  714. if (V14=="\x01" && V15 =="\x01" && V16 =="\x01" && Mill == 1)
  715. {//Match NOP black pieces
  716. goto CBA;
  717. }
  718. if (V14=="\x02" && V15 =="\x02" && V16 =="\x02" && Mi2 == 1)
  719. {//Match NOP white pieces
  720. goto CWA;
  721. }
  722. //JIP
  723. if (V10=="\x01" && V9 =="\x01" && V16 =="\x01" && Mill == 1)
  724. {//Match JIP black pieces
  725. goto CBA;
  726. }
  727. if (V10=="\x02" && V9 =="\x02" && V16 =="\x02" && Mi2 == 1)
  728. {//Match JIP white pieces
  729. goto CWA;
  730. }
  731.  
  732. //if < 3 pieces left then win
  733. if (Ct1 < 3)
  734. {
  735. system("cls"); //winning smiley face
  736. cout << " \n";
  737. cout << " \n";
  738. cout << " \n";
  739. cout << " \n";
  740. cout << " \n";
  741. cout << " \n";
  742. cout << " \n";
  743. cout << " \n";
  744. cout << " \x02\x02\x02\x02\x02\x02\x02\x02\x02\x02 \n";
  745. cout << " \x02 \x02 \n";
  746. cout << " \x02 \x02 \x02 \x02 \n";
  747. cout << " \x02 \x02\x02\x02 \x02\x02\x02 \x02 \n";
  748. cout << " \x02 \x02 \x02 \x02 \n";
  749. cout << " \x02 \x02 \n";
  750. cout << " \x02 \x02 \x02 \x02 \n";
  751. cout << " \x02 \x02 \x02 \x02 \n";
  752. cout << " \x02 \x02\x02\x02\x02\x02\x02 \x02 \n";
  753. cout << " \x02 \x02 \n";
  754. cout << " \x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\n";
  755. cout << " \n";
  756. cout << " Player \x02 wins. \n";
  757. cout << " Do you want to play again? \n";
  758. cout << " 1) Yes \n"; //play again
  759. cout << " 2) No \n";
  760. cout << " Make a selection: ";
  761. cin >> Ans;
  762. if (Ans == 1)
  763. {
  764. system("cls");
  765. goto Top;
  766. }
  767. if (Ans >= 2)
  768. {
  769. system("cls");
  770. return 0;
  771. }
  772. }
  773. if (Ct2 < 3)
  774. {
  775. system("cls"); //winning smiley face
  776. cout << " \n";
  777. cout << " \n";
  778. cout << " \n";
  779. cout << " \n";
  780. cout << " \n";
  781. cout << " \n";
  782. cout << " \n";
  783. cout << " \n";
  784. cout << " \x01\x01\x01\x01\x01\x01\x01\x01\x01\x01 \n";
  785. cout << " \x01 \x01 \n";
  786. cout << " \x01 \x01 \x01 \x01 \n";
  787. cout << " \x01 \x01\x01\x01 \x01\x01\x01 \x01 \n";
  788. cout << " \x01 \x01 \x01 \x01 \n";
  789. cout << " \x01 \x01 \n";
  790. cout << " \x01 \x01 \x01 \x01 \n";
  791. cout << " \x01 \x01 \x01 \x01 \n";
  792. cout << " \x01 \x01\x01\x01\x01\x01\x01 \x01 \n";
  793. cout << " \x01 \x01 \n";
  794. cout << " \x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\n";
  795. cout << " \n";
  796. cout << " Player \x01 wins. \n";
  797. cout << " Do you want to play again? \n";
  798. cout << " 1) Yes \n"; //play again
  799. cout << " 2) No \n";
  800. cout << " Make a selection: ";
  801. cin >> Ans;
  802. if (Ans == 1)
  803. {
  804. system("cls");
  805. goto Top;
  806. }
  807. if (Ans >= 2)
  808. {
  809. system("cls");
  810. return 0;
  811. }
  812. }
  813.  
  814. //MOVE BOARD
  815. if (Mill < 1 && Mi2 < 1)
  816. {
  817. if (N1 <= 0 && N2 <=0)
  818. {
  819. cout << " \xc9\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcb\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbb\n";
  820. cout << " \xba Moving: \xba Pieces Left: \xba \n";
  821. cout << " \xba \xba \x01 " <<Ct1<<" \xba\n";
  822. cout << " \xba "<<Val<<" \xba \xba\n";
  823. cout << " \xba \xba \x02 " <<Ct2<<" \xba\n";
  824. cout << " \xc8\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xca\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbc\n";
  825. cout << " \n";
  826. }
  827. if (N1 > 0 || N2 >0)
  828. {
  829. cout << " \xc9\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcb\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcb\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbb\n";
  830. cout << " \xba Moving: \xba Pieces Left: \xba Pieces Left to Place: \xba \n";
  831. cout << " \xba \xba \x01 " <<Ct1<<" \xba \x01 " <<N1<<" \xba\n";
  832. cout << " \xba "<<Val<<" \xba \xba \xba\n";
  833. cout << " \xba \xba \x02 " <<Ct2<<" \xba \x02 " <<N2<<" \xba\n";
  834. cout << " \xc8\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xca\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xca\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbc\n";
  835. cout << " \n";
  836. }
  837. }
  838. if (N1 <= 0 && Val == "\x01" && Mill < 1 && Mi2 < 1) //MOVE PIECES
  839. {
  840. Dir = "Move a piece from: ";
  841. cout << " "<<Dir<<" ";
  842. cin >> M2;
  843. D2 = "to: ";
  844. cout << " "<<D2<<" ";
  845. cin >> M3;
  846. cout << " \n";
  847. }
  848. if (N2 <= 0 && Val == "\x02" && Mill < 1 && Mi2 < 1)
  849. {
  850. Dir = "Move a piece from: ";
  851. cout << " "<<Dir<<" ";
  852. cin >> M2;
  853. D2 = "to: ";
  854. cout << " "<<D2<<" ";
  855. cin >> M3;
  856. cout << " \n";
  857. }
  858.  
  859. if (N1 > 0 && Val == "\x01" && Mill < 1 && Mi2 < 1) //PLACE PIECES
  860. {
  861. cout << " "<<Dir<<" ";
  862. cin >> Move;
  863. cout << " "<<D2<<" \n";
  864. }
  865. if (N2 > 0 && Val == "\x02" && Mill < 1 && Mi2 <1)
  866. {
  867. cout << " "<<Dir<<" ";
  868. cin >> Move;
  869. cout << " "<<D2<<" \n";
  870. }
  871.  
  872. //place pieces
  873. if ((Move == "A" || Move == "a") && V1 == "A" && (N1 > 0 || N2 > 0))
  874. {
  875. if ( Val == "\x01")
  876. {
  877. V1 = "\x01";
  878. Val = "\x02";
  879. N1 = N1 - 1;
  880. if (V1=="\x01" && V2 =="\x01" && V3 =="\x01")
  881. {
  882. Mill = 1;
  883. }
  884. if (V1=="\x01" && V8 =="\x01" && V7 =="\x01")
  885. {
  886. Mill = 1;
  887. }
  888. goto Board;
  889. }
  890. if ( Val == "\x02")
  891. {
  892. V1 = "\x02";
  893. Val = "\x01";
  894. N2 = N2 - 1;
  895. if (V1=="\x02" && V2 =="\x02" && V3 =="\x02")
  896. {
  897. Mi2 = 1;
  898. }
  899. if (V1=="\x02" && V8 =="\x02" && V7 =="\x02")
  900. {
  901. Mi2 = 1;
  902. }
  903. goto Board;
  904. }
  905. }
  906. if ((Move == "A" || Move == "a") && V1 != "A" && (N1 > 0 || N2 > 0))
  907. {
  908. cout << " That spot is already taken. \n";
  909. cout << " ";
  910. system("pause");
  911. goto Board;
  912. }
  913.  
  914. if ((Move == "B" || Move == "b") && V2 == "B" && (N1 > 0 || N2 > 0))
  915. {
  916. if ( Val == "\x01")
  917. {
  918. V2 = "\x01";
  919. Val = "\x02";
  920. N1 = N1 - 1;
  921. if (V1=="\x01" && V2 =="\x01" && V3 =="\x01")
  922. {
  923. Mill = 1;
  924. }
  925. goto Board;
  926. }
  927. if ( Val == "\x02")
  928. {
  929. V2 = "\x02";
  930. Val = "\x01";
  931. N2 = N2 - 1;
  932. if (V1=="\x02" && V2 =="\x02" && V3 =="\x02")
  933. {
  934. Mi2 = 1;
  935. }
  936. goto Board;
  937. }
  938. }
  939. if ((Move == "B" || Move == "b") && V2 != "B" && (N1 > 0 || N2 > 0))
  940. {
  941. cout << " That spot is already taken. \n";
  942. cout << " ";
  943. system("pause");
  944. goto Board;
  945. }
  946.  
  947. if ((Move == "C" || Move == "c") && V3 == "C" && (N1 > 0 || N2 > 0))
  948. {
  949. if ( Val == "\x01")
  950. {
  951. V3 = "\x01";
  952. Val = "\x02";
  953. N1 = N1 - 1;
  954. if (V1=="\x01" && V2 =="\x01" && V3 =="\x01")
  955. {
  956. Mill = 1;
  957. }
  958. if (V3=="\x01" && V4 =="\x01" && V5 =="\x01")
  959. {
  960. Mill = 1;
  961. }
  962. goto Board;
  963. }
  964. if ( Val == "\x02")
  965. {
  966. V3 = "\x02";
  967. Val = "\x01";
  968. N2 = N2 - 1;
  969. if (V1=="\x02" && V2 =="\x02" && V3 =="\x02")
  970. {
  971. Mi2 = 1;
  972. }
  973. if (V3=="\x02" && V4 =="\x02" && V5 =="\x02")
  974. {
  975. Mi2 = 1;
  976. }
  977. goto Board;
  978. }
  979. }
  980. if ((Move == "C" || Move == "c") && V3 != "C" && (N1 > 0 || N2 > 0))
  981. {
  982. cout << " That spot is already taken. \n";
  983. cout << " ";
  984. system("pause");
  985. goto Board;
  986. }
  987.  
  988. if ((Move == "D" || Move == "d") && V4 == "D" && (N1 > 0 || N2 > 0))
  989. {
  990. if ( Val == "\x01")
  991. {
  992. V4 = "\x01";
  993. Val = "\x02";
  994. N1 = N1 - 1;
  995. if (V3=="\x01" && V4 =="\x01" && V5 =="\x01")
  996. {
  997. Mill = 1;
  998. }
  999. goto Board;
  1000. }
  1001. if ( Val == "\x02")
  1002. {
  1003. V4 = "\x02";
  1004. Val = "\x01";
  1005. N2 = N2 - 1;
  1006. if (V3=="\x02" && V4 =="\x02" && V5 =="\x02")
  1007. {
  1008. Mi2 = 1;
  1009. }
  1010. goto Board;
  1011. }
  1012. }
  1013. if ((Move == "D" || Move == "d") && V4 != "D" && (N1 > 0 || N2 > 0))
  1014. {
  1015. cout << " That spot is already taken. \n";
  1016. cout << " ";
  1017. system("pause");
  1018. goto Board;
  1019. }
  1020.  
  1021. if ((Move == "E" || Move == "e") && V5 == "E" && (N1 > 0 || N2 > 0))
  1022. {
  1023. if ( Val == "\x01")
  1024. {
  1025. V5 = "\x01";
  1026. Val = "\x02";
  1027. N1 = N1 - 1;
  1028. if (V3=="\x01" && V4 =="\x01" && V5 =="\x01")
  1029. {
  1030. Mill = 1;
  1031. }
  1032. if (V5=="\x01" && V6 =="\x01" && V7 =="\x01")
  1033. {
  1034. Mill = 1;
  1035. }
  1036. goto Board;
  1037. }
  1038. if ( Val == "\x02")
  1039. {
  1040. V5 = "\x02";
  1041. Val = "\x01";
  1042. N2 = N2 - 1;
  1043. if (V3=="\x02" && V4 =="\x02" && V5 =="\x02")
  1044. {
  1045. Mi2 = 1;
  1046. }
  1047. if (V5=="\x02" && V6 =="\x02" && V7 =="\x02")
  1048. {
  1049. Mi2 = 1;
  1050. }
  1051. goto Board;
  1052. }
  1053. }
  1054. if ((Move == "E" || Move == "e") && V5 != "E" && (N1 > 0 || N2 > 0))
  1055. {
  1056. cout << " That spot is already taken. \n";
  1057. cout << " ";
  1058. system("pause");
  1059. goto Board;
  1060. }
  1061.  
  1062. if ((Move == "F" || Move == "f") && V6 == "F" && (N1 > 0 || N2 > 0))
  1063. {
  1064. if ( Val == "\x01")
  1065. {
  1066. V6 = "\x01";
  1067. Val = "\x02";
  1068. N1 = N1 - 1;
  1069. if (V5=="\x01" && V6 =="\x01" && V7 =="\x01")
  1070. {
  1071. Mill = 1;
  1072. }
  1073. goto Board;
  1074. }
  1075. if ( Val == "\x02")
  1076. {
  1077. V6 = "\x02";
  1078. Val = "\x01";
  1079. N2 = N2 - 1;
  1080. if (V5=="\x02" && V6 =="\x02" && V7 =="\x02")
  1081. {
  1082. Mi2 = 1;
  1083. }
  1084. goto Board;
  1085. }
  1086. }
  1087. if ((Move == "F" || Move == "f") && V6 != "F" && (N1 > 0 || N2 > 0))
  1088. {
  1089. cout << " That spot is already taken. \n";
  1090. cout << " ";
  1091. system("pause");
  1092. goto Board;
  1093. }
  1094.  
  1095. if ((Move == "G" || Move == "g") && V7 == "G" && (N1 > 0 || N2 > 0))
  1096. {
  1097. if ( Val == "\x01")
  1098. {
  1099. V7 = "\x01";
  1100. Val = "\x02";
  1101. N1 = N1 - 1;
  1102. if (V1=="\x01" && V8 =="\x01" && V7 =="\x01")
  1103. {
  1104. Mill = 1;
  1105. }
  1106. if (V5=="\x01" && V6 =="\x01" && V7 =="\x01")
  1107. {
  1108. Mill = 1;
  1109. }
  1110. goto Board;
  1111. }
  1112. if ( Val == "\x02")
  1113. {
  1114. V7 = "\x02";
  1115. Val = "\x01";
  1116. N2 = N2 - 1;
  1117. if (V1=="\x02" && V8 =="\x02" && V7 =="\x02")
  1118. {
  1119. Mi2 = 1;
  1120. }
  1121. if (V5=="\x02" && V6 =="\x02" && V7 =="\x02")
  1122. {
  1123. Mi2 = 1;
  1124. }
  1125. goto Board;
  1126. }
  1127. }
  1128. if ((Move == "G" || Move == "g") && V7 != "G" && (N1 > 0 || N2 > 0))
  1129. {
  1130. cout << " That spot is already taken. \n";
  1131. cout << " ";
  1132. system("pause");
  1133. goto Board;
  1134. }
  1135.  
  1136. if ((Move == "H" || Move == "h") && V8 == "H" && (N1 > 0 || N2 > 0))
  1137. {
  1138. if ( Val == "\x01")
  1139. {
  1140. V8 = "\x01";
  1141. Val = "\x02";
  1142. N1 = N1 - 1;
  1143. if (V1=="\x01" && V8 =="\x01" && V7 =="\x01")
  1144. {
  1145. Mill = 1;
  1146. }
  1147. goto Board;
  1148. }
  1149. if ( Val == "\x02")
  1150. {
  1151. V8 = "\x02";
  1152. Val = "\x01";
  1153. N2 = N2 - 1;
  1154. if (V1=="\x02" && V8 =="\x02" && V7 =="\x02")
  1155. {
  1156. Mi2 = 1;
  1157. }
  1158. goto Board;
  1159. }
  1160. }
  1161. if ((Move == "H" || Move == "h") && V8 != "H" && (N1 > 0 || N2 > 0))
  1162. {
  1163. cout << " That spot is already taken. \n";
  1164. cout << " ";
  1165. system("pause");
  1166. goto Board;
  1167. }
  1168.  
  1169. if ((Move == "I" || Move == "i") && V9 == "I" && (N1 > 0 || N2 > 0))
  1170. {
  1171. if ( Val == "\x01")
  1172. {
  1173. V9 = "\x01";
  1174. Val = "\x02";
  1175. N1 = N1 - 1;
  1176. if (V10=="\x01" && V9 =="\x01" && V16 =="\x01")
  1177. {
  1178. Mill = 1;
  1179. }
  1180. goto Board;
  1181. }
  1182. if ( Val == "\x02")
  1183. {
  1184. V9 = "\x02";
  1185. Val = "\x01";
  1186. N2 = N2 - 1;
  1187. if (V10=="\x02" && V9 =="\x02" && V16 =="\x02")
  1188. {
  1189. Mi2 = 1;
  1190. }
  1191. goto Board;
  1192. }
  1193. }
  1194. if ((Move == "I" || Move == "i") && V9 != "I" && (N1 > 0 || N2 > 0))
  1195. {
  1196. cout << " That spot is already taken. \n";
  1197. cout << " ";
  1198. system("pause");
  1199. goto Board;
  1200. }
  1201.  
  1202. if ((Move == "J" || Move == "j") && V10 == "J" && (N1 > 0 || N2 > 0))
  1203. {
  1204. if ( Val == "\x01")
  1205. {
  1206. V10 = "\x01";
  1207. Val = "\x02";
  1208. N1 = N1 - 1;
  1209. if (V10=="\x01" && V11 =="\x01" && V12 =="\x01")
  1210. {
  1211. Mill = 1;
  1212. }
  1213. if (V10=="\x01" && V9 =="\x01" && V16 =="\x01")
  1214. {
  1215. Mill = 1;
  1216. }
  1217. goto Board;
  1218. }
  1219. if ( Val == "\x02")
  1220. {
  1221. V10 = "\x02";
  1222. Val = "\x01";
  1223. N2 = N2 - 1;
  1224. if (V10=="\x02" && V11 =="\x02" && V12 =="\x02")
  1225. {
  1226. Mi2 = 1;
  1227. }
  1228. if (V10=="\x02" && V9 =="\x02" && V16 =="\x02")
  1229. {
  1230. Mi2 = 1;
  1231. }
  1232. goto Board;
  1233. }
  1234. }
  1235. if ((Move == "J" || Move == "j") && V10 != "J" && (N1 > 0 || N2 > 0))
  1236. {
  1237. cout << " That spot is already taken. \n";
  1238. cout << " ";
  1239. system("pause");
  1240. goto Board;
  1241. }
  1242.  
  1243. if ((Move == "K" || Move == "k") && V11 == "K" && (N1 > 0 || N2 > 0))
  1244. {
  1245. if ( Val == "\x01")
  1246. {
  1247. V11 = "\x01";
  1248. Val = "\x02";
  1249. N1 = N1 - 1;
  1250. if (V10=="\x01" && V11 =="\x01" && V12 =="\x01")
  1251. {
  1252. Mill = 1;
  1253. }
  1254. goto Board;
  1255. }
  1256. if ( Val == "\x02")
  1257. {
  1258. V11 = "\x02";
  1259. Val = "\x01";
  1260. N2 = N2 - 1;
  1261. if (V10=="\x02" && V11 =="\x02" && V12 =="\x02")
  1262. {
  1263. Mi2 = 1;
  1264. }
  1265. goto Board;
  1266. }
  1267. }
  1268. if ((Move == "K" || Move == "k") && V11 != "K" && (N1 > 0 || N2 > 0))
  1269. {
  1270. cout << " That spot is already taken. \n";
  1271. cout << " ";
  1272. system("pause");
  1273. goto Board;
  1274. }
  1275.  
  1276. if ((Move == "L" || Move == "l") && V12 == "L" && (N1 > 0 || N2 > 0))
  1277. {
  1278. if ( Val == "\x01")
  1279. {
  1280. V12 = "\x01";
  1281. Val = "\x02";
  1282. N1 = N1 - 1;
  1283. if (V10=="\x01" && V11 =="\x01" && V12 =="\x01")
  1284. {
  1285. Mill = 1;
  1286. }
  1287. if (V12=="\x01" && V13 =="\x01" && V14 =="\x01")
  1288. {
  1289. Mill = 1;
  1290. }
  1291. goto Board;
  1292. }
  1293. if ( Val == "\x02")
  1294. {
  1295. V12 = "\x02";
  1296. Val = "\x01";
  1297. N2 = N2 - 1;
  1298. if (V10=="\x02" && V11 =="\x02" && V12 =="\x02")
  1299. {
  1300. Mi2 = 1;
  1301. }
  1302. if (V12=="\x02" && V13 =="\x02" && V14 =="\x02")
  1303. {
  1304. Mi2 = 1;
  1305. }
  1306. goto Board;
  1307. }
  1308. }
  1309. if ((Move == "L" || Move == "l") && V12 != "L" && (N1 > 0 || N2 > 0))
  1310. {
  1311. cout << " That spot is already taken. \n";
  1312. cout << " ";
  1313. system("pause");
  1314. goto Board;
  1315. }
  1316.  
  1317. if ((Move == "M" || Move == "m") && V13 == "M" && (N1 > 0 || N2 > 0))
  1318. {
  1319. if ( Val == "\x01")
  1320. {
  1321. V13 = "\x01";
  1322. Val = "\x02";
  1323. N1 = N1 - 1;
  1324. if (V12=="\x01" && V13 =="\x01" && V14 =="\x01")
  1325. {
  1326. Mill = 1;
  1327. }
  1328. goto Board;
  1329. }
  1330. if ( Val == "\x02")
  1331. {
  1332. V13 = "\x02";
  1333. Val = "\x01";
  1334. N2 = N2 - 1;
  1335. if (V12=="\x02" && V13 =="\x02" && V14 =="\x02")
  1336. {
  1337. Mi2 = 1;
  1338. }
  1339. goto Board;
  1340. }
  1341. }
  1342. if ((Move == "M" || Move == "m") && V13 != "M" && (N1 > 0 || N2 > 0))
  1343. {
  1344. cout << " That spot is already taken. \n";
  1345. cout << " ";
  1346. system("pause");
  1347. goto Board;
  1348. }
  1349.  
  1350. if ((Move == "N" || Move == "n") && V14 == "N" && (N1 > 0 || N2 > 0))
  1351. {
  1352. if ( Val == "\x01")
  1353. {
  1354. V14 = "\x01";
  1355. Val = "\x02";
  1356. N1 = N1 - 1;
  1357. if (V12=="\x01" && V13 =="\x01" && V14 =="\x01")
  1358. {
  1359. Mill = 1;
  1360. }
  1361. if (V14=="\x01" && V15 =="\x01" && V16 =="\x01")
  1362. {
  1363. Mill = 1;
  1364. }
  1365. goto Board;
  1366. }
  1367. if ( Val == "\x02")
  1368. {
  1369. V14 = "\x02";
  1370. Val = "\x01";
  1371. N2 = N2 - 1;
  1372. if (V12=="\x02" && V13 =="\x02" && V14 =="\x02")
  1373. {
  1374. Mi2 = 1;
  1375. }
  1376. if (V14=="\x02" && V15 =="\x02" && V16 =="\x02")
  1377. {
  1378. Mi2 = 1;
  1379. }
  1380. goto Board;
  1381. }
  1382. }
  1383. if ((Move == "N" || Move == "n") && V14 != "N" && (N1 > 0 || N2 > 0))
  1384. {
  1385. cout << " That spot is already taken. \n";
  1386. cout << " ";
  1387. system("pause");
  1388. goto Board;
  1389. }
  1390.  
  1391. if ((Move == "O" || Move == "o") && V15 == "O" && (N1 > 0 || N2 > 0))
  1392. {
  1393. if ( Val == "\x01")
  1394. {
  1395. V15 = "\x01";
  1396. Val = "\x02";
  1397. N1 = N1 - 1;
  1398. if (V14=="\x01" && V15 =="\x01" && V16 =="\x01")
  1399. {
  1400. Mill = 1;
  1401. }
  1402. goto Board;
  1403. }
  1404. if ( Val == "\x02")
  1405. {
  1406. V15 = "\x02";
  1407. Val = "\x01";
  1408. N2 = N2 - 1;
  1409. if (V14=="\x02" && V15 =="\x02" && V16 =="\x02")
  1410. {
  1411. Mi2 = 1;
  1412. }
  1413. goto Board;
  1414. }
  1415. }
  1416. if ((Move == "O" || Move == "o") && V15 != "O" && (N1 > 0 || N2 > 0))
  1417. {
  1418. cout << " That spot is already taken. \n";
  1419. cout << " ";
  1420. system("pause");
  1421. goto Board;
  1422. }
  1423.  
  1424. if ((Move == "P" || Move == "p") && V16 == "P" && (N1 > 0 || N2 > 0))
  1425. {
  1426. if ( Val == "\x01")
  1427. {
  1428. V16 = "\x01";
  1429. Val = "\x02";
  1430. N1 = N1 - 1;
  1431. if (V14=="\x01" && V15 =="\x01" && V16 =="\x01")
  1432. {
  1433. Mill = 1;
  1434. }
  1435. if (V10=="\x01" && V9 =="\x01" && V16 =="\x01")
  1436. {
  1437. Mill = 1;
  1438. }
  1439. goto Board;
  1440. }
  1441. if ( Val == "\x02")
  1442. {
  1443. V16 = "\x02";
  1444. Val = "\x01";
  1445. N2 = N2 - 1;
  1446. if (V14=="\x02" && V15 =="\x02" && V16 =="\x02")
  1447. {
  1448. Mi2 = 1;
  1449. }
  1450. if (V10=="\x02" && V9 =="\x02" && V16 =="\x02")
  1451. {
  1452. Mi2 = 1;
  1453. }
  1454. goto Board;
  1455. }
  1456. }
  1457. if ((Move == "P" || Move == "p") && V16 != "P" && (N1 > 0 || N2 > 0))
  1458. {
  1459. cout << " That spot is already taken. \n";
  1460. cout << " ";
  1461. system("pause");
  1462. goto Board;
  1463. }
  1464.  
  1465. //Outer board move code
  1466. //Move pieces A to b or h
  1467. if ((M2 == "A" || M2 == "a") && V1 != "A") //add 9 spaces
  1468. {
  1469. if ((M3 == "B" || M3 == "b") && V2 == "B")
  1470. {
  1471. if ( Val == "\x01" && V1 == "\x01")
  1472. {
  1473. V2 = "\x01";
  1474. V1 = "A";
  1475. Val = "\x02";
  1476. goto Board;
  1477. }
  1478. if ( Val == "\x01" && V1 != "\x01")
  1479. {
  1480. cout << " Invalid move. \n";
  1481. cout << " ";
  1482. system("pause");
  1483. goto Board;
  1484. }
  1485. if ( Val == "\x02" && V1 == "\x02")
  1486. {
  1487. V2 = "\x02";
  1488. V1 = "A";
  1489. Val = "\x01";
  1490. goto Board;
  1491. }
  1492. if ( Val == "\x02" && V1 != "\x02")
  1493. {
  1494. cout << " Invalid move. \n";
  1495. cout << " ";
  1496. system("pause");
  1497. goto Board;
  1498. }
  1499. }
  1500. if ((M3 == "B" || M3 == "b") && V2 != "B")
  1501. {
  1502. cout << " That spot is already taken. \n";
  1503. cout << " ";
  1504. system("pause");
  1505. goto Board;
  1506. }
  1507. if ((M3 == "H" || M3 == "h") && V8 == "H")
  1508. {
  1509. if ( Val == "\x01" && V1 == "\x01")
  1510. {
  1511. V8 = "\x01";
  1512. V1 = "A";
  1513. Val = "\x02";
  1514. goto Board;
  1515. }
  1516. if ( Val == "\x01" && V1 != "\x01")
  1517. {
  1518. cout << " Invalid move. \n";
  1519. cout << " ";
  1520. system("pause");
  1521. goto Board;
  1522. }
  1523. if ( Val == "\x02" && V1 == "\x02")
  1524. {
  1525. V8 = "\x02";
  1526. V1 = "A";
  1527. Val = "\x01";
  1528. goto Board;
  1529. }
  1530. if ( Val == "\x02" && V1 != "\x02")
  1531. {
  1532. cout << " Invalid move. \n";
  1533. cout << " ";
  1534. system("pause");
  1535. goto Board;
  1536. }
  1537. }
  1538. if ((M3 == "H" || M3 == "h") && V8 != "H")
  1539. {
  1540. cout << " That spot is already taken. \n";
  1541. cout << " ";
  1542. system("pause");
  1543. goto Board;
  1544. }
  1545. if ((M3 != "B" || M3 != "b") || (M3 != "H" || M3 !="h"))
  1546. {
  1547. cout << " Invalid move. \n";
  1548. cout << " ";
  1549. system("pause");
  1550. goto Board;
  1551. }
  1552. }
  1553. if ((M2 == "A" || M2 =="a") && V1 == "A")
  1554. {
  1555. cout << " Invalid move. \n";
  1556. cout << " ";
  1557. system("pause");
  1558. goto Board;
  1559. }
  1560. //Move from B to c a k
  1561. if ((M2 == "B" || M2 == "b") && V2 != "B")
  1562. {
  1563. if ((M3 == "C" || M3 == "c") && V3 == "C")
  1564. {
  1565. if ( Val == "\x01" && V2 == "\x01")
  1566. {
  1567. V3 = "\x01";
  1568. V2 = "B";
  1569. Val = "\x02";
  1570. if (V3=="\x01" && V4 =="\x01" && V5 =="\x01")
  1571. {
  1572. Mill = 1;
  1573. }
  1574. goto Board;
  1575. }
  1576. if ( Val == "\x01" && V2 != "\x01")
  1577. {
  1578. cout << " Invalid move. \n";
  1579. cout << " ";
  1580. system("pause");
  1581. goto Board;
  1582. }
  1583. if ( Val == "\x02" && V2 == "\x02")
  1584. {
  1585. V3 = "\x02";
  1586. V2 = "B";
  1587. Val = "\x01";
  1588. if (V3=="\x02" && V4 =="\x02" && V5 =="\x02")
  1589. {
  1590. Mi2 = 1;
  1591. }
  1592. goto Board;
  1593. }
  1594. if ( Val == "\x02" && V2 != "\x02")
  1595. {
  1596. cout << " Invalid move. \n";
  1597. cout << " ";
  1598. system("pause");
  1599. goto Board;
  1600. }
  1601. }
  1602. if ((M3 == "C" || M3 == "c") && V3 != "C")
  1603. {
  1604. cout << " That spot is already taken. \n";
  1605. cout << " ";
  1606. system("pause");
  1607. goto Board;
  1608. }
  1609. if ((M3 == "A" || M3 == "a") && V1 == "A")
  1610. {
  1611. if ( Val == "\x01" && V2 == "\x01")
  1612. {
  1613. V1 = "\x01";
  1614. V2 = "B";
  1615. Val = "\x02";
  1616. if (V1=="\x01" && V8 =="\x01" && V7 =="\x01")
  1617. {
  1618. Mill = 1;
  1619. }
  1620. goto Board;
  1621. }
  1622. if ( Val == "\x01" && V2 != "\x01")
  1623. {
  1624. cout << " Invalid move. \n";
  1625. cout << " ";
  1626. system("pause");
  1627. goto Board;
  1628. }
  1629. if ( Val == "\x02" && V2 == "\x02")
  1630. {
  1631. V1 = "\x02";
  1632. V2 = "B";
  1633. Val = "\x01";
  1634. if (V1=="\x02" && V8 =="\x02" && V7 =="\x02")
  1635. {
  1636. Mi2 = 1;
  1637. }
  1638. goto Board;
  1639. }
  1640. if ( Val == "\x02" && V2 != "\x02")
  1641. {
  1642. cout << " Invalid move. \n";
  1643. cout << " ";
  1644. system("pause");
  1645. goto Board;
  1646. }
  1647. }
  1648. if ((M3 == "A" || M3 == "a") && V1 != "A")
  1649. {
  1650. cout << " That spot is already taken. \n";
  1651. cout << " ";
  1652. system("pause");
  1653. goto Board;
  1654. }
  1655.  
  1656. if ((M3 == "K" || M3 == "k") && V11 == "K")
  1657. {
  1658. if ( Val == "\x01" && V2 == "\x01")
  1659. {
  1660. V11 = "\x01";
  1661. V2 = "B";
  1662. Val = "\x02";
  1663. if (V10=="\x01" && V11 =="\x01" && V12 =="\x01")
  1664. {
  1665. Mill = 1;
  1666. }
  1667. goto Board;
  1668. }
  1669. if ( Val == "\x01" && V2 != "\x01")
  1670. {
  1671. cout << " Invalid move. \n";
  1672. cout << " ";
  1673. system("pause");
  1674. goto Board;
  1675. }
  1676. if ( Val == "\x02" && V2 == "\x02")
  1677. {
  1678. V11 = "\x02";
  1679. V2 = "B";
  1680. Val = "\x01";
  1681. if (V10=="\x02" && V11 =="\x02" && V12 =="\x02")
  1682. {
  1683. Mi2 = 1;
  1684. }
  1685. goto Board;
  1686. }
  1687. if ( Val == "\x02" && V2 != "\x02")
  1688. {
  1689. cout << " Invalid move. \n";
  1690. cout << " ";
  1691. system("pause");
  1692. goto Board;
  1693. }
  1694. }
  1695. if ((M3 == "K" || M3 == "k") && V11 != "K")
  1696. {
  1697. cout << " That spot is already taken. \n";
  1698. cout << " ";
  1699. system("pause");
  1700. goto Board;
  1701. }
  1702. if ((M3 != "A" || M3 != "a") || (M3 != "C" || M3 !="c") || (M3 != "K" || M3 != "k"))
  1703. {
  1704. cout << " Invalid move. \n";
  1705. cout << " ";
  1706. system("pause");
  1707. goto Board;
  1708. }
  1709. }
  1710. if ((M2 == "B" || M2 =="b") && V2 == "B")
  1711. {
  1712. cout << " Invalid move. \n";
  1713. cout << " ";
  1714. system("pause");
  1715. goto Board;
  1716. }
  1717.  
  1718. //Move C to b d
  1719. if ((M2 == "C" || M2 == "c") && V3 != "C")
  1720. {
  1721. if ((M3 == "B" || M3 == "b") && V2 == "B")
  1722. {
  1723. if ( Val == "\x01" && V3 == "\x01")
  1724. {
  1725. V2 = "\x01";
  1726. V3 = "C";
  1727. Val = "\x02";
  1728. goto Board;
  1729. }
  1730. if ( Val == "\x01" && V3 != "\x01")
  1731. {
  1732. cout << " Invalid move. \n";
  1733. cout << " ";
  1734. system("pause");
  1735. goto Board;
  1736. }
  1737. if ( Val == "\x02" && V3 == "\x02")
  1738. {
  1739. V2 = "\x02";
  1740. V3 = "C";
  1741. Val = "\x01";
  1742. goto Board;
  1743. }
  1744. if ( Val == "\x02" && V3 != "\x02")
  1745. {
  1746. cout << " Invalid move. \n";
  1747. cout << " ";
  1748. system("pause");
  1749. goto Board;
  1750. }
  1751. }
  1752. if ((M3 == "C" || M3 == "c") && V3 != "C")
  1753. {
  1754. cout << " That spot is already taken. \n";
  1755. cout << " ";
  1756. system("pause");
  1757. goto Board;
  1758. }
  1759. if ((M3 == "D" || M3 == "d") && V4 == "D")
  1760. {
  1761. if ( Val == "\x01" && V3 == "\x01")
  1762. {
  1763. V4 = "\x01";
  1764. V3 = "C";
  1765. Val = "\x02";
  1766. goto Board;
  1767. }
  1768. if ( Val == "\x01" && V3 != "\x01")
  1769. {
  1770. cout << " Invalid move. \n";
  1771. cout << " ";
  1772. system("pause");
  1773. goto Board;
  1774. }
  1775. if ( Val == "\x02" && V3 == "\x02")
  1776. {
  1777. V4 = "\x02";
  1778. V3 = "C";
  1779. Val = "\x01";
  1780. goto Board;
  1781. }
  1782. if ( Val == "\x02" && V3 != "\x02")
  1783. {
  1784. cout << " Invalid move. \n";
  1785. cout << " ";
  1786. system("pause");
  1787. goto Board;
  1788. }
  1789. }
  1790. if ((M3 == "D" || M3 == "d") && V4 != "D")
  1791. {
  1792. cout << " That spot is already taken. \n";
  1793. cout << " ";
  1794. system("pause");
  1795. goto Board;
  1796. }
  1797.  
  1798. if ((M3 != "B" || M3 != "b") || (M3 != "D" || M3 !="d"))
  1799. {
  1800. cout << " Invalid move. \n";
  1801. cout << " ";
  1802. system("pause");
  1803. goto Board;
  1804. }
  1805. }
  1806. if ((M2 == "C" || M2 =="c") && V3 == "C")
  1807. {
  1808. cout << " Invalid move. \n";
  1809. cout << " ";
  1810. system("pause");
  1811. goto Board;
  1812. }
  1813.  
  1814. //Move D to c e m
  1815. if ((M2 == "D" || M2 == "d") && V4 != "D")
  1816. {
  1817. if ((M3 == "C" || M3 == "c") && V3 == "C")
  1818. {
  1819. if ( Val == "\x01" && V4 == "\x01")
  1820. {
  1821. V3 = "\x01";
  1822. V4 = "D";
  1823. Val = "\x02";
  1824. if (V1=="\x01" && V2 =="\x01" && V3 =="\x01")
  1825. {
  1826. Mill = 1;
  1827. }
  1828. goto Board;
  1829. }
  1830. if ( Val == "\x01" && V4 != "\x01")
  1831. {
  1832. cout << " Invalid move. \n";
  1833. cout << " ";
  1834. system("pause");
  1835. goto Board;
  1836. }
  1837. if ( Val == "\x02" && V4 == "\x02")
  1838. {
  1839. V3 = "\x02";
  1840. V4 = "D";
  1841. Val = "\x01";
  1842. if (V1=="\x02" && V2 =="\x02" && V3 =="\x02")
  1843. {
  1844. Mi2 = 1;
  1845. }
  1846. goto Board;
  1847. }
  1848. if ( Val == "\x02" && V4 != "\x02")
  1849. {
  1850. cout << " Invalid move. \n";
  1851. cout << " ";
  1852. system("pause");
  1853. goto Board;
  1854. }
  1855. }
  1856. if ((M3 == "C" || M3 == "c") && V3 != "C")
  1857. {
  1858. cout << " That spot is already taken. \n";
  1859. cout << " ";
  1860. system("pause");
  1861. goto Board;
  1862. }
  1863. if ((M3 == "E" || M3 == "e") && V5 == "E")
  1864. {
  1865. if ( Val == "\x01" && V4 == "\x01")
  1866. {
  1867. V5 = "\x01";
  1868. V4 = "D";
  1869. Val = "\x02";
  1870. if (V5=="\x01" && V6 =="\x01" && V7 =="\x01")
  1871. {
  1872. Mill = 1;
  1873. }
  1874. goto Board;
  1875. }
  1876. if ( Val == "\x01" && V4 != "\x01")
  1877. {
  1878. cout << " Invalid move. \n";
  1879. cout << " ";
  1880. system("pause");
  1881. goto Board;
  1882. }
  1883. if ( Val == "\x02" && V4 == "\x02")
  1884. {
  1885. V5 = "\x02";
  1886. V4 = "D";
  1887. Val = "\x01";
  1888. if (V5=="\x02" && V6 =="\x02" && V7 =="\x02")
  1889. {
  1890. Mi2 = 1;
  1891. }
  1892. goto Board;
  1893. }
  1894. if ( Val == "\x02" && V4 != "\x02")
  1895. {
  1896. cout << " Invalid move. \n";
  1897. cout << " ";
  1898. system("pause");
  1899. goto Board;
  1900. }
  1901. }
  1902. if ((M3 == "E" || M3 == "e") && V5 != "E")
  1903. {
  1904. cout << " That spot is already taken. \n";
  1905. cout << " ";
  1906. system("pause");
  1907. goto Board;
  1908. }
  1909.  
  1910. if ((M3 == "M" || M3 == "m") && V13 == "M")
  1911. {
  1912. if ( Val == "\x01" && V4 == "\x01")
  1913. {
  1914. V13 = "\x01";
  1915. V4 = "D";
  1916. Val = "\x02";
  1917. if (V12=="\x01" && V13 =="\x01" && V14 =="\x01")
  1918. {
  1919. Mill = 1;
  1920. }
  1921. goto Board;
  1922. }
  1923. if ( Val == "\x01" && V4 != "\x01")
  1924. {
  1925. cout << " Invalid move. \n";
  1926. cout << " ";
  1927. system("pause");
  1928. goto Board;
  1929. }
  1930. if ( Val == "\x02" && V4 == "\x02")
  1931. {
  1932. V13 = "\x02";
  1933. V4 = "D";
  1934. Val = "\x01";
  1935. if (V12=="\x02" && V13 =="\x02" && V14 =="\x02")
  1936. {
  1937. Mi2 = 1;
  1938. }
  1939. goto Board;
  1940. }
  1941. if ( Val == "\x02" && V4 != "\x02")
  1942. {
  1943. cout << " Invalid move. \n";
  1944. cout << " ";
  1945. system("pause");
  1946. goto Board;
  1947. }
  1948. }
  1949. if ((M3 == "M" || M3 == "m") && V13 != "M")
  1950. {
  1951. cout << " That spot is already taken. \n";
  1952. cout << " ";
  1953. system("pause");
  1954. goto Board;
  1955. }
  1956. if ((M3 != "C" || M3 != "c") || (M3 != "E" || M3 !="e") || (M3 != "M" || M3 != "m"))
  1957. {
  1958. cout << " Invalid move. \n";
  1959. cout << " ";
  1960. system("pause");
  1961. goto Board;
  1962. }
  1963. }
  1964. if ((M2 == "D" || M2 =="d") && V4 == "D")
  1965. {
  1966. cout << " Invalid move. \n";
  1967. cout << " ";
  1968. system("pause");
  1969. goto Board;
  1970. }
  1971.  
  1972. //Move E to d or f
  1973. if ((M2 == "E" || M2 == "e") && V5 != "E")
  1974. {
  1975. if ((M3 == "D" || M3 == "d") && V4 == "D")
  1976. {
  1977. if ( Val == "\x01" && V5 == "\x01")
  1978. {
  1979. V4 = "\x01";
  1980. V5 = "E";
  1981. Val = "\x02";
  1982. goto Board;
  1983. }
  1984. if ( Val == "\x01" && V5 != "\x01")
  1985. {
  1986. cout << " Invalid move. \n";
  1987. cout << " ";
  1988. system("pause");
  1989. goto Board;
  1990. }
  1991. if ( Val == "\x02" && V5 == "\x02")
  1992. {
  1993. V4 = "\x02";
  1994. V5 = "E";
  1995. Val = "\x01";
  1996. goto Board;
  1997. }
  1998. if ( Val == "\x02" && V5 != "\x02")
  1999. {
  2000. cout << " Invalid move. \n";
  2001. cout << " ";
  2002. system("pause");
  2003. goto Board;
  2004. }
  2005. }
  2006. if ((M3 == "D" || M3 == "d") && V4 != "D")
  2007. {
  2008. cout << " That spot is already taken. \n";
  2009. cout << " ";
  2010. system("pause");
  2011. goto Board;
  2012. }
  2013. if ((M3 == "F" || M3 == "f") && V6 == "F")
  2014. {
  2015. if ( Val == "\x01" && V5 == "\x01")
  2016. {
  2017. V6 = "\x01";
  2018. V5 = "E";
  2019. Val = "\x02";
  2020. goto Board;
  2021. }
  2022. if ( Val == "\x01" && V5 != "\x01")
  2023. {
  2024. cout << " Invalid move. \n";
  2025. cout << " ";
  2026. system("pause");
  2027. goto Board;
  2028. }
  2029. if ( Val == "\x02" && V5 == "\x02")
  2030. {
  2031. V6 = "\x02";
  2032. V5 = "E";
  2033. Val = "\x01";
  2034. goto Board;
  2035. }
  2036. if ( Val == "\x02" && V5 != "\x02")
  2037. {
  2038. cout << " Invalid move. \n";
  2039. cout << " ";
  2040. system("pause");
  2041. goto Board;
  2042. }
  2043. }
  2044. if ((M3 == "F" || M3 == "f") && V6 != "F")
  2045. {
  2046. cout << " That spot is already taken. \n";
  2047. cout << " ";
  2048. system("pause");
  2049. goto Board;
  2050. }
  2051. if ((M3 != "D" || M3 != "d") || (M3 != "F" || M3 !="f"))
  2052. {
  2053. cout << " Invalid move. \n";
  2054. cout << " ";
  2055. system("pause");
  2056. goto Board;
  2057. }
  2058. }
  2059. if ((M2 == "E" || M2 =="e") && V5 == "E")
  2060. {
  2061. cout << " Invalid move. \n";
  2062. cout << " ";
  2063. system("pause");
  2064. goto Board;
  2065. }
  2066.  
  2067. //move F to e o g
  2068. if ((M2 == "F" || M2 == "f") && V6 != "F")
  2069. {
  2070. if ((M3 == "E" || M3 == "e") && V5 == "E")
  2071. {
  2072. if ( Val == "\x01" && V6 == "\x01")
  2073. {
  2074. V5 = "\x01";
  2075. V6 = "F";
  2076. Val = "\x02";
  2077. if (V3=="\x01" && V4 =="\x01" && V5 =="\x01")
  2078. {
  2079. Mill = 1;
  2080. }
  2081. goto Board;
  2082. }
  2083. if ( Val == "\x01" && V6 != "\x01")
  2084. {
  2085. cout << " Invalid move. \n";
  2086. cout << " ";
  2087. system("pause");
  2088. goto Board;
  2089. }
  2090. if ( Val == "\x02" && V6 == "\x02")
  2091. {
  2092. V5 = "\x02";
  2093. V6 = "F";
  2094. Val = "\x01";
  2095. if (V3=="\x02" && V4 =="\x02" && V5 =="\x02")
  2096. {
  2097. Mi2 = 1;
  2098. }
  2099. goto Board;
  2100. }
  2101. if ( Val == "\x02" && V6 != "\x02")
  2102. {
  2103. cout << " Invalid move. \n";
  2104. cout << " ";
  2105. system("pause");
  2106. goto Board;
  2107. }
  2108. }
  2109. if ((M3 == "E" || M3 == "e") && V5 != "E")
  2110. {
  2111. cout << " That spot is already taken. \n";
  2112. cout << " ";
  2113. system("pause");
  2114. goto Board;
  2115. }
  2116. if ((M3 == "o" || M3 == "O") && V15 == "O")
  2117. {
  2118. if ( Val == "\x01" && V6 == "\x01")
  2119. {
  2120. V15 = "\x01";
  2121. V6 = "F";
  2122. Val = "\x02";
  2123. if (V14=="\x01" && V15 =="\x01" && V16 =="\x01")
  2124. {
  2125. Mill = 1;
  2126. }
  2127. goto Board;
  2128. }
  2129. if ( Val == "\x01" && V6 != "\x01")
  2130. {
  2131. cout << " Invalid move. \n";
  2132. cout << " ";
  2133. system("pause");
  2134. goto Board;
  2135. }
  2136. if ( Val == "\x02" && V6 == "\x02")
  2137. {
  2138. V15 = "\x02";
  2139. V6 = "F";
  2140. Val = "\x01";
  2141. if (V14=="\x02" && V15 =="\x02" && V16 =="\x02")
  2142. {
  2143. Mi2 = 1;
  2144. }
  2145. goto Board;
  2146. }
  2147. if ( Val == "\x02" && V6 != "\x02")
  2148. {
  2149. cout << " Invalid move. \n";
  2150. cout << " ";
  2151. system("pause");
  2152. goto Board;
  2153. }
  2154. }
  2155. if ((M3 == "O" || M3 == "o") && V15 != "O")
  2156. {
  2157. cout << " That spot is already taken. \n";
  2158. cout << " ";
  2159. system("pause");
  2160. goto Board;
  2161. }
  2162.  
  2163. if ((M3 == "G" || M3 == "g") && V7 == "G")
  2164. {
  2165. if ( Val == "\x01" && V6 == "\x01")
  2166. {
  2167. V7 = "\x01";
  2168. V6 = "F";
  2169. Val = "\x02";
  2170. if (V1=="\x01" && V8 =="\x01" && V7 =="\x01")
  2171. {
  2172. Mill = 1;
  2173. }
  2174. goto Board;
  2175. }
  2176. if ( Val == "\x01" && V6 != "\x01")
  2177. {
  2178. cout << " Invalid move. \n";
  2179. cout << " ";
  2180. system("pause");
  2181. goto Board;
  2182. }
  2183. if ( Val == "\x02" && V6 == "\x02")
  2184. {
  2185. V7 = "\x02";
  2186. V6 = "F";
  2187. Val = "\x01";
  2188. if (V1=="\x02" && V8 =="\x02" && V7 =="\x02")
  2189. {
  2190. Mi2 = 1;
  2191. }
  2192. goto Board;
  2193. }
  2194. if ( Val == "\x02" && V6 != "\x02")
  2195. {
  2196. cout << " Invalid move. \n";
  2197. cout << " ";
  2198. system("pause");
  2199. goto Board;
  2200. }
  2201. }
  2202. if ((M3 == "G" || M3 == "g") && V7 != "G")
  2203. {
  2204. cout << " That spot is already taken. \n";
  2205. cout << " ";
  2206. system("pause");
  2207. goto Board;
  2208. }
  2209. if ((M3 != "E" || M3 != "e") || (M3 != "O" || M3 !="o") || (M3 != "G" || M3 != "g"))
  2210. {
  2211. cout << " Invalid move. \n";
  2212. cout << " ";
  2213. system("pause");
  2214. goto Board;
  2215. }
  2216. }
  2217. if ((M2 == "F" || M2 =="f") && V6 == "F")
  2218. {
  2219. cout << " Invalid move. \n";
  2220. cout << " ";
  2221. system("pause");
  2222. goto Board;
  2223. }
  2224.  
  2225. //Move G to F H
  2226. if ((M2 == "G" || M2 == "g") && V7 != "G")
  2227. {
  2228. if ((M3 == "F" || M3 == "f") && V6 == "F")
  2229. {
  2230. if ( Val == "\x01" && V7 == "\x01")
  2231. {
  2232. V6 = "\x01";
  2233. V7 = "G";
  2234. Val = "\x02";
  2235. goto Board;
  2236. }
  2237. if ( Val == "\x01" && V7 != "\x01")
  2238. {
  2239. cout << " Invalid move. \n";
  2240. cout << " ";
  2241. system("pause");
  2242. goto Board;
  2243. }
  2244. if ( Val == "\x02" && V7 == "\x02")
  2245. {
  2246. V6 = "\x02";
  2247. V7 = "G";
  2248. Val = "\x01";
  2249. goto Board;
  2250. }
  2251. if ( Val == "\x02" && V7 != "\x02")
  2252. {
  2253. cout << " Invalid move. \n";
  2254. cout << " ";
  2255. system("pause");
  2256. goto Board;
  2257. }
  2258. }
  2259. if ((M3 == "F" || M3 == "f") && V6 != "F")
  2260. {
  2261. cout << " That spot is already taken. \n";
  2262. cout << " ";
  2263. system("pause");
  2264. goto Board;
  2265. }
  2266. if ((M3 == "H" || M3 == "h") && V8 == "H")
  2267. {
  2268. if ( Val == "\x01" && V7 == "\x01")
  2269. {
  2270. V8 = "\x01";
  2271. V7 = "G";
  2272. Val = "\x02";
  2273. goto Board;
  2274. }
  2275. if ( Val == "\x01" && V7 != "\x01")
  2276. {
  2277. cout << " Invalid move. \n";
  2278. cout << " ";
  2279. system("pause");
  2280. goto Board;
  2281. }
  2282. if ( Val == "\x02" && V7 == "\x02")
  2283. {
  2284. V8 = "\x02";
  2285. V7 = "G";
  2286. Val = "\x01";
  2287. goto Board;
  2288. }
  2289. if ( Val == "\x02" && V7 != "\x02")
  2290. {
  2291. cout << " Invalid move. \n";
  2292. cout << " ";
  2293. system("pause");
  2294. goto Board;
  2295. }
  2296. }
  2297. if ((M3 == "H" || M3 == "h") && V8 != "H")
  2298. {
  2299. cout << " That spot is already taken. \n";
  2300. cout << " ";
  2301. system("pause");
  2302. goto Board;
  2303. }
  2304. if ((M3 != "F" || M3 != "f") || (M3 != "H" || M3 !="h"))
  2305. {
  2306. cout << " Invalid move. \n";
  2307. cout << " ";
  2308. system("pause");
  2309. goto Board;
  2310. }
  2311. }
  2312. if ((M2 == "G" || M2 =="g") && V7 == "G")
  2313. {
  2314. cout << " Invalid move. \n";
  2315. cout << " ";
  2316. system("pause");
  2317. goto Board;
  2318. }
  2319.  
  2320. //Move H to a g i
  2321. if ((M2 == "H" || M2 == "h") && V8 != "H")
  2322. {
  2323. if ((M3 == "A" || M3 == "a") && V1 == "A")
  2324. {
  2325. if ( Val == "\x01" && V8 == "\x01")
  2326. {
  2327. V1 = "\x01";
  2328. V8 = "H";
  2329. Val = "\x02";
  2330. if (V1=="\x01" && V2 =="\x01" && V3 =="\x01")
  2331. {
  2332. Mill = 1;
  2333. }
  2334. goto Board;
  2335. }
  2336. if ( Val == "\x01" && V8 != "\x01")
  2337. {
  2338. cout << " Invalid move. \n";
  2339. cout << " ";
  2340. system("pause");
  2341. goto Board;
  2342. }
  2343. if ( Val == "\x02" && V8 == "\x02")
  2344. {
  2345. V1 = "\x02";
  2346. V8 = "H";
  2347. Val = "\x01";
  2348. if (V1=="\x02" && V2 =="\x02" && V3 =="\x02")
  2349. {
  2350. Mi2 = 1;
  2351. }
  2352. goto Board;
  2353. }
  2354. if ( Val == "\x02" && V8 != "\x02")
  2355. {
  2356. cout << " Invalid move. \n";
  2357. cout << " ";
  2358. system("pause");
  2359. goto Board;
  2360. }
  2361. }
  2362. if ((M3 == "A" || M3 == "a") && V1 != "A")
  2363. {
  2364. cout << " That spot is already taken. \n";
  2365. cout << " ";
  2366. system("pause");
  2367. goto Board;
  2368. }
  2369. if ((M3 == "g" || M3 == "G") && V7 == "G")
  2370. {
  2371. if ( Val == "\x01" && V8 == "\x01")
  2372. {
  2373. V7 = "\x01";
  2374. V8 = "H";
  2375. Val = "\x02";
  2376. if (V5=="\x01" && V6 =="\x01" && V7 =="\x01")
  2377. {
  2378. Mill = 1;
  2379. }
  2380. goto Board;
  2381. }
  2382. if ( Val == "\x01" && V8 != "\x01")
  2383. {
  2384. cout << " Invalid move. \n";
  2385. cout << " ";
  2386. system("pause");
  2387. goto Board;
  2388. }
  2389. if ( Val == "\x02" && V8 == "\x02")
  2390. {
  2391. V7 = "\x02";
  2392. V8 = "H";
  2393. Val = "\x01";
  2394. if (V5=="\x02" && V6 =="\x02" && V7 =="\x02")
  2395. {
  2396. Mi2 = 1;
  2397. }
  2398. goto Board;
  2399. }
  2400. if ( Val == "\x02" && V8 != "\x02")
  2401. {
  2402. cout << " Invalid move. \n";
  2403. cout << " ";
  2404. system("pause");
  2405. goto Board;
  2406. }
  2407. }
  2408. if ((M3 == "G" || M3 == "g") && V7 != "G")
  2409. {
  2410. cout << " That spot is already taken. \n";
  2411. cout << " ";
  2412. system("pause");
  2413. goto Board;
  2414. }
  2415.  
  2416. if ((M3 == "I" || M3 == "i") && V9 == "I")
  2417. {
  2418. if ( Val == "\x01" && V8 == "\x01")
  2419. {
  2420. V9 = "\x01";
  2421. V8 = "H";
  2422. Val = "\x02";
  2423. if (V10=="\x01" && V9 =="\x01" && V16 =="\x01")
  2424. {
  2425. Mill = 1;
  2426. }
  2427. goto Board;
  2428. }
  2429. if ( Val == "\x01" && V8 != "\x01")
  2430. {
  2431. cout << " Invalid move. \n";
  2432. cout << " ";
  2433. system("pause");
  2434. goto Board;
  2435. }
  2436. if ( Val == "\x02" && V8 == "\x02")
  2437. {
  2438. V9 = "\x02";
  2439. V8 = "H";
  2440. Val = "\x01";
  2441. if (V10=="\x02" && V9 =="\x02" && V16 =="\x02")
  2442. {
  2443. Mi2 = 1;
  2444. }
  2445. goto Board;
  2446. }
  2447. if ( Val == "\x02" && V8 != "\x02")
  2448. {
  2449. cout << " Invalid move. \n";
  2450. cout << " ";
  2451. system("pause");
  2452. goto Board;
  2453. }
  2454. }
  2455. if ((M3 == "I" || M3 == "i") && V9 != "I")
  2456. {
  2457. cout << " That spot is already taken. \n";
  2458. cout << " ";
  2459. system("pause");
  2460. goto Board;
  2461. }
  2462. if ((M3 != "A" || M3 != "a") || (M3 != "G" || M3 !="g") || (M3 != "I" || M3 != "i"))
  2463. {
  2464. cout << " Invalid move. \n";
  2465. cout << " ";
  2466. system("pause");
  2467. goto Board;
  2468. }
  2469. }
  2470. if ((M2 == "H" || M2 =="h") && V8 == "H")
  2471. {
  2472. cout << " Invalid move. \n";
  2473. cout << " ";
  2474. system("pause");
  2475. goto Board;
  2476. }
  2477.  
  2478. //Inner board move code
  2479. //move I to h j p
  2480. if ((M2 == "I" || M2 == "i") && V9 != "I")
  2481. {
  2482. if ((M3 == "H" || M3 == "h") && V8 == "H")
  2483. {
  2484. if ( Val == "\x01" && V9 == "\x01")
  2485. {
  2486. V8 = "\x01";
  2487. V9 = "I";
  2488. Val = "\x02";
  2489. if (V1=="\x01" && V8 =="\x01" && V7 =="\x01")
  2490. {
  2491. Mill = 1;
  2492. }
  2493. goto Board;
  2494. }
  2495. if ( Val == "\x01" && V9 != "\x01")
  2496. {
  2497. cout << " Invalid move. \n";
  2498. cout << " ";
  2499. system("pause");
  2500. goto Board;
  2501. }
  2502. if ( Val == "\x02" && V9 == "\x02")
  2503. {
  2504. V8 = "\x02";
  2505. V9 = "I";
  2506. Val = "\x01";
  2507. if (V1=="\x02" && V8 =="\x02" && V7 =="\x02")
  2508. {
  2509. Mi2 = 1;
  2510. }
  2511. goto Board;
  2512. }
  2513. if ( Val == "\x02" && V9 != "\x02")
  2514. {
  2515. cout << " Invalid move. \n";
  2516. cout << " ";
  2517. system("pause");
  2518. goto Board;
  2519. }
  2520. }
  2521. if ((M3 == "H" || M3 == "h") && V8 != "H")
  2522. {
  2523. cout << " That spot is already taken. \n";
  2524. cout << " ";
  2525. system("pause");
  2526. goto Board;
  2527. }
  2528. if ((M3 == "J" || M3 == "j") && V10 == "J")
  2529. {
  2530. if ( Val == "\x01" && V9 == "\x01")
  2531. {
  2532. V10 = "\x01";
  2533. V9 = "I";
  2534. Val = "\x02";
  2535. if (V10=="\x01" && V11 =="\x01" && V12 =="\x01")
  2536. {
  2537. Mill = 1;
  2538. }
  2539. goto Board;
  2540. }
  2541. if ( Val == "\x01" && V9 != "\x01")
  2542. {
  2543. cout << " Invalid move. \n";
  2544. cout << " ";
  2545. system("pause");
  2546. goto Board;
  2547. }
  2548. if ( Val == "\x02" && V9 == "\x02")
  2549. {
  2550. V10 = "\x02";
  2551. V9 = "I";
  2552. Val = "\x01";
  2553. if (V10=="\x02" && V11 =="\x02" && V12 =="\x02")
  2554. {
  2555. Mi2 = 1;
  2556. }
  2557. goto Board;
  2558. }
  2559. if ( Val == "\x02" && V9 != "\x02")
  2560. {
  2561. cout << " Invalid move. \n";
  2562. cout << " ";
  2563. system("pause");
  2564. goto Board;
  2565. }
  2566. }
  2567. if ((M3 == "J" || M3 == "j") && V10 != "J")
  2568. {
  2569. cout << " That spot is already taken. \n";
  2570. cout << " ";
  2571. system("pause");
  2572. goto Board;
  2573. }
  2574.  
  2575. if ((M3 == "P" || M3 == "p") && V16 == "P")
  2576. {
  2577. if ( Val == "\x01" && V9 == "\x01")
  2578. {
  2579. V16 = "\x01";
  2580. V9 = "I";
  2581. Val = "\x02";
  2582. if (V14=="\x01" && V15 =="\x01" && V16 =="\x01")
  2583. {
  2584. Mill = 1;
  2585. }
  2586. goto Board;
  2587. }
  2588. if ( Val == "\x01" && V9 != "\x01")
  2589. {
  2590. cout << " Invalid move. \n";
  2591. cout << " ";
  2592. system("pause");
  2593. goto Board;
  2594. }
  2595. if ( Val == "\x02" && V9 == "\x02")
  2596. {
  2597. V16 = "\x02";
  2598. V9 = "I";
  2599. Val = "\x01";
  2600. if (V14=="\x02" && V15 =="\x02" && V16 =="\x02")
  2601. {
  2602. Mi2 = 1;
  2603. }
  2604. goto Board;
  2605. }
  2606. if ( Val == "\x02" && V9 != "\x02")
  2607. {
  2608. cout << " Invalid move. \n";
  2609. cout << " ";
  2610. system("pause");
  2611. goto Board;
  2612. }
  2613. }
  2614. if ((M3 == "P" || M3 == "p") && V16 != "P")
  2615. {
  2616. cout << " That spot is already taken. \n";
  2617. cout << " ";
  2618. system("pause");
  2619. goto Board;
  2620. }
  2621. if ((M3 != "H" || M3 != "h") || (M3 != "J" || M3 !="j") || (M3 != "P" || M3 != "p"))
  2622. {
  2623. cout << " Invalid move. \n";
  2624. cout << " ";
  2625. system("pause");
  2626. goto Board;
  2627. }
  2628. }
  2629. if ((M2 == "I" || M2 =="i") && V9 == "I")
  2630. {
  2631. cout << " Invalid move. \n";
  2632. cout << " ";
  2633. system("pause");
  2634. goto Board;
  2635. }
  2636.  
  2637. //MOVE J TO I K
  2638. if ((M2 == "J" || M2 == "j") && V10 != "J")
  2639. {
  2640. if ((M3 == "I" || M3 == "i") && V9 == "I")
  2641. {
  2642. if ( Val == "\x01" && V10 == "\x01")
  2643. {
  2644. V9 = "\x01";
  2645. V10 = "J";
  2646. Val = "\x02";
  2647. goto Board;
  2648. }
  2649. if ( Val == "\x01" && V10 != "\x01")
  2650. {
  2651. cout << " Invalid move. \n";
  2652. cout << " ";
  2653. system("pause");
  2654. goto Board;
  2655. }
  2656. if ( Val == "\x02" && V10 == "\x02")
  2657. {
  2658. V9 = "\x02";
  2659. V10 = "J";
  2660. Val = "\x01";
  2661. goto Board;
  2662. }
  2663. if ( Val == "\x02" && V10 != "\x02")
  2664. {
  2665. cout << " Invalid move. \n";
  2666. cout << " ";
  2667. system("pause");
  2668. goto Board;
  2669. }
  2670. }
  2671. if ((M3 == "I" || M3 == "i") && V9 != "I")
  2672. {
  2673. cout << " That spot is already taken. \n";
  2674. cout << " ";
  2675. system("pause");
  2676. goto Board;
  2677. }
  2678. if ((M3 == "K" || M3 == "k") && V11 == "K")
  2679. {
  2680. if ( Val == "\x01" && V10 == "\x01")
  2681. {
  2682. V11 = "\x01";
  2683. V10 = "J";
  2684. Val = "\x02";
  2685. goto Board;
  2686. }
  2687. if ( Val == "\x01" && V10 != "\x01")
  2688. {
  2689. cout << " Invalid move. \n";
  2690. cout << " ";
  2691. system("pause");
  2692. goto Board;
  2693. }
  2694. if ( Val == "\x02" && V10 == "\x02")
  2695. {
  2696. V11 = "\x02";
  2697. V10 = "J";
  2698. Val = "\x01";
  2699. goto Board;
  2700. }
  2701. if ( Val == "\x02" && V10 != "\x02")
  2702. {
  2703. cout << " Invalid move. \n";
  2704. cout << " ";
  2705. system("pause");
  2706. goto Board;
  2707. }
  2708. }
  2709. if ((M3 == "K" || M3 == "k") && V11 != "K")
  2710. {
  2711. cout << " That spot is already taken. \n";
  2712. cout << " ";
  2713. system("pause");
  2714. goto Board;
  2715. }
  2716. if ((M3 != "I" || M3 != "i") || (M3 != "K" || M3 !="k"))
  2717. {
  2718. cout << " Invalid move. \n";
  2719. cout << " ";
  2720. system("pause");
  2721. goto Board;
  2722. }
  2723. }
  2724. if ((M2 == "J" || M2 =="j") && V10 == "J")
  2725. {
  2726. cout << " Invalid move. \n";
  2727. cout << " ";
  2728. system("pause");
  2729. goto Board;
  2730. }
  2731.  
  2732. //MOVE K TO j l b
  2733. if ((M2 == "K" || M2 == "k") && V11 != "K")
  2734. {
  2735. if ((M3 == "L" || M3 == "l") && V12 == "L")
  2736. {
  2737. if ( Val == "\x01" && V11 == "\x01")
  2738. {
  2739. V12 = "\x01";
  2740. V11 = "K";
  2741. Val = "\x02";
  2742. if (V12=="\x01" && V13 =="\x01" && V14 =="\x01")
  2743. {
  2744. Mill = 1;
  2745. }
  2746. goto Board;
  2747. }
  2748. if ( Val == "\x01" && V11 != "\x01")
  2749. {
  2750. cout << " Invalid move. \n";
  2751. cout << " ";
  2752. system("pause");
  2753. goto Board;
  2754. }
  2755. if ( Val == "\x02" && V11 == "\x02")
  2756. {
  2757. V12 = "\x02";
  2758. V11 = "K";
  2759. Val = "\x01";
  2760. if (V12=="\x02" && V13 =="\x02" && V14 =="\x02")
  2761. {
  2762. Mi2 = 1;
  2763. }
  2764. goto Board;
  2765. }
  2766. if ( Val == "\x02" && V11 != "\x02")
  2767. {
  2768. cout << " Invalid move. \n";
  2769. cout << " ";
  2770. system("pause");
  2771. goto Board;
  2772. }
  2773. }
  2774. if ((M3 == "L" || M3 == "l") && V12 != "L")
  2775. {
  2776. cout << " That spot is already taken. \n";
  2777. cout << " ";
  2778. system("pause");
  2779. goto Board;
  2780. }
  2781. if ((M3 == "J" || M3 == "j") && V10 == "J")
  2782. {
  2783. if ( Val == "\x01" && V11 == "\x01")
  2784. {
  2785. V10 = "\x01";
  2786. V11 = "K";
  2787. Val = "\x02";
  2788. if (V10=="\x01" && V9 =="\x01" && V16 =="\x01")
  2789. {
  2790. Mill = 1;
  2791. }
  2792. goto Board;
  2793. }
  2794. if ( Val == "\x01" && V11 != "\x01")
  2795. {
  2796. cout << " Invalid move. \n";
  2797. cout << " ";
  2798. system("pause");
  2799. goto Board;
  2800. }
  2801. if ( Val == "\x02" && V11 == "\x02")
  2802. {
  2803. V10 = "\x02";
  2804. V11 = "K";
  2805. Val = "\x01";
  2806. if (V10=="\x02" && V9 =="\x02" && V16 =="\x02")
  2807. {
  2808. Mi2 = 1;
  2809. }
  2810. goto Board;
  2811. }
  2812. if ( Val == "\x02" && V11 != "\x02")
  2813. {
  2814. cout << " Invalid move. \n";
  2815. cout << " ";
  2816. system("pause");
  2817. goto Board;
  2818. }
  2819. }
  2820. if ((M3 == "J" || M3 == "j") && V10 != "J")
  2821. {
  2822. cout << " That spot is already taken. \n";
  2823. cout << " ";
  2824. system("pause");
  2825. goto Board;
  2826. }
  2827.  
  2828. if ((M3 == "B" || M3 == "b") && V2 == "B")
  2829. {
  2830. if ( Val == "\x01" && V11 == "\x01")
  2831. {
  2832. V2 = "\x01";
  2833. V11 = "K";
  2834. Val = "\x02";
  2835. if (V1=="\x01" && V2 =="\x01" && V3 =="\x01")
  2836. {
  2837. Mill = 1;
  2838. }
  2839. goto Board;
  2840. }
  2841. if ( Val == "\x01" && V11 != "\x01")
  2842. {
  2843. cout << " Invalid move. \n";
  2844. cout << " ";
  2845. system("pause");
  2846. goto Board;
  2847. }
  2848. if ( Val == "\x02" && V11 == "\x02")
  2849. {
  2850. V2 = "\x02";
  2851. V11 = "K";
  2852. Val = "\x01";
  2853. if (V1=="\x02" && V2 =="\x02" && V3 =="\x02")
  2854. {
  2855. Mi2 = 1;
  2856. }
  2857. goto Board;
  2858. }
  2859. if ( Val == "\x02" && V11 != "\x02")
  2860. {
  2861. cout << " Invalid move. \n";
  2862. cout << " ";
  2863. system("pause");
  2864. goto Board;
  2865. }
  2866. }
  2867. if ((M3 == "B" || M3 == "b") && V2 != "B")
  2868. {
  2869. cout << " That spot is already taken. \n";
  2870. cout << " ";
  2871. system("pause");
  2872. goto Board;
  2873. }
  2874. if ((M3 != "L" || M3 != "l") || (M3 != "J" || M3 !="j") || (M3 != "B" || M3 != "b"))
  2875. {
  2876. cout << " Invalid move. \n";
  2877. cout << " ";
  2878. system("pause");
  2879. goto Board;
  2880. }
  2881. }
  2882. if ((M2 == "K" || M2 =="k") && V11 == "K")
  2883. {
  2884. cout << " Invalid move. \n";
  2885. cout << " ";
  2886. system("pause");
  2887. goto Board;
  2888. }
  2889.  
  2890. //MOVE L TO k m
  2891. if ((M2 == "L" || M2 == "l") && V12 != "L")
  2892. {
  2893. if ((M3 == "M" || M3 == "m") && V13 == "M")
  2894. {
  2895. if ( Val == "\x01" && V12 == "\x01")
  2896. {
  2897. V13 = "\x01";
  2898. V12 = "L";
  2899. Val = "\x02";
  2900. goto Board;
  2901. }
  2902. if ( Val == "\x01" && V12 != "\x01")
  2903. {
  2904. cout << " Invalid move. \n";
  2905. cout << " ";
  2906. system("pause");
  2907. goto Board;
  2908. }
  2909. if ( Val == "\x02" && V12 == "\x02")
  2910. {
  2911. V13 = "\x02";
  2912. V12 = "L";
  2913. Val = "\x01";
  2914. goto Board;
  2915. }
  2916. if ( Val == "\x02" && V12 != "\x02")
  2917. {
  2918. cout << " Invalid move. \n";
  2919. cout << " ";
  2920. system("pause");
  2921. goto Board;
  2922. }
  2923. }
  2924. if ((M3 == "M" || M3 == "m") && V13 != "M")
  2925. {
  2926. cout << " That spot is already taken. \n";
  2927. cout << " ";
  2928. system("pause");
  2929. goto Board;
  2930. }
  2931. if ((M3 == "K" || M3 == "k") && V11 == "K")
  2932. {
  2933. if ( Val == "\x01" && V12 == "\x01")
  2934. {
  2935. V11 = "\x01";
  2936. V12 = "L";
  2937. Val = "\x02";
  2938. goto Board;
  2939. }
  2940. if ( Val == "\x01" && V12 != "\x01")
  2941. {
  2942. cout << " Invalid move. \n";
  2943. cout << " ";
  2944. system("pause");
  2945. goto Board;
  2946. }
  2947. if ( Val == "\x02" && V12 == "\x02")
  2948. {
  2949. V11 = "\x02";
  2950. V12 = "L";
  2951. Val = "\x01";
  2952. goto Board;
  2953. }
  2954. if ( Val == "\x02" && V12 != "\x02")
  2955. {
  2956. cout << " Invalid move. \n";
  2957. cout << " ";
  2958. system("pause");
  2959. goto Board;
  2960. }
  2961. }
  2962. if ((M3 == "K" || M3 == "k") && V11 != "K")
  2963. {
  2964. cout << " That spot is already taken. \n";
  2965. cout << " ";
  2966. system("pause");
  2967. goto Board;
  2968. }
  2969. if ((M3 != "M" || M3 != "m") || (M3 != "K" || M3 !="k"))
  2970. {
  2971. cout << " Invalid move. \n";
  2972. cout << " ";
  2973. system("pause");
  2974. goto Board;
  2975. }
  2976. }
  2977. if ((M2 == "L" || M2 =="l") && V12 == "L")
  2978. {
  2979. cout << " Invalid move. \n";
  2980. cout << " ";
  2981. system("pause");
  2982. goto Board;
  2983. }
  2984.  
  2985. //MOVE M TO l d n
  2986. if ((M2 == "M" || M2 == "m") && V13 != "M")
  2987. {
  2988. if ((M3 == "L" || M3 == "l") && V12 == "L")
  2989. {
  2990. if ( Val == "\x01" && V13 == "\x01")
  2991. {
  2992. V12 = "\x01";
  2993. V13 = "M";
  2994. Val = "\x02";
  2995. if (V10=="\x01" && V11 =="\x01" && V12 =="\x01")
  2996. {
  2997. Mill = 1;
  2998. }
  2999. goto Board;
  3000. }
  3001. if ( Val == "\x01" && V13 != "\x01")
  3002. {
  3003. cout << " Invalid move. \n";
  3004. cout << " ";
  3005. system("pause");
  3006. goto Board;
  3007. }
  3008. if ( Val == "\x02" && V13 == "\x02")
  3009. {
  3010. V12 = "\x02";
  3011. V13 = "M";
  3012. Val = "\x01";
  3013. if (V10=="\x02" && V11 =="\x02" && V12 =="\x02")
  3014. {
  3015. Mi2 = 1;
  3016. }
  3017. goto Board;
  3018. }
  3019. if ( Val == "\x02" && V13 != "\x02")
  3020. {
  3021. cout << " Invalid move. \n";
  3022. cout << " ";
  3023. system("pause");
  3024. goto Board;
  3025. }
  3026. }
  3027. if ((M3 == "L" || M3 == "l") && V12 != "L")
  3028. {
  3029. cout << " That spot is already taken. \n";
  3030. cout << " ";
  3031. system("pause");
  3032. goto Board;
  3033. }
  3034. if ((M3 == "D" || M3 == "d") && V4 == "D")
  3035. {
  3036. if ( Val == "\x01" && V13 == "\x01")
  3037. {
  3038. V4 = "\x01";
  3039. V13 = "M";
  3040. Val = "\x02";
  3041. if (V3=="\x01" && V4 =="\x01" && V5 =="\x01")
  3042. {
  3043. Mill = 1;
  3044. }
  3045. goto Board;
  3046. }
  3047. if ( Val == "\x01" && V13 != "\x01")
  3048. {
  3049. cout << " Invalid move. \n";
  3050. cout << " ";
  3051. system("pause");
  3052. goto Board;
  3053. }
  3054. if ( Val == "\x02" && V13 == "\x02")
  3055. {
  3056. V4 = "\x02";
  3057. V13 = "M";
  3058. Val = "\x01";
  3059. if (V3=="\x02" && V4 =="\x02" && V5 =="\x02")
  3060. {
  3061. Mi2 = 1;
  3062. }
  3063. goto Board;
  3064. }
  3065. if ( Val == "\x02" && V13 != "\x02")
  3066. {
  3067. cout << " Invalid move. \n";
  3068. cout << " ";
  3069. system("pause");
  3070. goto Board;
  3071. }
  3072. }
  3073. if ((M3 == "D" || M3 == "d") && V4 != "D")
  3074. {
  3075. cout << " That spot is already taken. \n";
  3076. cout << " ";
  3077. system("pause");
  3078. goto Board;
  3079. }
  3080.  
  3081. if ((M3 == "N" || M3 == "n") && V14 == "N")
  3082. {
  3083. if ( Val == "\x01" && V13 == "\x01")
  3084. {
  3085. V14 = "\x01";
  3086. V13 = "M";
  3087. Val = "\x02";
  3088. if (V14=="\x01" && V15 =="\x01" && V16 =="\x01")
  3089. {
  3090. Mill = 1;
  3091. }
  3092. goto Board;
  3093. }
  3094. if ( Val == "\x01" && V13 != "\x01")
  3095. {
  3096. cout << " Invalid move. \n";
  3097. cout << " ";
  3098. system("pause");
  3099. goto Board;
  3100. }
  3101. if ( Val == "\x02" && V13 == "\x02")
  3102. {
  3103. V14 = "\x02";
  3104. V13 = "M";
  3105. Val = "\x01";
  3106. if (V14=="\x02" && V15 =="\x02" && V16 =="\x02")
  3107. {
  3108. Mi2 = 1;
  3109. }
  3110. goto Board;
  3111. }
  3112. if ( Val == "\x02" && V13 != "\x02")
  3113. {
  3114. cout << " Invalid move. \n";
  3115. cout << " ";
  3116. system("pause");
  3117. goto Board;
  3118. }
  3119. }
  3120. if ((M3 == "N" || M3 == "n") && V14 != "N")
  3121. {
  3122. cout << " That spot is already taken. \n";
  3123. cout << " ";
  3124. system("pause");
  3125. goto Board;
  3126. }
  3127. if ((M3 != "L" || M3 != "l") || (M3 != "D" || M3 !="d") || (M3 != "N" || M3 != "n"))
  3128. {
  3129. cout << " Invalid move. \n";
  3130. cout << " ";
  3131. system("pause");
  3132. goto Board;
  3133. }
  3134. }
  3135. if ((M2 == "M" || M2 =="m") && V13 == "M")
  3136. {
  3137. cout << " Invalid move. \n";
  3138. cout << " ";
  3139. system("pause");
  3140. goto Board;
  3141. }
  3142.  
  3143. //MOVE N TO m o
  3144. if ((M2 == "N" || M2 == "n") && V14 != "N")
  3145. {
  3146. if ((M3 == "M" || M3 == "m") && V13 == "M")
  3147. {
  3148. if ( Val == "\x01" && V14 == "\x01")
  3149. {
  3150. V13 = "\x01";
  3151. V14 = "N";
  3152. Val = "\x02";
  3153. goto Board;
  3154. }
  3155. if ( Val == "\x01" && V14 != "\x01")
  3156. {
  3157. cout << " Invalid move. \n";
  3158. cout << " ";
  3159. system("pause");
  3160. goto Board;
  3161. }
  3162. if ( Val == "\x02" && V14 == "\x02")
  3163. {
  3164. V13 = "\x02";
  3165. V14 = "N";
  3166. Val = "\x01";
  3167. goto Board;
  3168. }
  3169. if ( Val == "\x02" && V14 != "\x02")
  3170. {
  3171. cout << " Invalid move. \n";
  3172. cout << " ";
  3173. system("pause");
  3174. goto Board;
  3175. }
  3176. }
  3177. if ((M3 == "M" || M3 == "m") && V13 != "M")
  3178. {
  3179. cout << " That spot is already taken. \n";
  3180. cout << " ";
  3181. system("pause");
  3182. goto Board;
  3183. }
  3184. if ((M3 == "O" || M3 == "o") && V15 == "O")
  3185. {
  3186. if ( Val == "\x01" && V14 == "\x01")
  3187. {
  3188. V15 = "\x01";
  3189. V14 = "N";
  3190. Val = "\x02";
  3191. goto Board;
  3192. }
  3193. if ( Val == "\x01" && V14 != "\x01")
  3194. {
  3195. cout << " Invalid move. \n";
  3196. cout << " ";
  3197. system("pause");
  3198. goto Board;
  3199. }
  3200. if ( Val == "\x02" && V14 == "\x02")
  3201. {
  3202. V15 = "\x02";
  3203. V14 = "N";
  3204. Val = "\x01";
  3205. goto Board;
  3206. }
  3207. if ( Val == "\x02" && V14 != "\x02")
  3208. {
  3209. cout << " Invalid move. \n";
  3210. cout << " ";
  3211. system("pause");
  3212. goto Board;
  3213. }
  3214. }
  3215. if ((M3 == "O" || M3 == "o") && V15 != "O")
  3216. {
  3217. cout << " That spot is already taken. \n";
  3218. cout << " ";
  3219. system("pause");
  3220. goto Board;
  3221. }
  3222. if ((M3 != "M" || M3 != "m") || (M3 != "O" || M3 !="o"))
  3223. {
  3224. cout << " Invalid move. \n";
  3225. cout << " ";
  3226. system("pause");
  3227. goto Board;
  3228. }
  3229. }
  3230. if ((M2 == "N" || M2 =="n") && V14 == "N")
  3231. {
  3232. cout << " Invalid move. \n";
  3233. cout << " ";
  3234. system("pause");
  3235. goto Board;
  3236. }
  3237.  
  3238. //MOE O TO n f p
  3239. if ((M2 == "O" || M2 == "o") && V15 != "O")
  3240. {
  3241. if ((M3 == "F" || M3 == "f") && V6 == "F")
  3242. {
  3243. if ( Val == "\x01" && V15 == "\x01")
  3244. {
  3245. V6 = "\x01";
  3246. V15 = "O";
  3247. Val = "\x02";
  3248. if (V5=="\x01" && V6 =="\x01" && V7 =="\x01")
  3249. {
  3250. Mill = 1;
  3251. }
  3252. goto Board;
  3253. }
  3254. if ( Val == "\x01" && V15 != "\x01")
  3255. {
  3256. cout << " Invalid move. \n";
  3257. cout << " ";
  3258. system("pause");
  3259. goto Board;
  3260. }
  3261. if ( Val == "\x02" && V15 == "\x02")
  3262. {
  3263. V6 = "\x02";
  3264. V15 = "O";
  3265. Val = "\x01";
  3266. if (V5=="\x02" && V6 =="\x02" && V7 =="\x02")
  3267. {
  3268. Mi2 = 1;
  3269. }
  3270. goto Board;
  3271. }
  3272. if ( Val == "\x02" && V15 != "\x02")
  3273. {
  3274. cout << " Invalid move. \n";
  3275. cout << " ";
  3276. system("pause");
  3277. goto Board;
  3278. }
  3279. }
  3280. if ((M3 == "F" || M3 == "f") && V6 != "F")
  3281. {
  3282. cout << " That spot is already taken. \n";
  3283. cout << " ";
  3284. system("pause");
  3285. goto Board;
  3286. }
  3287. if ((M3 == "P" || M3 == "p") && V16 == "P")
  3288. {
  3289. if ( Val == "\x01" && V15 == "\x01")
  3290. {
  3291. V16 = "\x01";
  3292. V15 = "O";
  3293. Val = "\x02";
  3294. if (V10=="\x01" && V9 =="\x01" && V16 =="\x01")
  3295. {
  3296. Mill = 1;
  3297. }
  3298. goto Board;
  3299. }
  3300. if ( Val == "\x01" && V15 != "\x01")
  3301. {
  3302. cout << " Invalid move. \n";
  3303. cout << " ";
  3304. system("pause");
  3305. goto Board;
  3306. }
  3307. if ( Val == "\x02" && V15 == "\x02")
  3308. {
  3309. V16 = "\x02";
  3310. V15 = "O";
  3311. Val = "\x01";
  3312. if (V10=="\x02" && V9 =="\x02" && V16 =="\x02")
  3313. {
  3314. Mi2 = 1;
  3315. }
  3316. goto Board;
  3317. }
  3318. if ( Val == "\x02" && V15 != "\x02")
  3319. {
  3320. cout << " Invalid move. \n";
  3321. cout << " ";
  3322. system("pause");
  3323. goto Board;
  3324. }
  3325. }
  3326. if ((M3 == "P" || M3 == "p") && V16 != "P")
  3327. {
  3328. cout << " That spot is already taken. \n";
  3329. cout << " ";
  3330. system("pause");
  3331. goto Board;
  3332. }
  3333.  
  3334. if ((M3 == "N" || M3 == "n") && V14 == "N")
  3335. {
  3336. if ( Val == "\x01" && V15 == "\x01")
  3337. {
  3338. V14 = "\x01";
  3339. V15 = "O";
  3340. Val = "\x02";
  3341. if (V12=="\x01" && V13 =="\x01" && V14 =="\x01")
  3342. {
  3343. Mill = 1;
  3344. }
  3345. goto Board;
  3346. }
  3347. if ( Val == "\x01" && V15 != "\x01")
  3348. {
  3349. cout << " Invalid move. \n";
  3350. cout << " ";
  3351. system("pause");
  3352. goto Board;
  3353. }
  3354. if ( Val == "\x02" && V15 == "\x02")
  3355. {
  3356. V14 = "\x02";
  3357. V15 = "O";
  3358. Val = "\x01";
  3359. if (V12=="\x02" && V13 =="\x02" && V14 =="\x02")
  3360. {
  3361. Mi2 = 1;
  3362. }
  3363. goto Board;
  3364. }
  3365. if ( Val == "\x02" && V15 != "\x02")
  3366. {
  3367. cout << " Invalid move. \n";
  3368. cout << " ";
  3369. system("pause");
  3370. goto Board;
  3371. }
  3372. }
  3373. if ((M3 == "N" || M3 == "n") && V14 != "N")
  3374. {
  3375. cout << " That spot is already taken. \n";
  3376. cout << " ";
  3377. system("pause");
  3378. goto Board;
  3379. }
  3380. if ((M3 != "F" || M3 != "f") || (M3 != "P" || M3 !="p") || (M3 != "N" || M3 != "n"))
  3381. {
  3382. cout << " Invalid move. \n";
  3383. cout << " ";
  3384. system("pause");
  3385. goto Board;
  3386. }
  3387. }
  3388. if ((M2 == "O" || M2 =="o") && V15 == "O")
  3389. {
  3390. cout << " Invalid move. \n";
  3391. cout << " ";
  3392. system("pause");
  3393. goto Board;
  3394. }
  3395.  
  3396. //MOVE P to o i
  3397. if ((M2 == "P" || M2 == "p") && V16 != "P")
  3398. {
  3399. if ((M3 == "I" || M3 == "i") && V9 == "I")
  3400. {
  3401. if ( Val == "\x01" && V16 == "\x01")
  3402. {
  3403. V9 = "\x01";
  3404. V16 = "P";
  3405. Val = "\x02";
  3406. goto Board;
  3407. }
  3408. if ( Val == "\x01" && V16 != "\x01")
  3409. {
  3410. cout << " Invalid move. \n";
  3411. cout << " ";
  3412. system("pause");
  3413. goto Board;
  3414. }
  3415. if ( Val == "\x02" && V16 == "\x02")
  3416. {
  3417. V9 = "\x02";
  3418. V16 = "P";
  3419. Val = "\x01";
  3420. goto Board;
  3421. }
  3422. if ( Val == "\x02" && V16 != "\x02")
  3423. {
  3424. cout << " Invalid move. \n";
  3425. cout << " ";
  3426. system("pause");
  3427. goto Board;
  3428. }
  3429. }
  3430. if ((M3 == "M" || M3 == "m") && V13 != "M")
  3431. {
  3432. cout << " That spot is already taken. \n";
  3433. cout << " ";
  3434. system("pause");
  3435. goto Board;
  3436. }
  3437. if ((M3 == "O" || M3 == "o") && V15 == "O")
  3438. {
  3439. if ( Val == "\x01" && V16 == "\x01")
  3440. {
  3441. V15 = "\x01";
  3442. V16 = "P";
  3443. Val = "\x02";
  3444. goto Board;
  3445. }
  3446. if ( Val == "\x01" && V16 != "\x01")
  3447. {
  3448. cout << " Invalid move. \n";
  3449. cout << " ";
  3450. system("pause");
  3451. goto Board;
  3452. }
  3453. if ( Val == "\x02" && V16 == "\x02")
  3454. {
  3455. V15 = "\x02";
  3456. V16 = "P";
  3457. Val = "\x01";
  3458. goto Board;
  3459. }
  3460. if ( Val == "\x02" && V16 != "\x02")
  3461. {
  3462. cout << " Invalid move. \n";
  3463. cout << " ";
  3464. system("pause");
  3465. goto Board;
  3466. }
  3467. }
  3468. if ((M3 == "O" || M3 == "o") && V15 != "O")
  3469. {
  3470. cout << " That spot is already taken. \n";
  3471. cout << " ";
  3472. system("pause");
  3473. goto Board;
  3474. }
  3475. if ((M3 != "I" || M3 != "i") || (M3 != "O" || M3 !="o"))
  3476. {
  3477. cout << " Invalid move. \n";
  3478. cout << " ";
  3479. system("pause");
  3480. goto Board;
  3481. }
  3482. }
  3483. if ((M2 == "P" || M2 =="p") && V16 == "P")
  3484. {
  3485. cout << " Invalid move. \n";
  3486. cout << " ";
  3487. system("pause");
  3488. goto Board;
  3489. }
  3490.  
  3491. }
  3492. if (Num1 == 2) //Vs. Computer
  3493. {
  3494. int F1 = 0;
  3495. int F2 = 0;
  3496. int C = 0; // show what was captured
  3497. int Chk = 0; //count for if nothing else randomizer
  3498. system("cls");
  3499. cout << " \n";
  3500. cout << " \n";
  3501. cout << " \n";
  3502. cout << " \n";
  3503. cout << " \n"; //find who goes first
  3504. cout << " \n";
  3505. cout << " \n";
  3506. cout << " \n";
  3507. cout << " \n";
  3508. cout << " \n";
  3509. cout << " The computer is \x02.\n";
  3510. cout << " To see who goes first: \n";
  3511. cout << " ";
  3512. system("pause");
  3513. cout << " \n";
  3514. srand((unsigned)time(0));//randomizer
  3515. R1 = (rand()%2) +1; //1-2
  3516. if (R1 == 1)
  3517. {
  3518. cout << " Player \x01 goes first. \n";
  3519. Val = "\x01";
  3520. F1 = 0;
  3521. F2 = 0;
  3522. }
  3523. if (R1 >= 2)
  3524. {
  3525. cout << " The computer goes first. \n";
  3526. Val = "\x02";
  3527. F1 = 1;
  3528. F2 = 1;
  3529. }
  3530. cout << " ";
  3531. system("pause");
  3532. Board2:
  3533. if (N1 < 0)
  3534. {
  3535. N1 = 0;
  3536. }
  3537. if (N2 < 0)
  3538. {
  3539. N2 = 0;
  3540. }
  3541. system("cls");
  3542. cout << " \n";
  3543. cout << " \n";
  3544. cout << " \x01 Six-Men's Morris \x02 \n";
  3545. cout << " \n";
  3546. cout << " b \n";
  3547. cout << " \n";
  3548. cout << " a "<<V1<<"\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4"<<V2<<"\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4"<<V3<<" c\n";
  3549. cout << " \xb3 \xb3 \xb3\n";
  3550. cout << " \xb3 \xb3 \xb3\n";
  3551. cout << " \xb3 \xb3 \xb3\n";
  3552. cout << " \xb3 \xb3 \xb3\n";
  3553. cout << " \xb3 \xb3 \xb3\n";
  3554. cout << " \xb3 j "<<V10<<"\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4"<<V11<<"\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4"<<V12<<" l \xb3\n";
  3555. cout << " \xb3 \xb3 \xb3 \xb3\n";
  3556. cout << " \xb3 \xb3 k \xb3 \xb3\n";
  3557. cout << " \xb3 \xb3 \xb3 \xb3\n";
  3558. cout << " \xb3 \xb3 \xb3 \xb3\n";
  3559. cout << " \xb3 \xb3 \xb3 \xb3\n";
  3560. cout << " h "<<V8<<"\xc4\xc4\xc4\xc4\xc4\xc4\xc4"<<V9<<" i m "<<V13<<"\xc4\xc4\xc4\xc4\xc4\xc4\xc4"<<V4<<" d \n";
  3561. cout << " \xb3 \xb3 \xb3 \xb3\n";
  3562. cout << " \xb3 \xb3 \xb3 \xb3\n";
  3563. cout << " \xb3 \xb3 \xb3 \xb3\n";
  3564. cout << " \xb3 \xb3 o \xb3 \xb3\n";
  3565. cout << " \xb3 \xb3 \xb3 \xb3\n";
  3566. cout << " \xb3 p "<<V16<<"\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4"<<V15<<"\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4"<<V14<<" n \xb3\n";
  3567. cout << " \xb3 \xb3 \xb3\n";
  3568. cout << " \xb3 \xb3 \xb3\n";
  3569. cout << " \xb3 \xb3 \xb3\n";
  3570. cout << " \xb3 \xb3 \xb3\n";
  3571. cout << " \xb3 \xb3 \xb3\n";
  3572. cout << " g "<<V7<<"\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4"<<V6<<"\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4"<<V5<<" e\n";
  3573. cout << " \n";
  3574. cout << " f \n";
  3575. cout << " \n";
  3576. //Matching / Capture
  3577. //ABC (8 MILLS)
  3578. if (V1=="\x01" && V2 =="\x01" && V3 =="\x01" && Mill == 1) //put if match then mill = 1 wherever \xo1 at ABC
  3579. {//Match ABC black pieces
  3580. CB:
  3581. cout << " You formed a mill, choose a piece to capture.\n";
  3582. cout << " Capture the piece at spot: ";
  3583. cin >> Cap;
  3584. //Capture a white piece
  3585. if (Cap == "A" || Cap == "a")
  3586. {
  3587. if (V1 == "\x02")
  3588. {
  3589. V1 = "A";
  3590. goto VA1;
  3591. }
  3592. if (V1 != "\x02")
  3593. {
  3594. cout << " Invalid move. \n";
  3595. cout << " ";
  3596. system("pause");
  3597. goto Board2;
  3598. }
  3599. }
  3600. if (Cap == "B" || Cap == "b")
  3601. {
  3602. if (V2 == "\x02")
  3603. {
  3604. V2 = "B";
  3605. goto VA1;
  3606. }
  3607. if (V2 != "\x02")
  3608. {
  3609. cout << " Invalid move. \n";
  3610. cout << " ";
  3611. system("pause");
  3612. goto Board2;
  3613. }
  3614. }
  3615. if (Cap == "C" || Cap == "c")
  3616. {
  3617. if (V3 == "\x02")
  3618. {
  3619. V3 = "C";
  3620. goto VA1;
  3621. }
  3622. if (V3 != "\x02")
  3623. {
  3624. cout << " Invalid move. \n";
  3625. cout << " ";
  3626. system("pause");
  3627. goto Board2;
  3628. }
  3629. }
  3630. if (Cap == "D" || Cap == "d")
  3631. {
  3632. if (V4 == "\x02")
  3633. {
  3634. V4 = "D";
  3635. goto VA1;
  3636. }
  3637. if (V4 != "\x02")
  3638. {
  3639. cout << " Invalid move. \n";
  3640. cout << " ";
  3641. system("pause");
  3642. goto Board2;
  3643. }
  3644. }
  3645. if (Cap == "E" || Cap == "e")
  3646. {
  3647. if (V5 == "\x02")
  3648. {
  3649. V5 = "E";
  3650. goto VA1;
  3651. }
  3652. if (V5 != "\x02")
  3653. {
  3654. cout << " Invalid move. \n";
  3655. cout << " ";
  3656. system("pause");
  3657. goto Board2;
  3658. }
  3659. }
  3660. if (Cap == "F" || Cap == "f")
  3661. {
  3662. if (V6 == "\x02")
  3663. {
  3664. V6 = "F";
  3665. goto VA1;
  3666. }
  3667. if (V6 != "\x02")
  3668. {
  3669. cout << " Invalid move. \n";
  3670. cout << " ";
  3671. system("pause");
  3672. goto Board2;
  3673. }
  3674. }
  3675. if (Cap == "G" || Cap == "g")
  3676. {
  3677. if (V7 == "\x02")
  3678. {
  3679. V7 = "G";
  3680. goto VA1;
  3681. }
  3682. if (V7 != "\x02")
  3683. {
  3684. cout << " Invalid move. \n";
  3685. cout << " ";
  3686. system("pause");
  3687. goto Board2;
  3688. }
  3689. }
  3690. if (Cap == "H" || Cap == "h")
  3691. {
  3692. if (V8 == "\x02")
  3693. {
  3694. V8 = "H";
  3695. goto VA1;
  3696. }
  3697. if (V8 != "\x02")
  3698. {
  3699. cout << " Invalid move. \n";
  3700. cout << " ";
  3701. system("pause");
  3702. goto Board2;
  3703. }
  3704. }
  3705. if (Cap == "I" || Cap == "i")
  3706. {
  3707. if (V9 == "\x02")
  3708. {
  3709. V9 = "I";
  3710. goto VA1;
  3711. }
  3712. if (V9 != "\x02")
  3713. {
  3714. cout << " Invalid move. \n";
  3715. cout << " ";
  3716. system("pause");
  3717. goto Board2;
  3718. }
  3719. }
  3720. if (Cap == "J" || Cap == "j")
  3721. {
  3722. if (V10 == "\x02")
  3723. {
  3724. V10 = "J";
  3725. goto VA1;
  3726. }
  3727. if (V10 != "\x02")
  3728. {
  3729. cout << " Invalid move. \n";
  3730. cout << " ";
  3731. system("pause");
  3732. goto Board2;
  3733. }
  3734. }
  3735. if (Cap == "K" || Cap == "k")
  3736. {
  3737. if (V11 == "\x02")
  3738. {
  3739. V11 = "K";
  3740. goto VA1;
  3741. }
  3742. if (V11 != "\x02")
  3743. {
  3744. cout << " Invalid move. \n";
  3745. cout << " ";
  3746. system("pause");
  3747. goto Board2;
  3748. }
  3749. }
  3750. if (Cap == "L" || Cap == "l")
  3751. {
  3752. if (V12 == "\x02")
  3753. {
  3754. V12 = "L";
  3755. goto VA1;
  3756. }
  3757. if (V12 != "\x02")
  3758. {
  3759. cout << " Invalid move. \n";
  3760. cout << " ";
  3761. system("pause");
  3762. goto Board2;
  3763. }
  3764. }
  3765. if (Cap == "M" || Cap == "m")
  3766. {
  3767. if (V13 == "\x02")
  3768. {
  3769. V13 = "M";
  3770. goto VA1;
  3771. }
  3772. if (V13 != "\x02")
  3773. {
  3774. cout << " Invalid move. \n";
  3775. cout << " ";
  3776. system("pause");
  3777. goto Board2;
  3778. }
  3779. }
  3780. if (Cap == "N" || Cap == "n")
  3781. {
  3782. if (V14 == "\x02")
  3783. {
  3784. V14 = "N";
  3785. goto VA1;
  3786. }
  3787. if (V14 != "\x02")
  3788. {
  3789. cout << " Invalid move. \n";
  3790. cout << " ";
  3791. system("pause");
  3792. goto Board2;
  3793. }
  3794. }
  3795. if (Cap == "O" || Cap == "o")
  3796. {
  3797. if (V15 == "\x02")
  3798. {
  3799. V15 = "O";
  3800. goto VA1;
  3801. }
  3802. if (V15 != "\x02")
  3803. {
  3804. cout << " Invalid move. \n";
  3805. cout << " ";
  3806. system("pause");
  3807. goto Board2;
  3808. }
  3809. }
  3810. if (Cap == "P" || Cap == "p")
  3811. {
  3812. if (V16 == "\x02")
  3813. {
  3814. V16 = "P";
  3815. goto VA1;
  3816. }
  3817. if (V16 != "\x02")
  3818. {
  3819. cout << " Invalid move. \n";
  3820. cout << " ";
  3821. system("pause");
  3822. goto Board2;
  3823. }
  3824. }
  3825. VA1:
  3826. Ct2 = Ct2 - 1; //lost a piece
  3827. Mill = 0;
  3828. goto Board2;
  3829. }
  3830. //AHG
  3831. if (V1=="\x01" && V8 =="\x01" && V7 =="\x01" && Mill == 1)
  3832. {//Match AHG black pieces
  3833. goto CB;
  3834. }
  3835. //CDE
  3836. if (V3=="\x01" && V4 =="\x01" && V5 =="\x01" && Mill == 1)
  3837. {//Match CDE black pieces
  3838. goto CB;
  3839. }
  3840. //EFG
  3841. if (V5=="\x01" && V6 =="\x01" && V7 =="\x01" && Mill == 1)
  3842. {//Match EFG black pieces
  3843. goto CB;
  3844. }
  3845. //JKL
  3846. if (V10=="\x01" && V11 =="\x01" && V12 =="\x01" && Mill == 1)
  3847. {//Match JKL black pieces
  3848. goto CB;
  3849. }
  3850. //LMN
  3851. if (V12=="\x01" && V13 =="\x01" && V14 =="\x01" && Mill == 1)
  3852. {//Match LMN black pieces
  3853. goto CB;
  3854. }
  3855. //NOP
  3856. if (V14=="\x01" && V15 =="\x01" && V16 =="\x01" && Mill == 1)
  3857. {//Match NOP black pieces
  3858. goto CB;
  3859. }
  3860. //JIP
  3861. if (V10=="\x01" && V9 =="\x01" && V16 =="\x01" && Mill == 1)
  3862. {//Match JIP black pieces
  3863. goto CB;
  3864. }
  3865.  
  3866. //COMPUTER MATCH/CAPTURE CODE //if mill take a piece/ if close to mill take piece ELSE randomizer
  3867. //Capture a black piece (8 MILLS)
  3868. if (V1=="\x02" && V2 =="\x02" && V3 =="\x02" && Mi2 == 1) //ABC
  3869. {//Match ABC white pieces
  3870. ABC:
  3871. C = 1;
  3872. cout << " Computer formed a mill. The computer is thinking.";
  3873. //if placing pieces take from 2 pair
  3874. if (N1 > 0) //still placing pieces
  3875. {
  3876. if (V1 == "\x01" && V2 == "\x01" && V3 == "C") //AB
  3877. {
  3878. V1 = "A";
  3879. Took = "A";
  3880. Ct1 = Ct1 - 1; //lost a piece
  3881. Mi2 = 0;
  3882. system("cls");
  3883. system("cls");
  3884. goto Board2;
  3885. }
  3886. if (V2 == "\x01" && V3 == "\x01" && V1 == "A") //BC
  3887. {
  3888. V2 = "B";
  3889. Took = "B";
  3890. Ct1 = Ct1 - 1; //lost a piece
  3891. Mi2 = 0;
  3892. system("cls");
  3893. system("cls");
  3894. goto Board2;
  3895. }
  3896. if (V1 == "\x01" && V3 == "\x01" && V2 == "B") //AC
  3897. {
  3898. V3 = "C";
  3899. Took = "C";
  3900. Ct1 = Ct1 - 1; //lost a piece
  3901. Mi2 = 0;
  3902. system("cls");
  3903. system("cls");
  3904. goto Board2;
  3905. }
  3906. if (V3 == "\x01" && V4 == "\x01" && V5 == "E") //CD
  3907. {
  3908. V3 = "C";
  3909. Took = "C";
  3910. Ct1 = Ct1 - 1; //lost a piece
  3911. Mi2 = 0;
  3912. system("cls");
  3913. system("cls");
  3914. goto Board2;
  3915. }
  3916. if (V4 == "\x01" && V5 == "\x01" && V3 == "C") //DE
  3917. {
  3918. V4 = "D";
  3919. Took = "D";
  3920. Ct1 = Ct1 - 1; //lost a piece
  3921. Mi2 = 0;
  3922. system("cls");
  3923. system("cls");
  3924. goto Board2;
  3925. }
  3926. if (V3 == "\x01" && V5 == "\x01" && V4 == "D") //CE
  3927. {
  3928. V5 = "E";
  3929. Took = "E";
  3930. Ct1 = Ct1 - 1; //lost a piece
  3931. Mi2 = 0;
  3932. system("cls");
  3933. system("cls");
  3934. goto Board2;
  3935. }
  3936. if (V1 == "\x01" && V8 == "\x01" && V7 == "G") //AH
  3937. {
  3938. V1 = "A";
  3939. Took = "A";
  3940. Ct1 = Ct1 - 1; //lost a piece
  3941. Mi2 = 0;
  3942. system("cls");
  3943. system("cls");
  3944. goto Board2;
  3945. }
  3946. if (V8 == "\x01" && V7 == "\x01" && V1 == "A") //HG
  3947. {
  3948. V8 = "H";
  3949. Took = "H";
  3950. Ct1 = Ct1 - 1; //lost a piece
  3951. Mi2 = 0;
  3952. system("cls");
  3953. system("cls");
  3954. goto Board2;
  3955. }
  3956. if (V1 == "\x01" && V7 == "\x01" && V8 == "H") //AG
  3957. {
  3958. V7 = "G";
  3959. Took = "G";
  3960. Ct1 = Ct1 - 1; //lost a piece
  3961. Mi2 = 0;
  3962. system("cls");
  3963. system("cls");
  3964. goto Board2;
  3965. }
  3966. if (V5 == "\x01" && V6 == "\x01" && V7 == "G") //EF
  3967. {
  3968. V5 = "E";
  3969. Took = "E";
  3970. Ct1 = Ct1 - 1; //lost a piece
  3971. Mi2 = 0;
  3972. system("cls");
  3973. system("cls");
  3974. goto Board2;
  3975. }
  3976. if (V6 == "\x01" && V7 == "\x01" && V5 == "E") //FG
  3977. {
  3978. V6 = "F";
  3979. Took = "F";
  3980. Ct1 = Ct1 - 1; //lost a piece
  3981. Mi2 = 0;
  3982. system("cls");
  3983. system("cls");
  3984. goto Board2;
  3985. }
  3986. if (V5 == "\x01" && V7 == "\x01" && V6 == "F") //EG
  3987. {
  3988. V7 = "G";
  3989. Took = "G";
  3990. Ct1 = Ct1 - 1; //lost a piece
  3991. Mi2 = 0;
  3992. system("cls");
  3993. system("cls");
  3994. goto Board2;
  3995. }
  3996. if (V10 == "\x01" && V11 == "\x01" && V12 == "L") //JK
  3997. {
  3998. V10 = "J";
  3999. Took = "J";
  4000. Ct1 = Ct1 - 1; //lost a piece
  4001. Mi2 = 0;
  4002. system("cls");
  4003. system("cls");
  4004. goto Board2;
  4005. }
  4006. if (V11 == "\x01" && V12 == "\x01" && V10 == "J") //KL
  4007. {
  4008. V11 = "K";
  4009. Took = "K";
  4010. Ct1 = Ct1 - 1; //lost a piece
  4011. Mi2 = 0;
  4012. system("cls");
  4013. system("cls");
  4014. goto Board2;
  4015. }
  4016. if (V10 == "\x01" && V12 == "\x01" && V11 == "K") //JL
  4017. {
  4018. V12 = "L";
  4019. Took = "L";
  4020. Ct1 = Ct1 - 1; //lost a piece
  4021. Mi2 = 0;
  4022. system("cls");
  4023. system("cls");
  4024. goto Board2;
  4025. }
  4026. if (V10 == "\x01" && V9 == "\x01" && V16 == "P") //JI
  4027. {
  4028. V10 = "J";
  4029. Took = "J";
  4030. Ct1 = Ct1 - 1; //lost a piece
  4031. Mi2 = 0;
  4032. system("cls");
  4033. system("cls");
  4034. goto Board2;
  4035. }
  4036. if (V16 == "\x01" && V9 == "\x01" && V10 == "J") //IP
  4037. {
  4038. V9 = "I";
  4039. Took = "I";
  4040. Ct1 = Ct1 - 1; //lost a piece
  4041. Mi2 = 0;
  4042. system("cls");
  4043. system("cls");
  4044. goto Board2;
  4045. }
  4046. if (V10 == "\x01" && V16 == "\x01" && V9 == "I") //JP
  4047. {
  4048. V16 = "P";
  4049. Took = "P";
  4050. Ct1 = Ct1 - 1; //lost a piece
  4051. Mi2 = 0;
  4052. system("cls");
  4053. system("cls");
  4054. goto Board2;
  4055. }
  4056. if (V12 == "\x01" && V13 == "\x01" && V14 == "N") //LM
  4057. {
  4058. V12 = "L";
  4059. Took = "L";
  4060. Ct1 = Ct1 - 1; //lost a piece
  4061. Mi2 = 0;
  4062. system("cls");
  4063. system("cls");
  4064. goto Board2;
  4065. }
  4066. if (V13 == "\x01" && V14 == "\x01" && V12 == "L") //MN
  4067. {
  4068. V13 = "M";
  4069. Took = "M";
  4070. Ct1 = Ct1 - 1; //lost a piece
  4071. Mi2 = 0;
  4072. system("cls");
  4073. system("cls");
  4074. goto Board2;
  4075. }
  4076. if (V14 == "\x01" && V12 == "\x01" && V13 == "M") //LN
  4077. {
  4078. V14 = "N";
  4079. Took = "N";
  4080. Ct1 = Ct1 - 1; //lost a piece
  4081. Mi2 = 0;
  4082. system("cls");
  4083. system("cls");
  4084. goto Board2;
  4085. }
  4086. if (V14 == "\x01" && V15 == "\x01" && V16 == "P") //NO
  4087. {
  4088. V14 = "N";
  4089. Took = "N";
  4090. Ct1 = Ct1 - 1; //lost a piece
  4091. Mi2 = 0;
  4092. system("cls");
  4093. system("cls");
  4094. goto Board2;
  4095. }
  4096. if (V15 == "\x01" && V16 == "\x01" && V14 == "N") //OP
  4097. {
  4098. V15 = "O";
  4099. Took = "O";
  4100. Ct1 = Ct1 - 1; //lost a piece
  4101. Mi2 = 0;
  4102. system("cls");
  4103. system("cls");
  4104. goto Board2;
  4105. }
  4106. if (V14 == "\x01" && V16 == "\x01" && V15 == "O") //NP
  4107. {
  4108. V16 = "P";
  4109. Took = "P";
  4110. Ct1 = Ct1 - 1; //lost a piece
  4111. Mi2 = 0;
  4112. system("cls");
  4113. system("cls");
  4114. goto Board2;
  4115. }
  4116. }
  4117.  
  4118. //take from mill
  4119. if (V1 == "\x01" && V2 == "\x01" && V3 == "\x01") // ABC - 123
  4120. {
  4121. int Cp1;
  4122. srand((unsigned)time(0));//randomizer
  4123. Cp1 = (rand()%3) +1; //1-3
  4124. if (Cp1 == 1) //A
  4125. {
  4126. V1 = "A";
  4127. Took = "A";
  4128. }
  4129. if (Cp1 == 2) //B
  4130. {
  4131. V2 = "B";
  4132. Took = "B";
  4133. }
  4134. if (Cp1 >= 3) //C
  4135. {
  4136. V3 = "C";
  4137. Took = "C";
  4138. }
  4139. Ct1 = Ct1 - 1; //lost a piece
  4140. Mi2 = 0;
  4141. system("cls");
  4142. system("cls");
  4143. goto Board2;
  4144. }
  4145. if (V1 == "\x01" && V8 == "\x01" && V7 == "\x01") // AHG - 187
  4146. {
  4147. int Cp;
  4148. srand((unsigned)time(0));//randomizer
  4149. Cp = (rand()%3) +1; //1-3
  4150. if (Cp == 1) //A
  4151. {
  4152. V1 = "A";
  4153. Took = "A";
  4154. }
  4155. if (Cp == 2) //H
  4156. {
  4157. V8 = "H";
  4158. Took = "H";
  4159. }
  4160. if (Cp >= 3) //G
  4161. {
  4162. V7 = "G";
  4163. Took = "G";
  4164. }
  4165. Ct1 = Ct1 - 1; //lost a piece
  4166. Mi2 = 0;
  4167. system("cls");
  4168. system("cls");
  4169. goto Board2;
  4170. }
  4171. if (V3 == "\x01" && V4 == "\x01" && V5 == "\x01") //CDE - 345
  4172. {
  4173. int CP2;
  4174. srand((unsigned)time(0));//randomizer
  4175. CP2 = (rand()%3) +1; //1-3
  4176. if (CP2 == 1) //C
  4177. {
  4178. V3 = "C";
  4179. Took = "C";
  4180. }
  4181. if (CP2 == 2) //D
  4182. {
  4183. V4 = "D";
  4184. Took = "D";
  4185. }
  4186. if (CP2 >= 3) //E
  4187. {
  4188. V5 = "E";
  4189. Took = "E";
  4190. }
  4191. Ct1 = Ct1 - 1; //lost a piece
  4192. Mi2 = 0;
  4193. system("cls");
  4194. system("cls");
  4195. goto Board2;
  4196. }
  4197. if (V5 == "\x01" && V6 == "\x01" && V7 == "\x01")//EFG-567
  4198. {
  4199. int C1;
  4200. srand((unsigned)time(0));//randomizer
  4201. C1 = (rand()%3) +1; //1-3
  4202. if (C1 == 1) //E
  4203. {
  4204. V5 = "E";
  4205. Took = "E";
  4206. }
  4207. if (C1 == 2) //F
  4208. {
  4209. V6 = "F";
  4210. Took = "F";
  4211. }
  4212. if (C1 >= 3) //G
  4213. {
  4214. V7 = "G";
  4215. Took = "G";
  4216. }
  4217. Ct1 = Ct1 - 1; //lost a piece
  4218. Mi2 = 0;
  4219. system("cls");
  4220. system("cls");
  4221. goto Board2;
  4222. }
  4223. if (V10 == "\x01" && V11 == "\x01" && V12 == "\x01")//JKL 10-11-12
  4224. {
  4225. int C2;
  4226. srand((unsigned)time(0));//randomizer
  4227. C2 = (rand()%3) +1; //1-3
  4228. if (C2 == 1) //J
  4229. {
  4230. V10 = "J";
  4231. Took = "J";
  4232. }
  4233. if (C2 == 2) //K
  4234. {
  4235. V11 = "K";
  4236. Took = "K";
  4237. }
  4238. if (C2 >= 3) //L
  4239. {
  4240. V12 = "L";
  4241. Took = "L";
  4242. }
  4243. Ct1 = Ct1 - 1; //lost a piece
  4244. Mi2 = 0;
  4245. system("cls");
  4246. system("cls");
  4247. goto Board2;
  4248. }
  4249. if (V12 == "\x01" && V13 == "\x01" && V14 == "\x01")//LMN 12-13-14
  4250. {
  4251. int C3;
  4252. srand((unsigned)time(0));//randomizer
  4253. C3 = (rand()%3) +1; //1-3
  4254. if (C3 == 1) //L
  4255. {
  4256. V12 = "L";
  4257. Took = "L";
  4258. }
  4259. if (C3 == 2) //M
  4260. {
  4261. V13 = "M";
  4262. Took = "M";
  4263. }
  4264. if (C3 >= 3) //N
  4265. {
  4266. V14 = "N";
  4267. Took = "N";
  4268. }
  4269. Ct1 = Ct1 - 1; //lost a piece
  4270. Mi2 = 0;
  4271. system("cls");
  4272. system("cls");
  4273. goto Board2;
  4274. }
  4275. if (V15 == "\x01" && V16 == "\x01" && V14 == "\x01")//NOP 14-15-16
  4276. {
  4277. int C4;
  4278. srand((unsigned)time(0));//randomizer
  4279. C4 = (rand()%3) +1; //1-3
  4280. if (C4 == 1) //N
  4281. {
  4282. V14 = "N";
  4283. Took = "N";
  4284. }
  4285. if (C4 == 2) //O
  4286. {
  4287. V15 = "O";
  4288. Took = "O";
  4289. }
  4290. if (C4 >= 3) //P
  4291. {
  4292. V16 = "P";
  4293. Took = "P";
  4294. }
  4295. Ct1 = Ct1 - 1; //lost a piece
  4296. Mi2 = 0;
  4297. system("cls");
  4298. system("cls");
  4299. goto Board2;
  4300. }
  4301. if (V10 == "\x01" && V16 == "\x01" && V9 == "\x01")//JIP 10-9-16
  4302. {
  4303. int C5;
  4304. srand((unsigned)time(0));//randomizer
  4305. C5 = (rand()%3) +1; //1-3
  4306. if (C5 == 1) //J
  4307. {
  4308. V10 = "J";
  4309. Took = "J";
  4310. }
  4311. if (C5 == 2) //I
  4312. {
  4313. V9 = "I";
  4314. Took = "I";
  4315. }
  4316. if (C5 >= 3) //P
  4317. {
  4318. V16 = "P";
  4319. Took = "P";
  4320. }
  4321. Ct1 = Ct1 - 1; //lost a piece
  4322. Mi2 = 0;
  4323. system("cls");
  4324. system("cls");
  4325. goto Board2;
  4326. }
  4327.  
  4328. //Block Mills that are close to being made
  4329. if (V1 == "\x01" && V2 == "\x01" && V4 == "\x01" && V3 == "C") //AB D
  4330. {
  4331. V4 = "D";
  4332. Took = "D";
  4333. Ct1 = Ct1 - 1; //lost a piece
  4334. Mi2 = 0;
  4335. system("cls");
  4336. system("cls");
  4337. goto Board2;
  4338. }
  4339. if (V1 == "\x01" && V3 == "\x01" && V11 == "\x01" && V2 == "B") //AC K
  4340. {
  4341. V11 = "K";
  4342. Took = "K";
  4343. Ct1 = Ct1 - 1; //lost a piece
  4344. Mi2 = 0;
  4345. system("cls");
  4346. system("cls");
  4347. goto Board2;
  4348. }
  4349. if (V2 == "\x01" && V3 == "\x01" && V8 == "\x01" && V1 == "A") //BC H
  4350. {
  4351. V8 = "H";
  4352. Took = "H";
  4353. Ct1 = Ct1 - 1; //lost a piece
  4354. Mi2 = 0;
  4355. system("cls");
  4356. system("cls");
  4357. goto Board2;
  4358. }
  4359. if (V1 == "\x01" && V8 == "\x01" && V6 == "\x01" && V7 == "G") //AH F
  4360. {
  4361. V6 = "F";
  4362. Took = "F";
  4363. Ct1 = Ct1 - 1; //lost a piece
  4364. Mi2 = 0;
  4365. system("cls");
  4366. system("cls");
  4367. goto Board2;
  4368. }
  4369. if (V1 == "\x01" && V7 == "\x01" && V9 == "\x01" && V8 == "H") //AG I
  4370. {
  4371. V9 = "I";
  4372. Took = "I";
  4373. Ct1 = Ct1 - 1; //lost a piece
  4374. Mi2 = 0;
  4375. system("cls");
  4376. system("cls");
  4377. goto Board2;
  4378. }
  4379. if (V8 == "\x01" && V7 == "\x01" && V2 == "\x01" && V1 == "A") //HG B
  4380. {
  4381. V2 = "B";
  4382. Took = "B";
  4383. Ct1 = Ct1 - 1; //lost a piece
  4384. Mi2 = 0;
  4385. system("cls");
  4386. system("cls");
  4387. goto Board2;
  4388. }
  4389. if (V3 == "\x01" && V4 == "\x01" && V6 == "\x01" && V5 == "E") //CD F
  4390. {
  4391. V6 = "F";
  4392. Took = "F";
  4393. Ct1 = Ct1 - 1; //lost a piece
  4394. Mi2 = 0;
  4395. system("cls");
  4396. system("cls");
  4397. goto Board2;
  4398. }
  4399. if (V3 == "\x01" && V5 == "\x01" && V13 == "\x01" && V4 == "D") //CE M
  4400. {
  4401. V13 = "M";
  4402. Took = "M";
  4403. Ct1 = Ct1 - 1; //lost a piece
  4404. Mi2 = 0;
  4405. system("cls");
  4406. system("cls");
  4407. goto Board2;
  4408. }
  4409. if (V4 == "\x01" && V5 == "\x01" && V2 == "\x01" && V3 == "C") //DE B
  4410. {
  4411. V2 = "B";
  4412. Took = "B";
  4413. Ct1 = Ct1 - 1; //lost a piece
  4414. Mi2 = 0;
  4415. system("cls");
  4416. system("cls");
  4417. goto Board2;
  4418. }
  4419. if (V5 == "\x01" && V6 == "\x01" && V8 == "\x01" && V7 == "G") //EF H
  4420. {
  4421. V8 = "H";
  4422. Took = "H";
  4423. Ct1 = Ct1 - 1; //lost a piece
  4424. Mi2 = 0;
  4425. system("cls");
  4426. system("cls");
  4427. goto Board2;
  4428. }
  4429. if (V7 == "\x01" && V5 == "\x01" && V15 == "\x01" && V6 == "F") //EG O
  4430. {
  4431. V15 = "O";
  4432. Took = "O";
  4433. Ct1 = Ct1 - 1; //lost a piece
  4434. Mi2 = 0;
  4435. system("cls");
  4436. system("cls");
  4437. goto Board2;
  4438. }
  4439. if (V7 == "\x01" && V6 == "\x01" && V4 == "\x01" && V5 == "E") //GF D
  4440. {
  4441. V4 = "D";
  4442. Took = "D";
  4443. Ct1 = Ct1 - 1; //lost a piece
  4444. Mi2 = 0;
  4445. system("cls");
  4446. system("cls");
  4447. goto Board2;
  4448. }
  4449. if (V10 == "\x01" && V11 == "\x01" && V13 == "\x01" && V12 == "L") //JK M
  4450. {
  4451. V13 = "M";
  4452. Took = "M";
  4453. Ct1 = Ct1 - 1; //lost a piece
  4454. Mi2 = 0;
  4455. system("cls");
  4456. system("cls");
  4457. goto Board2;
  4458. }
  4459. if (V10 == "\x01" && V12 == "\x01" && V2 == "\x01" && V11 == "K") //JL B
  4460. {
  4461. V2 = "B";
  4462. Took = "B";
  4463. Ct1 = Ct1 - 1; //lost a piece
  4464. Mi2 = 0;
  4465. system("cls");
  4466. system("cls");
  4467. goto Board2;
  4468. }
  4469. if (V12 == "\x01" && V11 == "\x01" && V9 == "\x01" && V10 == "J") //LK I
  4470. {
  4471. V9 = "I";
  4472. Took = "I";
  4473. Ct1 = Ct1 - 1; //lost a piece
  4474. Mi2 = 0;
  4475. system("cls");
  4476. system("cls");
  4477. goto Board2;
  4478. }
  4479. if (V12 == "\x01" && V13 == "\x01" && V15 == "\x01" && V14 == "N") //LM O
  4480. {
  4481. V15 = "O";
  4482. Took = "O";
  4483. Ct1 = Ct1 - 1; //lost a piece
  4484. Mi2 = 0;
  4485. system("cls");
  4486. system("cls");
  4487. goto Board2;
  4488. }
  4489. if (V13 == "\x01" && V14 == "\x01" && V11 == "\x01" && V12 == "L") //MN K
  4490. {
  4491. V11 = "K";
  4492. Took = "K";
  4493. Ct1 = Ct1 - 1; //lost a piece
  4494. Mi2 = 0;
  4495. system("cls");
  4496. system("cls");
  4497. goto Board2;
  4498. }
  4499. if (V12 == "\x01" && V14 == "\x01" && V4 == "\x01" && V13 == "M") //LN D
  4500. {
  4501. V4 = "D";
  4502. Took = "D";
  4503. Ct1 = Ct1 - 1; //lost a piece
  4504. Mi2 = 0;
  4505. system("cls");
  4506. system("cls");
  4507. goto Board2;
  4508. }
  4509. if (V15 == "\x01" && V14 == "\x01" && V9 == "\x01" && V16 == "P") //NO I
  4510. {
  4511. V9 = "I";
  4512. Took = "I";
  4513. Ct1 = Ct1 - 1; //lost a piece
  4514. Mi2 = 0;
  4515. system("cls");
  4516. system("cls");
  4517. goto Board2;
  4518. }
  4519. if (V14 == "\x01" && V16 == "\x01" && V6 == "\x01" && V15 == "O") //NP F
  4520. {
  4521. V6 = "F";
  4522. Took = "F";
  4523. Ct1 = Ct1 - 1; //lost a piece
  4524. Mi2 = 0;
  4525. system("cls");
  4526. system("cls");
  4527. goto Board2;
  4528. }
  4529. if (V15 == "\x01" && V16 == "\x01" && V13 == "\x01" && V14 == "N") //OP M
  4530. {
  4531. V13 = "M";
  4532. Took = "M";
  4533. Ct1 = Ct1 - 1; //lost a piece
  4534. Mi2 = 0;
  4535. system("cls");
  4536. system("cls");
  4537. goto Board2;
  4538. }
  4539. if (V10 == "\x01" && V9 == "\x01" && V15 == "\x01" && V16 == "P") //JI O
  4540. {
  4541. V15 = "O";
  4542. Took = "O";
  4543. Ct1 = Ct1 - 1; //lost a piece
  4544. Mi2 = 0;
  4545. system("cls");
  4546. system("cls");
  4547. goto Board2;
  4548. }
  4549. if (V10 == "\x01" && V16 == "\x01" && V8 == "\x01" && V9 == "I") //JP H
  4550. {
  4551. V8 = "H";
  4552. Took = "H";
  4553. Ct1 = Ct1 - 1; //lost a piece
  4554. Mi2 = 0;
  4555. system("cls");
  4556. system("cls");
  4557. goto Board2;
  4558. }
  4559. if (V9 == "\x01" && V16 == "\x01" && V11 == "\x01" && V10 == "J") //IP K
  4560. {
  4561. V11 = "K";
  4562. Took = "K";
  4563. Ct1 = Ct1 - 1; //lost a piece
  4564. Mi2 = 0;
  4565. system("cls");
  4566. system("cls");
  4567. goto Board2;
  4568. }
  4569. //Randomizer
  4570. int Cap;
  4571. CAP:
  4572. srand((unsigned)time(0));//randomizer
  4573. Cap = (rand()%16) +1; //1-16
  4574. if (Cap == 1)
  4575. {
  4576. if (V1 == "\x01")
  4577. {
  4578. V1 = "A";
  4579. Took = "A";
  4580. Ct1 = Ct1 - 1; //lost a piece
  4581. Mi2 = 0;
  4582. system("cls");
  4583. system("cls");
  4584. goto Board2;
  4585. }
  4586. if (V1 != "\x01")
  4587. {
  4588. goto CAP;
  4589. }
  4590. }
  4591. if (Cap == 2)
  4592. {
  4593. if (V2 == "\x01")
  4594. {
  4595. V2 = "B";
  4596. Took = "B";
  4597. Ct1 = Ct1 - 1; //lost a piece
  4598. Mi2 = 0;
  4599. system("cls");
  4600. system("cls");
  4601. goto Board2;
  4602. }
  4603. if (V2 != "\x01")
  4604. {
  4605. goto CAP;
  4606. }
  4607. }
  4608. if (Cap == 3)
  4609. {
  4610. if (V3 == "\x01")
  4611. {
  4612. V3 = "C";
  4613. Took = "C";
  4614. Ct1 = Ct1 - 1; //lost a piece
  4615. Mi2 = 0;
  4616. system("cls");
  4617. system("cls");
  4618. goto Board2;
  4619. }
  4620. if (V3 != "\x01")
  4621. {
  4622. goto CAP;
  4623. }
  4624. }
  4625. if (Cap == 4)
  4626. {
  4627. if (V4 == "\x01")
  4628. {
  4629. V4 = "D";
  4630. Took = "D";
  4631. Ct1 = Ct1 - 1; //lost a piece
  4632. Mi2 = 0;
  4633. system("cls");
  4634. system("cls");
  4635. goto Board2;
  4636. }
  4637. if (V4 != "\x01")
  4638. {
  4639. goto CAP;
  4640. }
  4641. }
  4642. if (Cap == 5)
  4643. {
  4644. if (V5 == "\x01")
  4645. {
  4646. V5 = "E";
  4647. Took = "E";
  4648. Ct1 = Ct1 - 1; //lost a piece
  4649. Mi2 = 0;
  4650. system("cls");
  4651. system("cls");
  4652. goto Board2;
  4653. }
  4654. if (V5 != "\x01")
  4655. {
  4656. goto CAP;
  4657. }
  4658. }
  4659. if (Cap == 6)
  4660. {
  4661. if (V6 == "\x01")
  4662. {
  4663. V6 = "F";
  4664. Took = "F";
  4665. Ct1 = Ct1 - 1; //lost a piece
  4666. Mi2 = 0;
  4667. system("cls");
  4668. system("cls");
  4669. goto Board2;
  4670. }
  4671. if (V6 != "\x01")
  4672. {
  4673. goto CAP;
  4674. }
  4675. }
  4676. if (Cap == 7)
  4677. {
  4678. if (V7 == "\x01")
  4679. {
  4680. V7 = "G";
  4681. Took = "G";
  4682. Ct1 = Ct1 - 1; //lost a piece
  4683. Mi2 = 0;
  4684. system("cls");
  4685. system("cls");
  4686. goto Board2;
  4687. }
  4688. if (V7 != "\x01")
  4689. {
  4690. goto CAP;
  4691. }
  4692. }
  4693. if (Cap == 8)
  4694. {
  4695. if (V8 == "\x01")
  4696. {
  4697. V8 = "H";
  4698. Took = "H";
  4699. Ct1 = Ct1 - 1; //lost a piece
  4700. Mi2 = 0;
  4701. system("cls");
  4702. system("cls");
  4703. goto Board2;
  4704. }
  4705. if (V8 != "\x01")
  4706. {
  4707. goto CAP;
  4708. }
  4709. }
  4710. if (Cap == 9)
  4711. {
  4712. if (V9 == "\x01")
  4713. {
  4714. V9 = "I";
  4715. Took = "I";
  4716. Ct1 = Ct1 - 1; //lost a piece
  4717. Mi2 = 0;
  4718. system("cls");
  4719. system("cls");
  4720. goto Board2;
  4721. }
  4722. if (V9 != "\x01")
  4723. {
  4724. goto CAP;
  4725. }
  4726. }
  4727. if (Cap == 10)
  4728. {
  4729. if (V10 == "\x01")
  4730. {
  4731. V10 = "J";
  4732. Took = "J";
  4733. Ct1 = Ct1 - 1; //lost a piece
  4734. Mi2 = 0;
  4735. system("cls");
  4736. system("cls");
  4737. goto Board2;
  4738. }
  4739. if (V10 != "\x01")
  4740. {
  4741. goto CAP;
  4742. }
  4743. }
  4744. if (Cap == 11)
  4745. {
  4746. if (V11 == "\x01")
  4747. {
  4748. V11 = "K";
  4749. Took = "K";
  4750. Ct1 = Ct1 - 1; //lost a piece
  4751. Mi2 = 0;
  4752. system("cls");
  4753. system("cls");
  4754. goto Board2;
  4755. }
  4756. if (V11 != "\x01")
  4757. {
  4758. goto CAP;
  4759. }
  4760. }
  4761. if (Cap == 12)
  4762. {
  4763. if (V12 == "\x01")
  4764. {
  4765. V12 = "L";
  4766. Took = "L";
  4767. Ct1 = Ct1 - 1; //lost a piece
  4768. Mi2 = 0;
  4769. system("cls");
  4770. system("cls");
  4771. goto Board2;
  4772. }
  4773. if (V12 != "\x01")
  4774. {
  4775. goto CAP;
  4776. }
  4777. }
  4778. if (Cap == 13)
  4779. {
  4780. if (V13 == "\x01")
  4781. {
  4782. V13 = "M";
  4783. Took = "M";
  4784. Ct1 = Ct1 - 1; //lost a piece
  4785. Mi2 = 0;
  4786. system("cls");
  4787. system("cls");
  4788. goto Board2;
  4789. }
  4790. if (V13 != "\x01")
  4791. {
  4792. goto CAP;
  4793. }
  4794. }
  4795. if (Cap == 14)
  4796. {
  4797. if (V14 == "\x01")
  4798. {
  4799. V14 = "N";
  4800. Took = "N";
  4801. Ct1 = Ct1 - 1; //lost a piece
  4802. Mi2 = 0;
  4803. system("cls");
  4804. system("cls");
  4805. goto Board2;
  4806. }
  4807. if (V14 != "\x01")
  4808. {
  4809. goto CAP;
  4810. }
  4811. }
  4812. if (Cap == 15)
  4813. {
  4814. if (V15 == "\x01")
  4815. {
  4816. V15 = "O";
  4817. Took = "O";
  4818. Ct1 = Ct1 - 1; //lost a piece
  4819. Mi2 = 0;
  4820. system("cls");
  4821. system("cls");
  4822. goto Board2;
  4823. }
  4824. if (V15 != "\x01")
  4825. {
  4826. goto CAP;
  4827. }
  4828. }
  4829. if (Cap == 16)
  4830. {
  4831. if (V16 == "\x01")
  4832. {
  4833. V16 = "P";
  4834. Took = "P";
  4835. Ct1 = Ct1 - 1; //lost a piece
  4836. Mi2 = 0;
  4837. system("cls");
  4838. system("cls");
  4839. goto Board2;
  4840. }
  4841. if (V16 != "\x01")
  4842. {
  4843. goto CAP;
  4844. }
  4845. }
  4846. goto CAP;
  4847. }
  4848. if (V3=="\x02" && V4 =="\x02" && V5 =="\x02" && Mi2 == 1) //CDE - 345
  4849. {//Match CDE white pieces
  4850. goto ABC; //USE ABC CAP CODE FOR ALL CAPTURE CODE
  4851. }
  4852. if (V1=="\x02" && V8 =="\x02" && V7 =="\x02" && Mi2 == 1) //AHG 187
  4853. {//Match AHG white pieces
  4854. goto ABC; //goto capture code
  4855. }
  4856. if (V5=="\x02" && V6 =="\x02" && V7 =="\x02" && Mi2 == 1) //EFG 567
  4857. {//Match EFG white pieces
  4858. goto ABC; //goto capture code
  4859. }
  4860. if (V10 =="\x02" && V11 =="\x02" && V12 =="\x02" && Mi2 == 1) //JKL 10 11 12
  4861. {//Match JKL white pieces
  4862. goto ABC; //goto capture code
  4863. }
  4864. if (V10=="\x02" && V9 =="\x02" && V16 =="\x02" && Mi2 == 1) //JIP 9 10 16
  4865. {//Match JIP white pieces
  4866. goto ABC; //goto capture code
  4867. }
  4868. if (V12=="\x02" && V13 =="\x02" && V14 =="\x02" && Mi2 == 1) //LMN 12 13 14
  4869. {//Match LMN white pieces
  4870. goto ABC; //goto capture code
  4871. }
  4872. if (V14=="\x02" && V15 =="\x02" && V16 =="\x02" && Mi2 == 1) //NOP 14 15 16
  4873. {//Match NOP white pieces
  4874. goto ABC; //goto capture code
  4875. }
  4876.  
  4877. //if < 3 pieces left then win
  4878. if (Ct1 < 3)
  4879. {
  4880. system("cls"); //winning smiley face
  4881. cout << " \n";
  4882. cout << " \n";
  4883. cout << " \n";
  4884. cout << " \n";
  4885. cout << " \n";
  4886. cout << " \n";
  4887. cout << " \n";
  4888. cout << " \n";
  4889. cout << " \x02\x02\x02\x02\x02\x02\x02\x02\x02\x02 \n";
  4890. cout << " \x02 \x02 \n";
  4891. cout << " \x02 \x02 \x02 \x02 \n";
  4892. cout << " \x02 \x02\x02\x02 \x02\x02\x02 \x02 \n";
  4893. cout << " \x02 \x02 \x02 \x02 \n";
  4894. cout << " \x02 \x02 \n";
  4895. cout << " \x02 \x02 \x02 \x02 \n";
  4896. cout << " \x02 \x02 \x02 \x02 \n";
  4897. cout << " \x02 \x02\x02\x02\x02\x02\x02 \x02 \n";
  4898. cout << " \x02 \x02 \n";
  4899. cout << " \x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\n";
  4900. cout << " \n";
  4901. cout << " Computer wins. \n";
  4902. cout << " Do you want to play again? \n";
  4903. cout << " 1) Yes \n"; //play again
  4904. cout << " 2) No \n";
  4905. cout << " Make a selection: ";
  4906. cin >> Ans;
  4907. if (Ans == 1)
  4908. {
  4909. system("cls");
  4910. goto Top;
  4911. }
  4912. if (Ans >= 2)
  4913. {
  4914. system("cls");
  4915. return 0;
  4916. }
  4917. }
  4918. if (Ct2 < 3)
  4919. {
  4920. system("cls"); //winning smiley face
  4921. cout << " \n";
  4922. cout << " \n";
  4923. cout << " \n";
  4924. cout << " \n";
  4925. cout << " \n";
  4926. cout << " \n";
  4927. cout << " \n";
  4928. cout << " \n";
  4929. cout << " \x01\x01\x01\x01\x01\x01\x01\x01\x01\x01 \n";
  4930. cout << " \x01 \x01 \n";
  4931. cout << " \x01 \x01 \x01 \x01 \n";
  4932. cout << " \x01 \x01\x01\x01 \x01\x01\x01 \x01 \n";
  4933. cout << " \x01 \x01 \x01 \x01 \n";
  4934. cout << " \x01 \x01 \n";
  4935. cout << " \x01 \x01 \x01 \x01 \n";
  4936. cout << " \x01 \x01 \x01 \x01 \n";
  4937. cout << " \x01 \x01\x01\x01\x01\x01\x01 \x01 \n";
  4938. cout << " \x01 \x01 \n";
  4939. cout << " \x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\n";
  4940. cout << " \n";
  4941. cout << " Player \x01 wins. \n";
  4942. cout << " Do you want to play again? \n";
  4943. cout << " 1) Yes \n"; //play again
  4944. cout << " 2) No \n";
  4945. cout << " Make a selection: ";
  4946. cin >> Ans;
  4947. if (Ans == 1)
  4948. {
  4949. system("cls");
  4950. goto Top;
  4951. }
  4952. if (Ans >= 2)
  4953. {
  4954. system("cls");
  4955. return 0;
  4956. }
  4957. }
  4958.  
  4959. //MOVE BOARD
  4960. if (Mill < 1 && Mi2 < 1)
  4961. {
  4962. if (N1 <= 0 && N2 <=0)
  4963. {
  4964. cout << " \xc9\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcb\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbb\n";
  4965. cout << " \xba Moving: \xba Pieces Left: \xba \n";
  4966. cout << " \xba \xba \x01 " <<Ct1<<" \xba\n";
  4967. cout << " \xba "<<Val<<" \xba \xba\n";
  4968. cout << " \xba \xba \x02 " <<Ct2<<" \xba\n";
  4969. cout << " \xc8\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xca\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbc\n";
  4970. cout << " \n";
  4971. }
  4972. if (N1 > 0 || N2 >0)
  4973. {
  4974. cout << " \xc9\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcb\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcb\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbb\n";
  4975. cout << " \xba Moving: \xba Pieces Left: \xba Pieces Left to Place: \xba \n";
  4976. cout << " \xba \xba \x01 " <<Ct1<<" \xba \x01 " <<N1<<" \xba\n";
  4977. cout << " \xba "<<Val<<" \xba \xba \xba\n";
  4978. cout << " \xba \xba \x02 " <<Ct2<<" \xba \x02 " <<N2<<" \xba\n";
  4979. cout << " \xc8\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xca\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xca\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xbc\n";
  4980. cout << " \n";
  4981. }
  4982. }
  4983. if (N1 <= 0 && Val == "\x01" && Mill < 1 && Mi2 < 1) //MOVE PIECES
  4984. {
  4985. Chk = 0;
  4986. if (F2 == 1)
  4987. {
  4988. cout << " Computer moved from " << S << " to " << S2 << ".\n";
  4989. }
  4990. if (F2 == 0)
  4991. {
  4992. cout << " Computer placed a piece at " << Spot << ".\n";
  4993. }
  4994. if (C == 0)
  4995. {
  4996. cout << endl;
  4997. }
  4998. if (C == 1)
  4999. {
  5000. cout << " Computer captured a piece at " << Took << ".\n\n";
  5001. C = 0;
  5002. }
  5003. Dir = "Move a piece from: ";
  5004. cout << " "<<Dir<<" ";
  5005. cin >> M2;
  5006. D2 = "to: ";
  5007. cout << " "<<D2<<" ";
  5008. cin >> M3;
  5009. cout << " \n";
  5010. }
  5011. if (N2 <= 0 && Val == "\x02" && Mill < 1 && Mi2 < 1) //computer moves pieces
  5012. {
  5013. Chk = 0;
  5014. F2 = 1;
  5015. cout << " Computer is thinking. ";
  5016. CTop:
  5017. //COMPUTER MOVE //Capture, set capture, block, else RANDOMIZER
  5018. //CAPTURE Mills -make mill
  5019. if (V1 == "\x02" && V2 == "\x02" && V3 == "C" && V4 == "\x02") //ABC - 123
  5020. {//AB
  5021. V4 = "D";
  5022. S = "D";
  5023. V3 = "\x02";
  5024. S2 = "C";
  5025. Val = "\x01";
  5026. Mi2 = 1;
  5027. system("cls");
  5028. system("cls");
  5029. goto Board2;
  5030. }
  5031. if (V2 == "\x02" && V3 == "\x02" && V1 == "A" && V8 == "\x02")
  5032. {//BC
  5033. V8 = "H";
  5034. S = "H";
  5035. V1 = "\x02";
  5036. S2 = "A";
  5037. Val = "\x01";
  5038. Mi2 = 1;
  5039. system("cls");
  5040. system("cls");
  5041. goto Board2;
  5042. }
  5043. if (V1 == "\x02" && V3 == "\x02" && V2 == "B" && V11 == "\x02")
  5044. {//AC
  5045. V11 = "K";
  5046. S = "K";
  5047. V2 = "\x02";
  5048. S2 = "B";
  5049. Val = "\x01";
  5050. Mi2 = 1;
  5051. system("cls");
  5052. system("cls");
  5053. goto Board2;
  5054. }
  5055. if (V3 == "\x02" && V4 == "\x02" && V5 == "E" && V6 == "\x02")//CDE - 345
  5056. {//CD
  5057. V6 = "F";
  5058. S = "F";
  5059. V5 = "\x02";
  5060. S2 = "E";
  5061. Val = "\x01";
  5062. Mi2 = 1;
  5063. system("cls");
  5064. system("cls");
  5065. goto Board2;
  5066. }
  5067. if (V4 == "\x02" && V5 == "\x02" && V3 == "C" && V2 == "\x02")
  5068. {//DE
  5069. V2 = "B";
  5070. S = "B";
  5071. V3 = "\x02";
  5072. S2 = "C";
  5073. Val = "\x01";
  5074. Mi2 = 1;
  5075. system("cls");
  5076. system("cls");
  5077. goto Board2;
  5078. }
  5079. if (V3 == "\x02" && V5 == "\x02" && V4 == "D" && V13 == "\x02")
  5080. {//CE
  5081. V13 ="M";
  5082. S = "M";
  5083. V4 = "\x02";
  5084. S2 = "D";
  5085. Val = "\x01";
  5086. Mi2 = 1;
  5087. system("cls");
  5088. system("cls");
  5089. goto Board2;
  5090. }
  5091. if (V5 == "\x02" && V6 == "\x02" && V7 == "G" && V8 == "\x02") //EFG - 567
  5092. {//EF
  5093. V8 = "H";
  5094. S = "H";
  5095. V7 = "\x02";
  5096. S2 = "G";
  5097. Val = "\x01";
  5098. Mi2 = 1;
  5099. system("cls");
  5100. system("cls");
  5101. goto Board2;
  5102. }
  5103. if (V6 == "\x02" && V7 == "\x02" && V5 == "E" && V4 == "\x02")
  5104. {//FG
  5105. V4 = "D";
  5106. S = "D";
  5107. V5 = "\x02";
  5108. S2 = "E";
  5109. Val = "\x01";
  5110. Mi2 = 1;
  5111. system("cls");
  5112. system("cls");
  5113. goto Board2;
  5114. }
  5115. if (V5 == "\x02" && V7 == "\x02" && V6 == "F" && V15 == "\x02")
  5116. {//EG
  5117. V15 = "O";
  5118. S = "O";
  5119. V6 = "\x02";
  5120. S2 = "F";
  5121. Val = "\x01";
  5122. Mi2 = 1;
  5123. system("cls");
  5124. system("cls");
  5125. goto Board2;
  5126. }
  5127. if (V1 == "\x02" && V8 == "\x02" && V7 == "G" && V6 == "\x02") //AHG - 187
  5128. {//AH
  5129. V6 = "F";
  5130. S = "F";
  5131. V7 = "\x02";
  5132. S2 = "G";
  5133. Val = "\x01";
  5134. Mi2 = 1;
  5135. system("cls");
  5136. system("cls");
  5137. goto Board2;
  5138. }
  5139. if (V7 == "\x02" && V8 == "\x02" && V1 == "A" && V2 == "\x02")
  5140. {//HG
  5141. V2 = "B";
  5142. S = "B";
  5143. V1 = "\x02";
  5144. S2 = "A";
  5145. Val = "\x01";
  5146. Mi2 = 1;
  5147. system("cls");
  5148. system("cls");
  5149. goto Board2;
  5150. }
  5151. if (V1 == "\x02" && V7 == "\x02" && V8 == "H" && V9 == "\x02")
  5152. {//AG
  5153. V9 = "I";
  5154. S = "I";
  5155. V8 = "\x02";
  5156. S2 = "H";
  5157. Val = "\x01";
  5158. Mi2 = 1;
  5159. system("cls");
  5160. system("cls");
  5161. goto Board2;
  5162. }
  5163. //INNER BOARD MILLS
  5164. if (V10 == "\x02" && V9 == "\x02" && V16 == "P" && V15 == "\x02") //JIP 10-9-16
  5165. {//JI
  5166. V15 = "O";
  5167. S = "O";
  5168. V16 = "\x02";
  5169. S2 = "P";
  5170. Val = "\x01";
  5171. Mi2 = 1;
  5172. system("cls");
  5173. system("cls");
  5174. goto Board2;
  5175. }
  5176. if (V9 == "\x02" && V16 == "\x02" && V10 == "J" && V11 =="\x02")
  5177. {//IP
  5178. V11 = "K";
  5179. S = "K";
  5180. V10 = "\x02";
  5181. S2 = "J";
  5182. Val = "\x01";
  5183. Mi2 = 1;
  5184. system("cls");
  5185. system("cls");
  5186. goto Board2;
  5187. }
  5188. if (V10 == "\x02" && V16 == "\x02" && V9 == "I" && V8 == "\x02")
  5189. {//JP
  5190. V8 = "H";
  5191. S = "H";
  5192. V9 = "\x02";
  5193. S2 = "I";
  5194. Val = "\x01";
  5195. Mi2 = 1;
  5196. system("cls");
  5197. system("cls");
  5198. goto Board2;
  5199. }
  5200. if (V10 == "\x02" && V11 == "\x02" && V12 == "L" && V13 == "\x02") //JKL 10-11-12
  5201. {//JK
  5202. V13 = "M";
  5203. S = "M";
  5204. V12 = "\x02";
  5205. S2 = "L";
  5206. Val = "\x01";
  5207. Mi2 = 1;
  5208. system("cls");
  5209. system("cls");
  5210. goto Board2;
  5211. }
  5212. if (V11 == "\x02" && V12 == "\x02" && V10 == "J" && V9 == "\x02")
  5213. {//KL
  5214. V9 = "I";
  5215. S = "I";
  5216. V10 = "\x02";
  5217. S2 = "J";
  5218. Val = "\x01";
  5219. Mi2 = 1;
  5220. system("cls");
  5221. system("cls");
  5222. goto Board2;
  5223. }
  5224. if (V10 == "\x02" && V12 == "\x02" && V11 == "K" && V2 == "\x02")
  5225. {//JL
  5226. V2 = "B";
  5227. S = "B";
  5228. V11 = "\x02";
  5229. S2 = "K";
  5230. Val = "\x01";
  5231. Mi2 = 1;
  5232. system("cls");
  5233. system("cls");
  5234. goto Board2;
  5235. }
  5236. if (V12 == "\x02" && V13 == "\x02" && V14 == "N" && V15 == "\x02") //LMN 12-13-14
  5237. {//LM
  5238. V15 = "O";
  5239. S = "O";
  5240. V14 = "\x02";
  5241. S2 = "N";
  5242. Val = "\x01";
  5243. Mi2 = 1;
  5244. system("cls");
  5245. system("cls");
  5246. goto Board2;
  5247. }
  5248. if (V13 == "\x02" && V14 == "\x02" && V12 == "L" && V11 == "\x02")
  5249. {//MN
  5250. V11 = "K";
  5251. S = "K";
  5252. V12 = "\x02";
  5253. S2 = "L";
  5254. Val = "\x01";
  5255. Mi2 = 1;
  5256. system("cls");
  5257. system("cls");
  5258. goto Board2;
  5259. }
  5260. if (V12 == "\x02" && V14 == "\x02" && V13 == "M" && V4 == "\x02")
  5261. {//LN
  5262. V4 = "D";
  5263. S = "D";
  5264. V13 = "\x02";
  5265. S2 = "M";
  5266. Val = "\x01";
  5267. Mi2 = 1;
  5268. system("cls");
  5269. system("cls");
  5270. goto Board2;
  5271. }
  5272. if (V14 == "\x02" && V15 == "\x02" && V16 == "P" && V9 == "\x02") //NOP 14-15-16
  5273. {//NO
  5274. V9 = "I";
  5275. S = "I";
  5276. V16 = "\x02";
  5277. S2 = "P";
  5278. Val = "\x01";
  5279. Mi2 = 1;
  5280. system("cls");
  5281. system("cls");
  5282. goto Board2;
  5283. }
  5284. if (V15 == "\x02" && V16 == "\x02" && V14 == "N" && V13 == "\x02")
  5285. {//OP
  5286. V13 = "M";
  5287. S = "M";
  5288. V14 = "\x02";
  5289. S2 = "N";
  5290. Val = "\x01";
  5291. Mi2 = 1;
  5292. system("cls");
  5293. system("cls");
  5294. goto Board2;
  5295. }
  5296. if (V14 == "\x02" && V16 == "\x02" && V15 == "O" && V6 == "\x02")
  5297. {//NP
  5298. V6 = "F";
  5299. S = "F";
  5300. V15 = "\x02";
  5301. S2 = "O";
  5302. Val = "\x01";
  5303. Mi2 = 1;
  5304. system("cls");
  5305. system("cls");
  5306. goto Board2;
  5307. }
  5308.  
  5309. //if mill is already made take one out to set up make mill code
  5310. if (V1 == "\x02" && V2 == "\x02" && V3 == "\x02") //ABC 123
  5311. {
  5312. int M1; //if none of above
  5313. MIL1:
  5314. srand((unsigned)time(0));//randomizer
  5315. M1 = (rand()%3) +1; //1-3
  5316. if (M1 == 1) //A to H
  5317. {
  5318. if (V8 == "H")
  5319. {
  5320. V1 = "A";
  5321. S = "A";
  5322. V8 = "\x02";
  5323. S2 = "H";
  5324. Val = "\x01";
  5325. system("cls");
  5326. system("cls");
  5327. goto Board2;
  5328. }
  5329. else
  5330. {
  5331. goto MIL1;
  5332. }
  5333. }
  5334. if (M1 == 2) //B to K
  5335. {
  5336. if (V11 == "K")
  5337. {
  5338. V2 = "B";
  5339. S = "B";
  5340. V11 = "\x02";
  5341. S2 = "K";
  5342. Val = "\x01";
  5343. system("cls");
  5344. system("cls");
  5345. goto Board2;
  5346. }
  5347. else
  5348. {
  5349. goto MIL1;
  5350. }
  5351. }
  5352. if (M1 == 3) //C to D
  5353. {
  5354. if (V4 == "D")
  5355. {
  5356. V3 = "C";
  5357. S = "C";
  5358. V4 = "\x02";
  5359. S2 = "D";
  5360. Val = "\x01";
  5361. system("cls");
  5362. system("cls");
  5363. goto Board2;
  5364. }
  5365. else
  5366. {
  5367. goto MIL1;
  5368. }
  5369. }
  5370. }
  5371. if (V1 == "\x02" && V8 == "\x02" && V7 == "\x02") //AHG 187
  5372. {
  5373. int M2; //if none of above
  5374. MIL2:
  5375. srand((unsigned)time(0));//randomizer
  5376. M2 = (rand()%3) +1; //1-3
  5377. if (M2 == 1) //A to B
  5378. {
  5379. if (V2 == "B")
  5380. {
  5381. V1 = "A";
  5382. S = "A";
  5383. V2 = "\x02";
  5384. S2 = "B";
  5385. Val = "\x01";
  5386. system("cls");
  5387. system("cls");
  5388. goto Board2;
  5389. }
  5390. else
  5391. {
  5392. goto MIL2;
  5393. }
  5394. }
  5395. if (M2 == 2) //H to I
  5396. {
  5397. if (V9 == "I")
  5398. {
  5399. V8 = "H";
  5400. S = "H";
  5401. V9 = "\x02";
  5402. S2 = "I";
  5403. Val = "\x01";
  5404. system("cls");
  5405. system("cls");
  5406. goto Board2;
  5407. }
  5408. else
  5409. {
  5410. goto MIL2;
  5411. }
  5412. }
  5413. if (M2 == 3) //G to F
  5414. {
  5415. if (V6 == "F")
  5416. {
  5417. V7 = "G";
  5418. S = "G";
  5419. V6 = "\x02";
  5420. S2 = "F";
  5421. Val = "\x01";
  5422. system("cls");
  5423. system("cls");
  5424. goto Board2;
  5425. }
  5426. else
  5427. {
  5428. goto MIL2;
  5429. }
  5430. }
  5431. }
  5432. if (V3 == "\x02" && V4 == "\x02" && V5 == "\x02") //CDE 345
  5433. {
  5434. int M3; //if none of above
  5435. MIL3:
  5436. srand((unsigned)time(0));//randomizer
  5437. M3 = (rand()%3) +1; //1-3
  5438. if (M3 == 1) //C to B
  5439. {
  5440. if (V2 == "B")
  5441. {
  5442. V3 = "C";
  5443. S = "C";
  5444. V2 = "\x02";
  5445. S2 = "B";
  5446. Val = "\x01";
  5447. system("cls");
  5448. system("cls");
  5449. goto Board2;
  5450. }
  5451. else
  5452. {
  5453. goto MIL3;
  5454. }
  5455. }
  5456. if (M3 == 2) //D to M
  5457. {
  5458. if (V13 == "M")
  5459. {
  5460. V4 = "D";
  5461. S = "D";
  5462. V13 = "\x02";
  5463. S2 = "M";
  5464. Val = "\x01";
  5465. system("cls");
  5466. system("cls");
  5467. goto Board2;
  5468. }
  5469. else
  5470. {
  5471. goto MIL3;
  5472. }
  5473. }
  5474. if (M3 == 3) //E to F
  5475. {
  5476. if (V6 == "F")
  5477. {
  5478. V5 = "C";
  5479. S = "E";
  5480. V6 = "\x02";
  5481. S2 = "F";
  5482. Val = "\x01";
  5483. system("cls");
  5484. system("cls");
  5485. goto Board2;
  5486. }
  5487. else
  5488. {
  5489. goto MIL3;
  5490. }
  5491. }
  5492. }
  5493. //EFG 567
  5494. if (V5 == "\x02" && V6 == "\x02" && V7 == "\x02") //EFG 567
  5495. {
  5496. int M4; //if none of above
  5497. MIL4:
  5498. srand((unsigned)time(0));//randomizer
  5499. M4 = (rand()%3) +1; //1-3
  5500. if (M4 == 1) //E to D
  5501. {
  5502. if (V4 == "D")
  5503. {
  5504. V5 = "E";
  5505. S = "E";
  5506. V4 = "\x02";
  5507. S2 = "D";
  5508. Val = "\x01";
  5509. system("cls");
  5510. system("cls");
  5511. goto Board2;
  5512. }
  5513. else
  5514. {
  5515. goto MIL4;
  5516. }
  5517. }
  5518. if (M4 == 2) //F to O
  5519. {
  5520. if (V15 == "O")
  5521. {
  5522. V6 = "F";
  5523. S = "F";
  5524. V15 = "\x02";
  5525. S2 = "O";
  5526. Val = "\x01";
  5527. system("cls");
  5528. system("cls");
  5529. goto Board2;
  5530. }
  5531. else
  5532. {
  5533. goto MIL4;
  5534. }
  5535. }
  5536. if (M4 == 3) //G to H
  5537. {
  5538. if (V8 == "H")
  5539. {
  5540. V7 = "G";
  5541. S = "G";
  5542. V8 = "\x02";
  5543. S2 = "H";
  5544. Val = "\x01";
  5545. system("cls");
  5546. system("cls");
  5547. goto Board2;
  5548. }
  5549. else
  5550. {
  5551. goto MIL4;
  5552. }
  5553. }
  5554. }
  5555. if (V1 == "\x02" && V2 == "\x02" && V3 == "\x02") //JIP 10 9 16
  5556. {
  5557. int M5; //if none of above
  5558. MIL5:
  5559. srand((unsigned)time(0));//randomizer
  5560. M5 = (rand()%3) +1; //1-3
  5561. if (M5 == 1) //J to K 11
  5562. {
  5563. if (V11 == "K")
  5564. {
  5565. V10 = "J";
  5566. S = "J";
  5567. V11 = "\x02";
  5568. S2 = "K";
  5569. Val = "\x01";
  5570. system("cls");
  5571. system("cls");
  5572. goto Board2;
  5573. }
  5574. else
  5575. {
  5576. goto MIL5;
  5577. }
  5578. }
  5579. if (M5 == 2) //I to H
  5580. {
  5581. if (V8 == "H")
  5582. {
  5583. V9 = "I";
  5584. S = "I";
  5585. V8 = "\x02";
  5586. S2 = "H";
  5587. Val = "\x01";
  5588. system("cls");
  5589. system("cls");
  5590. goto Board2;
  5591. }
  5592. else
  5593. {
  5594. goto MIL5;
  5595. }
  5596. }
  5597. if (M5 == 3) //P to O
  5598. {
  5599. if (V15 == "O")
  5600. {
  5601. V16 = "P";
  5602. S = "P";
  5603. V15 = "\x02";
  5604. S2 = "O";
  5605. Val = "\x01";
  5606. system("cls");
  5607. system("cls");
  5608. goto Board2;
  5609. }
  5610. else
  5611. {
  5612. goto MIL5;
  5613. }
  5614. }
  5615. }
  5616. if (V10 == "\x02" && V11 == "\x02" && V12 == "\x02") //JKL 10 11 12
  5617. {
  5618. int M6; //if none of above
  5619. MIL6:
  5620. srand((unsigned)time(0));//randomizer
  5621. M6 = (rand()%3) +1; //1-3
  5622. if (M6 == 1) //J to I
  5623. {
  5624. if (V9 == "I")
  5625. {
  5626. V10 = "J";
  5627. S = "J";
  5628. V9 = "\x02";
  5629. S2 = "I";
  5630. Val = "\x01";
  5631. system("cls");
  5632. system("cls");
  5633. goto Board2;
  5634. }
  5635. else
  5636. {
  5637. goto MIL6;
  5638. }
  5639. }
  5640. if (M6 == 2) //K to B
  5641. {
  5642. if (V2 == "B")
  5643. {
  5644. V11 = "K";
  5645. S = "K";
  5646. V2 = "\x02";
  5647. S2 = "B";
  5648. Val = "\x01";
  5649. system("cls");
  5650. system("cls");
  5651. goto Board2;
  5652. }
  5653. else
  5654. {
  5655. goto MIL6;
  5656. }
  5657. }
  5658. if (M6 == 3) //L to M
  5659. {
  5660. if (V13 == "M")
  5661. {
  5662. V12 = "L";
  5663. S = "L";
  5664. V13 = "\x02";
  5665. S2 = "M";
  5666. Val = "\x01";
  5667. system("cls");
  5668. system("cls");
  5669. goto Board2;
  5670. }
  5671. else
  5672. {
  5673. goto MIL6;
  5674. }
  5675. }
  5676. }
  5677. if (V12 == "\x02" && V13 == "\x02" && V14 == "\x02") //LMN 12 13 14
  5678. {
  5679. int M7; //if none of above
  5680. MIL7:
  5681. srand((unsigned)time(0));//randomizer
  5682. M7 = (rand()%3) +1; //1-3
  5683. if (M7 == 1) //L to K
  5684. {
  5685. if (V11 == "K")
  5686. {
  5687. V12 = "L";
  5688. S = "L";
  5689. V11 = "\x02";
  5690. S2 = "K";
  5691. Val = "\x01";
  5692. system("cls");
  5693. system("cls");
  5694. goto Board2;
  5695. }
  5696. else
  5697. {
  5698. goto MIL7;
  5699. }
  5700. }
  5701. if (M7 == 2) //M to D
  5702. {
  5703. if (V4 == "D")
  5704. {
  5705. V13 = "M";
  5706. S = "M";
  5707. V4 = "\x02";
  5708. S2 = "D";
  5709. Val = "\x01";
  5710. system("cls");
  5711. system("cls");
  5712. goto Board2;
  5713. }
  5714. else
  5715. {
  5716. goto MIL7;
  5717. }
  5718. }
  5719. if (M7 == 3) //N to O
  5720. {
  5721. if (V15 == "O")
  5722. {
  5723. V14 = "N";
  5724. S = "N";
  5725. V15 = "\x02";
  5726. S2 = "O";
  5727. Val = "\x01";
  5728. system("cls");
  5729. system("cls");
  5730. goto Board2;
  5731. }
  5732. else
  5733. {
  5734. goto MIL7;
  5735. }
  5736. }
  5737. }
  5738. if (V14 == "\x02" && V15 == "\x02" && V16 == "\x02") //NOP 14 15 16
  5739. {
  5740. int M8; //if none of above
  5741. MIL8:
  5742. srand((unsigned)time(0));//randomizer
  5743. M8 = (rand()%3) +1; //1-3
  5744. if (M8 == 1) //N to M
  5745. {
  5746. if (V13 == "M")
  5747. {
  5748. V14 = "N";
  5749. S = "N";
  5750. V13 = "\x02";
  5751. S2 = "M";
  5752. Val = "\x01";
  5753. system("cls");
  5754. system("cls");
  5755. goto Board2;
  5756. }
  5757. else
  5758. {
  5759. goto MIL8;
  5760. }
  5761. }
  5762. if (M8 == 2) //O to F
  5763. {
  5764. if (V6 == "F")
  5765. {
  5766. V15 = "O";
  5767. S = "O";
  5768. V6 = "\x02";
  5769. S2 = "F";
  5770. Val = "\x01";
  5771. system("cls");
  5772. system("cls");
  5773. goto Board2;
  5774. }
  5775. else
  5776. {
  5777. goto MIL8;
  5778. }
  5779. }
  5780. if (M8 == 3) //P to I
  5781. {
  5782. if (V9 == "I")
  5783. {
  5784. V16 = "P";
  5785. S = "P";
  5786. V9 = "\x02";
  5787. S2 = "I";
  5788. Val = "\x01";
  5789. system("cls");
  5790. system("cls");
  5791. goto Board2;
  5792. }
  5793. else
  5794. {
  5795. goto MIL8;
  5796. }
  5797. }
  5798. }
  5799.  
  5800. //set up to make mill ABK LND MND -etc... (16 statements)
  5801. if (V1 == "\x02" && V2 == "\x02" && V11 == "\x02" && V3 =="C") //ABK
  5802. {
  5803. V2 = "B";
  5804. S = "B";
  5805. V3 = "\x02";
  5806. S2 = "C";
  5807. Val = "\x01";
  5808. system("cls");
  5809. system("cls");
  5810. goto Board2;
  5811. }
  5812. if (V3 == "\x02" && V2 == "\x02" && V11 == "\x02" && V1 =="A") //CBK
  5813. {
  5814. V2 = "B";
  5815. S = "B";
  5816. V1 = "\x02";
  5817. S2 = "A";
  5818. Val = "\x01";
  5819. system("cls");
  5820. system("cls");
  5821. goto Board2;
  5822. }
  5823. if (V3 == "\x02" && V4 == "\x02" && V13 == "\x02" && V5 =="E") //CDM
  5824. {
  5825. V4 = "D";
  5826. S = "D";
  5827. V5 = "\x02";
  5828. S2 = "E";
  5829. Val = "\x01";
  5830. system("cls");
  5831. system("cls");
  5832. goto Board2;
  5833. }
  5834. if (V5 == "\x02" && V4 == "\x02" && V13 == "\x02" && V3 =="C") //EDM
  5835. {
  5836. V4 = "D";
  5837. S = "D";
  5838. V3 = "\x02";
  5839. S2 = "C";
  5840. Val = "\x01";
  5841. system("cls");
  5842. system("cls");
  5843. goto Board2;
  5844. }
  5845. if (V5 == "\x02" && V6 == "\x02" && V15 == "\x02" && V7 =="G") //EFO
  5846. {
  5847. V6 = "F";
  5848. S = "F";
  5849. V7 = "\x02";
  5850. S2 = "G";
  5851. Val = "\x01";
  5852. system("cls");
  5853. system("cls");
  5854. goto Board2;
  5855. }
  5856. if (V7 == "\x02" && V6 == "\x02" && V15 == "\x02" && V5 =="E") //GFO
  5857. {
  5858. V6 = "F";
  5859. S = "F";
  5860. V5 = "\x02";
  5861. S2 = "E";
  5862. Val = "\x01";
  5863. system("cls");
  5864. system("cls");
  5865. goto Board2;
  5866. }
  5867. if (V1 == "\x02" && V8 == "\x02" && V9 == "\x02" && V7 =="G") //AHI
  5868. {
  5869. V8 = "H";
  5870. S = "H";
  5871. V7 = "\x02";
  5872. S2 = "G";
  5873. Val = "\x01";
  5874. system("cls");
  5875. system("cls");
  5876. goto Board2;
  5877. }
  5878. if (V7 == "\x02" && V8 == "\x02" && V9 == "\x02" && V1 =="A") //GHI
  5879. {
  5880. V8 = "H";
  5881. S = "H";
  5882. V1 = "\x02";
  5883. S2 = "A";
  5884. Val = "\x01";
  5885. system("cls");
  5886. system("cls");
  5887. goto Board2;
  5888. }
  5889. if (V10 == "\x02" && V9 == "\x02" && V8 == "\x02" && V16 =="P") //JIH
  5890. {
  5891. V9 = "I";
  5892. S = "I";
  5893. V16 = "\x02";
  5894. S2 = "P";
  5895. Val = "\x01";
  5896. system("cls");
  5897. system("cls");
  5898. goto Board2;
  5899. }
  5900. if (V16 == "\x02" && V9 == "\x02" && V8 == "\x02" && V10 =="J") //PIH
  5901. {
  5902. V9 = "I";
  5903. S = "I";
  5904. V10 = "\x02";
  5905. S2 = "J";
  5906. Val = "\x01";
  5907. system("cls");
  5908. system("cls");
  5909. goto Board2;
  5910. }
  5911. if (V10 == "\x02" && V11 == "\x02" && V2 == "\x02" && V12 =="L") //JKB
  5912. {
  5913. V11 = "K";
  5914. S = "K";
  5915. V12 = "\x02";
  5916. S2 = "L";
  5917. Val = "\x01";
  5918. system("cls");
  5919. system("cls");
  5920. goto Board2;
  5921. }
  5922. if (V12 == "\x02" && V11 == "\x02" && V2 == "\x02" && V10 =="J") //LKB
  5923. {
  5924. V11 = "K";
  5925. S = "K";
  5926. V10 = "\x02";
  5927. S2 = "J";
  5928. Val = "\x01";
  5929. system("cls");
  5930. system("cls");
  5931. goto Board2;
  5932. }
  5933. if (V12 == "\x02" && V13 == "\x02" && V4 == "\x02" && V14 =="N") //LMD
  5934. {
  5935. V13 = "M";
  5936. S = "M";
  5937. V14 = "\x02";
  5938. S2 = "N";
  5939. Val = "\x01";
  5940. system("cls");
  5941. system("cls");
  5942. goto Board2;
  5943. }
  5944. if (V14 == "\x02" && V13 == "\x02" && V4 == "\x02" && V12 =="L") //NMD
  5945. {
  5946. V13 = "M";
  5947. S = "M";
  5948. V12 = "\x02";
  5949. S2 = "L";
  5950. Val = "\x01";
  5951. system("cls");
  5952. system("cls");
  5953. goto Board2;
  5954. }
  5955. if (V14 == "\x02" && V15 == "\x02" && V6 == "\x02" && V16 =="P") //NOF
  5956. {
  5957. V15 = "O";
  5958. S = "O";
  5959. V16 = "\x02";
  5960. S2 = "P";
  5961. Val = "\x01";
  5962. system("cls");
  5963. system("cls");
  5964. goto Board2;
  5965. }
  5966. if (V16 == "\x02" && V15 == "\x02" && V6 == "\x02" && V14 =="N") //POF
  5967. {
  5968. V15 = "O";
  5969. S = "O";
  5970. V14 = "\x02";
  5971. S2 = "N";
  5972. Val = "\x01";
  5973. system("cls");
  5974. system("cls");
  5975. goto Board2;
  5976. }
  5977.  
  5978. //BLOCK MILL
  5979. if (V10 == "\x01" && V12 == "\x01" && V11 == "K" && V2 == "\x02" && (V9 == "\x01" || V13 == "\x01"))
  5980. {
  5981. V2 = "B";
  5982. S = "B";
  5983. V11 = "\x02";
  5984. S2 = "K";
  5985. Val = "\x01";
  5986. system("cls");
  5987. system("cls");
  5988. goto Board2;
  5989. }
  5990. if (V7 == "\x01" && V8 == "\x01" && V1 == "A" && V2 == "\x02" && (V9 == "\x01" || V6 == "\x01"))
  5991. {
  5992. V2 = "B";
  5993. S = "B";
  5994. V1 = "\x02";
  5995. S2 = "A";
  5996. Val = "\x01";
  5997. system("cls");
  5998. system("cls");
  5999. goto Board2;
  6000. }
  6001. if (V4 == "\x01" && V5 == "\x01" && V3 == "C" && V2 == "\x02" && (V6 == "\x01" || V13 == "\x01"))
  6002. {
  6003. V2 = "B";
  6004. S = "B";
  6005. V3 = "\x02";
  6006. S2 = "C";
  6007. Val = "\x01";
  6008. system("cls");
  6009. system("cls");
  6010. goto Board2;
  6011. }
  6012. if (V12 == "\x01" && V14 == "\x01" && V13 == "M" && V4 == "\x02" && (V11 == "\x01" || V15 == "\x01"))
  6013. {
  6014. V4 = "D";
  6015. S = "D";
  6016. V13 = "\x02";
  6017. S2 = "M";
  6018. Val = "\x01";
  6019. system("cls");
  6020. system("cls");
  6021. goto Board2;
  6022. }
  6023. if (V6 == "\x01" && V7 == "\x01" && V5 == "E" && V4 == "\x02" && (V8 == "\x01" || V15 == "\x01"))
  6024. {
  6025. V4 = "D";
  6026. S = "D";
  6027. V5 = "\x02";
  6028. S2 = "E";
  6029. Val = "\x01";
  6030. system("cls");
  6031. system("cls");
  6032. goto Board2;
  6033. }
  6034. if (V1 == "\x01" && V2 == "\x01" && V3 == "C" && V4 == "\x02" && (V8 == "\x01" || V11 == "\x01"))
  6035. {
  6036. V4 = "D";
  6037. S = "D";
  6038. V3 = "\x02";
  6039. S2 = "C";
  6040. Val = "\x01";
  6041. system("cls");
  6042. system("cls");
  6043. goto Board2;
  6044. }
  6045. if (V16 == "\x01" && V14 == "\x01" && V15 == "O" && V6 == "\x02" && (V9 == "\x01" || V13 == "\x01"))
  6046. {
  6047. V6 = "F";
  6048. S = "F";
  6049. V15 = "\x02";
  6050. S2 = "O";
  6051. Val = "\x01";
  6052. system("cls");
  6053. system("cls");
  6054. goto Board2;
  6055. }
  6056. if (V3 == "\x01" && V4 == "\x01" && V5 == "E" && V6 == "\x02" && (V3 == "\x01" || V13 == "\x01"))
  6057. {
  6058. V6 = "F";
  6059. S = "F";
  6060. V5 = "\x02";
  6061. S2 = "E";
  6062. Val = "\x01";
  6063. system("cls");
  6064. system("cls");
  6065. goto Board2;
  6066. }
  6067. if (V1 == "\x01" && V8 == "\x01" && V7 == "G" && V6 == "\x02" && (V2 == "\x01" || V9 == "\x01"))
  6068. {
  6069. V6 = "F";
  6070. S = "F";
  6071. V7 = "\x02";
  6072. S2 = "G";
  6073. Val = "\x01";
  6074. system("cls");
  6075. system("cls");
  6076. goto Board2;
  6077. }
  6078. if (V16 == "\x01" && V10 == "\x01" && V9 == "I" && V8 == "\x02" && (V11 == "\x01" || V15 == "\x01"))
  6079. {
  6080. V8 = "H";
  6081. S = "H";
  6082. V9 = "\x02";
  6083. S2 = "I";
  6084. Val = "\x01";
  6085. system("cls");
  6086. system("cls");
  6087. goto Board2;
  6088. }
  6089. if (V2 == "\x01" && V3 == "\x01" && V1 == "A" && V8 == "\x02" && (V11 == "\x01" || V4 == "\x01"))
  6090. {
  6091. V8 = "H";
  6092. S = "H";
  6093. V1 = "\x02";
  6094. S2 = "A";
  6095. Val = "\x01";
  6096. system("cls");
  6097. system("cls");
  6098. goto Board2;
  6099. }
  6100. if (V5 == "\x01" && V6 == "\x01" && V7 == "G" && V8 == "\x02" && (V4 == "\x01" || V15 == "\x01"))
  6101. {
  6102. V8 = "H";
  6103. S = "H";
  6104. V7 = "\x02";
  6105. S2 = "G";
  6106. Val = "\x01";
  6107. system("cls");
  6108. system("cls");
  6109. goto Board2;
  6110. }
  6111. if (V1 == "\x01" && V7 == "\x01" && V8 == "H" && V9 == "\x02" && (V2 == "\x01" || V6 == "\x01"))
  6112. {
  6113. V9 = "I";
  6114. S = "I";
  6115. V8 = "\x02";
  6116. S2 = "H";
  6117. Val = "\x01";
  6118. system("cls");
  6119. system("cls");
  6120. goto Board2;
  6121. }
  6122. if (V11 == "\x01" && V12 == "\x01" && V10 == "J" && V9 == "\x02" && (V2 == "\x01" || V13 == "\x01"))
  6123. {
  6124. V9 = "I";
  6125. S = "I";
  6126. V10 = "\x02";
  6127. S2 = "J";
  6128. Val = "\x01";
  6129. system("cls");
  6130. system("cls");
  6131. goto Board2;
  6132. }
  6133. if (V14 == "\x01" && V15 == "\x01" && V16 == "P" && V9 == "\x02" && (V6 == "\x01" || V13 == "\x01"))
  6134. {
  6135. V9 = "I";
  6136. S = "I";
  6137. V16 = "\x02";
  6138. S2 = "P";
  6139. Val = "\x01";
  6140. system("cls");
  6141. system("cls");
  6142. goto Board2;
  6143. }
  6144. if (V1 == "\x01" && V3 == "\x01" && V2 == "B" && V11 == "\x02" && (V8 == "\x01" || V4 == "\x01"))
  6145. {
  6146. V11 = "K";
  6147. S = "K";
  6148. V2 = "\x02";
  6149. S2 = "B";
  6150. Val = "\x01";
  6151. system("cls");
  6152. system("cls");
  6153. goto Board2;
  6154. }
  6155. if (V16 == "\x01" && V9 == "\x01" && V10 == "J" && V11 == "\x02" && (V8 == "\x01" || V15 == "\x01"))
  6156. {
  6157. V11 = "K";
  6158. S = "K";
  6159. V10 = "\x02";
  6160. S2 = "J";
  6161. Val = "\x01";
  6162. system("cls");
  6163. system("cls");
  6164. goto Board2;
  6165. }
  6166. if (V14 == "\x01" && V13 == "\x01" && V12 == "L" && V11 == "\x02" && (V4 == "\x01" || V15 == "\x01"))
  6167. {
  6168. V11 = "K";
  6169. S = "K";
  6170. V12 = "\x02";
  6171. S2 = "L";
  6172. Val = "\x01";
  6173. system("cls");
  6174. system("cls");
  6175. goto Board2;
  6176. }
  6177. if (V5 == "\x01" && V3 == "\x01" && V4 == "D" && V13 == "\x02" && (V2 == "\x01" || V6 == "\x01"))
  6178. {
  6179. V13 = "M";
  6180. S = "M";
  6181. V4 = "\x02";
  6182. S2 = "D";
  6183. Val = "\x01";
  6184. system("cls");
  6185. system("cls");
  6186. goto Board2;
  6187. }
  6188. if (V10 == "\x01" && V11 == "\x01" && V12 == "L" && V13 == "\x02" && (V2 == "\x01" || V9 == "\x01"))
  6189. {
  6190. V13 = "M";
  6191. S = "M";
  6192. V12 = "\x02";
  6193. S2 = "L";
  6194. Val = "\x01";
  6195. system("cls");
  6196. system("cls");
  6197. goto Board2;
  6198. }
  6199. if (V16 == "\x01" && V15 == "\x01" && V14 == "N" && V13 == "\x02" && (V9 == "\x01" || V6 == "\x01"))
  6200. {
  6201. V13 = "M";
  6202. S = "M";
  6203. V14 = "\x02";
  6204. S2 = "N";
  6205. Val = "\x01";
  6206. system("cls");
  6207. system("cls");
  6208. goto Board2;
  6209. }
  6210. if (V9 == "\x01" && V10 == "\x01" && V16 == "P" && V15 =="\x02" && (V8 == "\x01" || V11 == "\x01"))
  6211. {
  6212. V15 = "O";
  6213. S = "O";
  6214. V16 = "\x02";
  6215. S2 = "P";
  6216. Val = "\x01";
  6217. system("cls");
  6218. system("cls");
  6219. goto Board2;
  6220. }
  6221. if (V7 == "\x01" && V5 == "\x01" && V6 == "F" && V15 =="\x02" && (V13 == "\x01" || V8 == "\x01"))
  6222. {
  6223. V15 = "O";
  6224. S = "O";
  6225. V6 = "\x02";
  6226. S2 = "F";
  6227. Val = "\x01";
  6228. system("cls");
  6229. system("cls");
  6230. goto Board2;
  6231. }
  6232. if (V12 == "\x01" && V13 == "\x01" && V14 == "N" && V15 =="\x02" && (V4 == "\x01" || V11 == "\x01"))
  6233. {
  6234. V15 = "O";
  6235. S = "O";
  6236. V14 = "\x02";
  6237. S2 = "N";
  6238. Val = "\x01";
  6239. system("cls");
  6240. system("cls");
  6241. goto Board2;
  6242. }
  6243.  
  6244. //Randomizer (trap player pieces, set up mills (head to 2 pair), ELSE randomize)
  6245. int Random;
  6246. RMove:
  6247. srand((unsigned)time(0));//randomizer
  6248. Random = (rand()%16) +1; //1-16
  6249. if (Random == 1)//A
  6250. {
  6251. if (V1 == "\x02" && (V2 == "B" || V8 == "H"))
  6252. {
  6253. if (V2 == "\x01" && V3 == "\x01" && (V4 == "\x01" || V11 == "\x01"))
  6254. {
  6255. goto RMove;
  6256. }
  6257. if (V7 == "\x01" && V8 == "\x01" && (V9 == "\x01" || V6 == "\x01"))
  6258. {
  6259. goto RMove;
  6260. }
  6261. if (V3 == "\x02" && V8 == "\x02" && V2 == "B")
  6262. {
  6263. V1 = "A";
  6264. S = "A";
  6265. V2 = "\x02";
  6266. S2 = "B";
  6267. Val = "\x01";
  6268. system("cls");
  6269. system("cls");
  6270. goto Board2;
  6271. }
  6272. if (V7 == "\x02" && V8 == "H" && V2 == "\x02")
  6273. {
  6274. V1 = "A";
  6275. S = "A";
  6276. V8 = "\x02";
  6277. S2 = "H";
  6278. Val = "\x01";
  6279. system("cls");
  6280. system("cls");
  6281. goto Board2;
  6282. }
  6283. int Ran1; //if none of above
  6284. srand((unsigned)time(0));//randomizer
  6285. Ran1 = (rand()%2) +1; //1-2
  6286. if (Ran1 == 1) //B
  6287. {
  6288. if (V2 == "B")
  6289. {
  6290. V1 = "A";
  6291. S = "A";
  6292. V2 = "\x02";
  6293. S2 = "B";
  6294. Val = "\x01";
  6295. system("cls");
  6296. system("cls");
  6297. goto Board2;
  6298. }
  6299. else
  6300. {
  6301. Ran1 = 2;
  6302. }
  6303. }
  6304. if (Ran1 == 2) //H
  6305. {
  6306. if (V8 == "H")
  6307. {
  6308. V1 = "A";
  6309. S = "A";
  6310. V8 = "\x02";
  6311. S2 = "H";
  6312. Val = "\x01";
  6313. system("cls");
  6314. system("cls");
  6315. goto Board2;
  6316. }
  6317. else
  6318. {
  6319. Ran1 = 1;
  6320. }
  6321. }
  6322. }
  6323. if (V1 != "\x02" || (V2 != "B" && V2 != "H"))
  6324. {
  6325. goto RMove;
  6326. }
  6327. }
  6328. if (Random == 2)//B
  6329. {
  6330. if (V2 == "\x02" && (V3 == "C" || V11 == "K" || V1 == "A"))
  6331. {
  6332. if (V1 == "\x01" && V3 == "\x01" && (V9 == "\x01" || V4 == "\x01"))
  6333. {
  6334. goto RMove;
  6335. }
  6336. if (V10 == "\x02" && V12 == "L" && V13 == "\x02" && V11 == "K")
  6337. {
  6338. V2 = "B";
  6339. S = "B";
  6340. V11 = "\x02";
  6341. S2 = "K";
  6342. Val = "\x01";
  6343. system("cls");
  6344. system("cls");
  6345. goto Board2;
  6346. }
  6347. if (V12 == "\x02" && V10 == "J" && V9 == "\x02" && V11 == "K")
  6348. {
  6349. V2 = "B";
  6350. S = "B";
  6351. V11 = "\x02";
  6352. S2 = "K";
  6353. Val = "\x01";
  6354. system("cls");
  6355. system("cls");
  6356. goto Board2;
  6357. }
  6358. int RB; //if none of above
  6359. RB1:
  6360. srand((unsigned)time(0));//randomizer
  6361. RB = (rand()%3) +1; //1-3
  6362. if (RB == 1) //C
  6363. {
  6364. if (V3 == "C")
  6365. {
  6366. V2 = "B";
  6367. S = "B";
  6368. V3 = "\x02";
  6369. S2 = "C";
  6370. Val = "\x01";
  6371. system("cls");
  6372. system("cls");
  6373. goto Board2;
  6374. }
  6375. else
  6376. {
  6377. goto RB1;
  6378. }
  6379. }
  6380. if (RB == 2) //A
  6381. {
  6382. if (V1 == "A")
  6383. {
  6384. V2 = "B";
  6385. S = "B";
  6386. V1 = "\x02";
  6387. S2 = "A";
  6388. Val = "\x01";
  6389. system("cls");
  6390. system("cls");
  6391. goto Board2;
  6392. }
  6393. else
  6394. {
  6395. goto RB1;
  6396. }
  6397. }
  6398. if (RB == 3) //K
  6399. {
  6400. if (V11 == "K")
  6401. {
  6402. V2 = "B";
  6403. S = "B";
  6404. V11 = "\x02";
  6405. S2 = "K";
  6406. Val = "\x01";
  6407. system("cls");
  6408. system("cls");
  6409. goto Board2;
  6410. }
  6411. else
  6412. {
  6413. goto RB1;
  6414. }
  6415. }
  6416. }
  6417. if (V2 != "\x02" || (V3 != "C" && V11 != "K" && V1 != "A"))
  6418. {
  6419. goto RMove;
  6420. }
  6421. }
  6422. if (Random == 3) //C
  6423. {
  6424. if (V3 == "\x02" && (V2 == "B" || V4 == "D"))
  6425. {
  6426. if (V2 == "\x01" && V1 == "\x01" && (V9 == "\x01" || V11 == "\x01"))
  6427. {
  6428. goto RMove;
  6429. }
  6430. if (V4 == "\x01" && V5 == "\x01" && (V6 == "\x01" || V13 == "\x01"))
  6431. {
  6432. goto RMove;
  6433. }
  6434. if (V1 == "\x02" && V4 == "\x02" && V2 == "B")
  6435. {
  6436. V3 = "C";
  6437. S = "C";
  6438. V2 = "\x02";
  6439. S2 = "B";
  6440. Val = "\x01";
  6441. system("cls");
  6442. system("cls");
  6443. goto Board2;
  6444. }
  6445. if (V5 == "\x02" && V4 == "D" && V2 == "\x02")
  6446. {
  6447. V3 = "C";
  6448. S = "C";
  6449. V4 = "\x02";
  6450. S2 = "D";
  6451. Val = "\x01";
  6452. system("cls");
  6453. system("cls");
  6454. goto Board2;
  6455. }
  6456. int Ra3; //if none of above
  6457. srand((unsigned)time(0));//randomizer
  6458. Ra3 = (rand()%2) +1; //1-2
  6459. if (Ra3 == 1) //B
  6460. {
  6461. if (V2 == "B")
  6462. {
  6463. V3 = "C";
  6464. S = "C";
  6465. V2 = "\x02";
  6466. S2 = "B";
  6467. Val = "\x01";
  6468. system("cls");
  6469. system("cls");
  6470. goto Board2;
  6471. }
  6472. else
  6473. {
  6474. Ra3 = 2;
  6475. }
  6476. }
  6477. if (Ra3 == 2) //D
  6478. {
  6479. if (V4 == "D")
  6480. {
  6481. V3 = "C";
  6482. S = "C";
  6483. V4 = "\x02";
  6484. S2 = "D";
  6485. Val = "\x01";
  6486. system("cls");
  6487. system("cls");
  6488. goto Board2;
  6489. }
  6490. else
  6491. {
  6492. Ra3 = 1;
  6493. }
  6494. }
  6495. }
  6496. if (V3 != "\x02" || (V2 != "B" && V4 != "D"))
  6497. {
  6498. goto RMove;
  6499. }
  6500. }
  6501. if (Random == 4) //D
  6502. {
  6503. if (V4 == "\x02" && (V3 == "C" || V5 == "E" || V13 == "M"))
  6504. {
  6505. if (V3 == "\x01" && V5 == "\x01" && (V2 == "\x01" || V6 == "\x01"))
  6506. {
  6507. goto RMove;
  6508. }
  6509. if (V14 == "\x02" && V12 == "L" && V11 == "\x02" && V13 == "M")
  6510. {
  6511. V4 = "D";
  6512. S = "D";
  6513. V13 = "\x02";
  6514. S2 = "M";
  6515. Val = "\x01";
  6516. system("cls");
  6517. system("cls");
  6518. goto Board2;
  6519. }
  6520. if (V14 == "N" && V12 == "\X02" && V15 == "\x02" && V13 == "M")
  6521. {
  6522. V4 = "D";
  6523. S = "D";
  6524. V13 = "\x02";
  6525. S2 = "M";
  6526. Val = "\x01";
  6527. system("cls");
  6528. system("cls");
  6529. goto Board2;
  6530. }
  6531. int Ra4; //if none of above
  6532. RD:
  6533. srand((unsigned)time(0));//randomizer
  6534. Ra4 = (rand()%3) +1; //1-3
  6535. if (Ra4 == 1) //C
  6536. {
  6537. if (V3 == "C")
  6538. {
  6539. V4 = "D";
  6540. S = "D";
  6541. V3 = "\x02";
  6542. S2 = "C";
  6543. Val = "\x01";
  6544. system("cls");
  6545. system("cls");
  6546. goto Board2;
  6547. }
  6548. else
  6549. {
  6550. goto RD;
  6551. }
  6552. }
  6553. if (Ra4 == 2) //E
  6554. {
  6555. if (V5 == "E")
  6556. {
  6557. V4 = "D";
  6558. S = "D";
  6559. V5 = "\x02";
  6560. S2 = "E";
  6561. Val = "\x01";
  6562. system("cls");
  6563. system("cls");
  6564. goto Board2;
  6565. }
  6566. else
  6567. {
  6568. goto RD;
  6569. }
  6570. }
  6571. if (Ra4 == 3) //M
  6572. {
  6573. if (V13 == "M")
  6574. {
  6575. V4 = "D";
  6576. S = "D";
  6577. V13 = "\x02";
  6578. S2 = "M";
  6579. Val = "\x01";
  6580. system("cls");
  6581. system("cls");
  6582. goto Board2;
  6583. }
  6584. else
  6585. {
  6586. goto RD;
  6587. }
  6588. }
  6589. }
  6590. if (V4 != "\x02" || (V3 != "C" && V13 != "M" && V5 != "E"))
  6591. {
  6592. goto RMove;
  6593. }
  6594. }
  6595. if (Random == 5) //E
  6596. {
  6597. if (V5 == "\x02" && (V4 == "D" || V6 == "F"))
  6598. {
  6599. if (V6 == "\x01" && V7 == "\x01" && (V8 == "\x01" || V15 == "\x01"))
  6600. {
  6601. goto RMove;
  6602. }
  6603. if (V4 == "\x01" && V3 == "\x01" && (V2 == "\x01" || V13 == "\x01"))
  6604. {
  6605. goto RMove;
  6606. }
  6607. if (V3 == "\x02" && V6 == "\x02" && V4 == "D")
  6608. {
  6609. V5 = "E";
  6610. S = "E";
  6611. V4 = "\x02";
  6612. S2 = "D";
  6613. Val = "\x01";
  6614. system("cls");
  6615. system("cls");
  6616. goto Board2;
  6617. }
  6618. if (V7 == "\x02" && V6 == "F" && V4 == "\x02")
  6619. {
  6620. V5 = "E";
  6621. S = "E";
  6622. V6 = "\x02";
  6623. S2 = "F";
  6624. Val = "\x01";
  6625. system("cls");
  6626. system("cls");
  6627. goto Board2;
  6628. }
  6629. int RE; //if none of above
  6630. srand((unsigned)time(0));//randomizer
  6631. RE = (rand()%2) +1; //1-2
  6632. if (RE == 1) //D
  6633. {
  6634. if (V4 == "D")
  6635. {
  6636. V5 = "E";
  6637. S = "E";
  6638. V4 = "\x02";
  6639. S2 = "D";
  6640. Val = "\x01";
  6641. system("cls");
  6642. system("cls");
  6643. goto Board2;
  6644. }
  6645. else
  6646. {
  6647. RE = 2;
  6648. }
  6649. }
  6650. if (RE == 2) //F
  6651. {
  6652. if (V6 == "F")
  6653. {
  6654. V5 = "E";
  6655. S = "E";
  6656. V6 = "\x02";
  6657. S2 = "F";
  6658. Val = "\x01";
  6659. system("cls");
  6660. system("cls");
  6661. goto Board2;
  6662. }
  6663. else
  6664. {
  6665. RE = 1;
  6666. }
  6667. }
  6668. }
  6669. if (V5 != "\x02" || (V4 != "D" && V6 != "F"))
  6670. {
  6671. goto RMove;
  6672. }
  6673. }
  6674. if (Random == 6)//F
  6675. {
  6676. if (V6 == "\x02" && (V5 == "E" || V7 == "G" || V15 == "O"))
  6677. {
  6678. if (V5 == "\x01" && V7 == "\x01" && (V4 == "\x01" || V8 == "\x01"))
  6679. {
  6680. goto RMove;
  6681. }
  6682. if (V9 == "\x02" && V16 == "P" && V14 == "\x02" && V15 == "O")
  6683. {
  6684. V6 = "F";
  6685. S = "F";
  6686. V15 = "\x02";
  6687. S2 = "O";
  6688. Val = "\x01";
  6689. system("cls");
  6690. system("cls");
  6691. goto Board2;
  6692. }
  6693. if (V14 == "N" && V13 == "\X02" && V16 == "\x02" && V15 == "O")
  6694. {
  6695. V6 = "F";
  6696. S = "F";
  6697. V15 = "\x02";
  6698. S2 = "O";
  6699. Val = "\x01";
  6700. system("cls");
  6701. system("cls");
  6702. goto Board2;
  6703. }
  6704. int Ra5; //if none of above
  6705. RF:
  6706. srand((unsigned)time(0));//randomizer
  6707. Ra5 = (rand()%3) +1; //1-3
  6708. if (Ra5 == 1) //G
  6709. {
  6710. if (V7 == "G")
  6711. {
  6712. V6 = "F";
  6713. S = "F";
  6714. V7 = "\x02";
  6715. S2 = "G";
  6716. Val = "\x01";
  6717. system("cls");
  6718. system("cls");
  6719. goto Board2;
  6720. }
  6721. else
  6722. {
  6723. goto RF;
  6724. }
  6725. }
  6726. if (Ra5 == 2) //E
  6727. {
  6728. if (V5 == "E")
  6729. {
  6730. V6 = "F";
  6731. S = "F";
  6732. V5 = "\x02";
  6733. S2 = "E";
  6734. Val = "\x01";
  6735. system("cls");
  6736. system("cls");
  6737. goto Board2;
  6738. }
  6739. else
  6740. {
  6741. goto RF;
  6742. }
  6743. }
  6744. if (Ra5 == 3) //O
  6745. {
  6746. if (V15 == "O")
  6747. {
  6748. V6 = "F";
  6749. S = "F";
  6750. V15 = "\x02";
  6751. S2 = "O";
  6752. Val = "\x01";
  6753. system("cls");
  6754. system("cls");
  6755. goto Board2;
  6756. }
  6757. else
  6758. {
  6759. goto RF;
  6760. }
  6761. }
  6762. }
  6763. if (V6 != "\x02" || (V5 != "E" && V7 != "G" && V15 != "O"))
  6764. {
  6765. goto RMove;
  6766. }
  6767. }
  6768. if (Random == 7) //G
  6769. {
  6770. if (V7 == "\x02" && (V6 == "F" || V8 == "H"))
  6771. {
  6772. if (V1 == "\x01" && V8 == "\x01" && (V2 == "\x01" || V9 == "\x01"))
  6773. {
  6774. goto RMove;
  6775. }
  6776. if (V6 == "\x01" && V5 == "\x01" && (V4 == "\x01" || V15 == "\x01"))
  6777. {
  6778. goto RMove;
  6779. }
  6780. if (V1 == "\x02" && V6 == "\x02" && V8 == "H")
  6781. {
  6782. V7 = "G";
  6783. S = "G";
  6784. V8 = "\x02";
  6785. S2 = "H";
  6786. Val = "\x01";
  6787. system("cls");
  6788. system("cls");
  6789. goto Board2;
  6790. }
  6791. if (V5 == "\x02" && V6 == "F" && V8 == "\x02")
  6792. {
  6793. V7 = "G";
  6794. S = "G";
  6795. V6 = "\x02";
  6796. S2 = "F";
  6797. Val = "\x01";
  6798. system("cls");
  6799. system("cls");
  6800. goto Board2;
  6801. }
  6802. int RG; //if none of above
  6803. srand((unsigned)time(0));//randomizer
  6804. RG = (rand()%2) +1; //1-2
  6805. if (RG == 1) //F
  6806. {
  6807. if (V6 == "F")
  6808. {
  6809. V7 = "G";
  6810. S = "G";
  6811. V6 = "\x02";
  6812. S2 = "F";
  6813. Val = "\x01";
  6814. system("cls");
  6815. system("cls");
  6816. goto Board2;
  6817. }
  6818. else
  6819. {
  6820. RG = 2;
  6821. }
  6822. }
  6823. if (RG == 2) //H
  6824. {
  6825. if (V8 == "H")
  6826. {
  6827. V7 = "G";
  6828. S = "G";
  6829. V8 = "\x02";
  6830. S2 = "H";
  6831. Val = "\x01";
  6832. system("cls");
  6833. system("cls");
  6834. goto Board2;
  6835. }
  6836. else
  6837. {
  6838. RG = 1;
  6839. }
  6840. }
  6841. }
  6842. if (V7 != "\x02" || (V6 != "F" && V8 != "H"))
  6843. {
  6844. goto RMove;
  6845. }
  6846. }
  6847. if (Random == 8) //H
  6848. {
  6849. if (V8 == "\x02" && (V1 == "A" || V7 == "G" || V9 == "I"))
  6850. {
  6851. if (V1 == "\x01" && V7 == "\x01" && (V2 == "\x01" || V6 == "\x01"))
  6852. {
  6853. goto RMove;
  6854. }
  6855. if (V16 == "\x02" && V10 == "J" && V11 == "\x02" && V9 == "I")
  6856. {
  6857. V8 = "H";
  6858. S = "H";
  6859. V9 = "\x02";
  6860. S2 = "I";
  6861. Val = "\x01";
  6862. system("cls");
  6863. system("cls");
  6864. goto Board2;
  6865. }
  6866. if (V16 == "P" && V15 == "\X02" && V10 == "\x02" && V9 == "I")
  6867. {
  6868. V8 = "H";
  6869. S = "H";
  6870. V9 = "\x02";
  6871. S2 = "I";
  6872. Val = "\x01";
  6873. system("cls");
  6874. system("cls");
  6875. goto Board2;
  6876. }
  6877. int Ra6; //if none of above
  6878. RH:
  6879. srand((unsigned)time(0));//randomizer
  6880. Ra6 = (rand()%3) +1; //1-3
  6881. if (Ra6 == 1) //G
  6882. {
  6883. if (V7 == "G")
  6884. {
  6885. V8 = "H";
  6886. S = "H";
  6887. V7 = "\x02";
  6888. S2 = "G";
  6889. Val = "\x01";
  6890. system("cls");
  6891. system("cls");
  6892. goto Board2;
  6893. }
  6894. else
  6895. {
  6896. goto RH;
  6897. }
  6898. }
  6899. if (Ra6 == 2) //A
  6900. {
  6901. if (V1 == "A")
  6902. {
  6903. V8 = "H";
  6904. S = "H";
  6905. V1 = "\x02";
  6906. S2 = "A";
  6907. Val = "\x01";
  6908. system("cls");
  6909. system("cls");
  6910. goto Board2;
  6911. }
  6912. else
  6913. {
  6914. goto RH;
  6915. }
  6916. }
  6917. if (Ra6 == 3) //I
  6918. {
  6919. if (V9 == "I")
  6920. {
  6921. V8 = "H";
  6922. S = "H";
  6923. V9 = "\x02";
  6924. S2 = "I";
  6925. Val = "\x01";
  6926. system("cls");
  6927. system("cls");
  6928. goto Board2;
  6929. }
  6930. else
  6931. {
  6932. goto RH;
  6933. }
  6934. }
  6935. }
  6936. if (V8 != "\x02" || (V1 != "A" && V7 != "G" && V9 != "I"))
  6937. {
  6938. goto RMove;
  6939. }
  6940. }
  6941. if (Random == 9) //I
  6942. {
  6943. if (V9 == "\x02" && (V10 == "J" || V8 == "H" || V16 == "P"))
  6944. {
  6945. if (V10 == "\x01" && V16 == "\x01" && (V11 == "\x01" || V15 == "\x01"))
  6946. {
  6947. goto RMove;
  6948. }
  6949. if (V2 == "\x02" && V1 == "A" && V7 == "\x02" && V8 == "H")
  6950. {
  6951. V9 = "I";
  6952. S = "I";
  6953. V8 = "\x02";
  6954. S2 = "H";
  6955. Val = "\x01";
  6956. system("cls");
  6957. system("cls");
  6958. goto Board2;
  6959. }
  6960. if (V7 == "G" && V1 == "\X02" && V6 == "\x02" && V8 == "H")
  6961. {
  6962. V9 = "I";
  6963. S = "I";
  6964. V8 = "\x02";
  6965. S2 = "H";
  6966. Val = "\x01";
  6967. system("cls");
  6968. system("cls");
  6969. goto Board2;
  6970. }
  6971. int Ra7; //if none of above
  6972. RI:
  6973. srand((unsigned)time(0));//randomizer
  6974. Ra7 = (rand()%3) +1; //1-3
  6975. if (Ra7 == 1) //J
  6976. {
  6977. if (V10 == "J")
  6978. {
  6979. V9 = "I";
  6980. S = "I";
  6981. V10 = "\x02";
  6982. S2 = "J";
  6983. Val = "\x01";
  6984. system("cls");
  6985. system("cls");
  6986. goto Board2;
  6987. }
  6988. else
  6989. {
  6990. goto RI;
  6991. }
  6992. }
  6993. if (Ra7 == 2) //H
  6994. {
  6995. if (V8 == "H")
  6996. {
  6997. V9 = "I";
  6998. S = "I";
  6999. V8 = "\x02";
  7000. S2 = "H";
  7001. Val = "\x01";
  7002. system("cls");
  7003. system("cls");
  7004. goto Board2;
  7005. }
  7006. else
  7007. {
  7008. goto RI;
  7009. }
  7010. }
  7011. if (Ra7 == 3) //P
  7012. {
  7013. if (V16 == "P")
  7014. {
  7015. V9 = "I";
  7016. S = "I";
  7017. V16 = "\x02";
  7018. S2 = "P";
  7019. Val = "\x01";
  7020. system("cls");
  7021. system("cls");
  7022. goto Board2;
  7023. }
  7024. else
  7025. {
  7026. goto RI;
  7027. }
  7028. }
  7029. }
  7030. if (V9 != "\x02" || (V10 != "J" && V8 != "H" && V16 != "P"))
  7031. {
  7032. goto RMove;
  7033. }
  7034. }
  7035. if (Random == 10) //J
  7036. {
  7037. if (V10 == "\x02" && (V9 == "I" || V11 == "K"))
  7038. {
  7039. if (V11 == "\x01" && V12 == "\x01" && (V2 == "\x01" || V13 == "\x01"))
  7040. {
  7041. goto RMove;
  7042. }
  7043. if (V16 == "\x01" && V9 == "\x01" && (V8 == "\x01" || V15 == "\x01"))
  7044. {
  7045. goto RMove;
  7046. }
  7047. if (V9 == "\x02" && V12 == "\x02" && V11 == "K")
  7048. {
  7049. V10 = "J";
  7050. S = "J";
  7051. V11 = "\x02";
  7052. S2 = "K";
  7053. Val = "\x01";
  7054. system("cls");
  7055. system("cls");
  7056. goto Board2;
  7057. }
  7058. if (V16 == "\x02" && V9 == "I" && V11 == "\x02")
  7059. {
  7060. V10 = "J";
  7061. S = "J";
  7062. V9 = "\x02";
  7063. S2 = "I";
  7064. Val = "\x01";
  7065. system("cls");
  7066. system("cls");
  7067. goto Board2;
  7068. }
  7069. int RJ; //if none of above
  7070. srand((unsigned)time(0));//randomizer
  7071. RJ = (rand()%2) +1; //1-2
  7072. if (RJ == 1) //I
  7073. {
  7074. if (V9 == "I")
  7075. {
  7076. V10 = "J";
  7077. S = "J";
  7078. V9 = "\x02";
  7079. S2 = "I";
  7080. Val = "\x01";
  7081. system("cls");
  7082. system("cls");
  7083. goto Board2;
  7084. }
  7085. else
  7086. {
  7087. RJ = 2;
  7088. }
  7089. }
  7090. if (RJ == 2) //K
  7091. {
  7092. if (V11 == "K")
  7093. {
  7094. V10 = "J";
  7095. S = "J";
  7096. V11 = "\x02";
  7097. S2 = "K";
  7098. Val = "\x01";
  7099. system("cls");
  7100. system("cls");
  7101. goto Board2;
  7102. }
  7103. else
  7104. {
  7105. RJ = 1;
  7106. }
  7107. }
  7108. }
  7109. if (V10 != "\x02" || (V9 != "I" && V11 != "K"))
  7110. {
  7111. goto RMove;
  7112. }
  7113. }
  7114. if (Random == 11) //K
  7115. {
  7116. if (V11 == "\x02" && (V10 == "J" || V2 == "B" || V12 == "L"))
  7117. {
  7118. if (V10 == "\x01" && V12 == "\x01" && (V9 == "\x01" || V13 == "\x01"))
  7119. {
  7120. goto RMove;
  7121. }
  7122. if (V8 == "\x02" && V1 == "A" && V3 == "\x02" && V2 == "B")
  7123. {
  7124. V11 = "K";
  7125. S = "K";
  7126. V2 = "\x02";
  7127. S2 = "B";
  7128. Val = "\x01";
  7129. system("cls");
  7130. system("cls");
  7131. goto Board2;
  7132. }
  7133. if (V3 == "C" && V1 == "\X02" && V4 == "\x02" && V2 == "B")
  7134. {
  7135. V11 = "K";
  7136. S = "K";
  7137. V2 = "\x02";
  7138. S2 = "B";
  7139. Val = "\x01";
  7140. system("cls");
  7141. system("cls");
  7142. goto Board2;
  7143. }
  7144. int Ra8; //if none of above
  7145. RK:
  7146. srand((unsigned)time(0));//randomizer
  7147. Ra8 = (rand()%3) +1; //1-3
  7148. if (Ra8 == 1) //J
  7149. {
  7150. if (V10 == "J")
  7151. {
  7152. V11 = "K";
  7153. S = "K";
  7154. V10 = "\x02";
  7155. S2 = "J";
  7156. Val = "\x01";
  7157. system("cls");
  7158. system("cls");
  7159. goto Board2;
  7160. }
  7161. else
  7162. {
  7163. goto RK;
  7164. }
  7165. }
  7166. if (Ra8 == 2) //L
  7167. {
  7168. if (V12 == "L")
  7169. {
  7170. V11 = "K";
  7171. S = "K";
  7172. V12 = "\x02";
  7173. S2 = "L";
  7174. Val = "\x01";
  7175. system("cls");
  7176. system("cls");
  7177. goto Board2;
  7178. }
  7179. else
  7180. {
  7181. goto RK;
  7182. }
  7183. }
  7184. if (Ra8 == 3) //B
  7185. {
  7186. if (V2 == "B")
  7187. {
  7188. V11 = "K";
  7189. S = "K";
  7190. V2 = "\x02";
  7191. S2 = "B";
  7192. Val = "\x01";
  7193. system("cls");
  7194. system("cls");
  7195. goto Board2;
  7196. }
  7197. else
  7198. {
  7199. goto RK;
  7200. }
  7201. }
  7202. }
  7203. if (V11 != "\x02" || (V10 != "J" && V12 != "L" && V2 != "B"))
  7204. {
  7205. goto RMove;
  7206. }
  7207. }
  7208. if (Random == 12) //L
  7209. {
  7210. if (V12 == "\x02" && (V11 == "K" || V13 == "M"))
  7211. {
  7212. if (V13 == "\x01" && V14 == "\x01" && (V4 == "\x01" || V15 == "\x01"))
  7213. {
  7214. goto RMove;
  7215. }
  7216. if (V10 == "\x01" && V11 == "\x01" && (V9 == "\x01" || V13 == "\x01"))
  7217. {
  7218. goto RMove;
  7219. }
  7220. if (V13 == "\x02" && V10 == "\x02" && V11 == "K")
  7221. {
  7222. V12 = "L";
  7223. S = "L";
  7224. V11 = "\x02";
  7225. S2 = "K";
  7226. Val = "\x01";
  7227. system("cls");
  7228. system("cls");
  7229. goto Board2;
  7230. }
  7231. if (V14 == "\x02" && V13 == "M" && V11 == "\x02")
  7232. {
  7233. V12 = "L";
  7234. S = "L";
  7235. V13 = "\x02";
  7236. S2 = "M";
  7237. Val = "\x01";
  7238. system("cls");
  7239. system("cls");
  7240. goto Board2;
  7241. }
  7242. int RL; //if none of above
  7243. srand((unsigned)time(0));//randomizer
  7244. RL = (rand()%2) +1; //1-2
  7245. if (RL == 1) //M
  7246. {
  7247. if (V13 == "M")
  7248. {
  7249. V12 = "L";
  7250. S = "L";
  7251. V13 = "\x02";
  7252. S2 = "M";
  7253. Val = "\x01";
  7254. system("cls");
  7255. system("cls");
  7256. goto Board2;
  7257. }
  7258. else
  7259. {
  7260. RL = 2;
  7261. }
  7262. }
  7263. if (RL == 2) //K
  7264. {
  7265. if (V11 == "K")
  7266. {
  7267. V12 = "L";
  7268. S = "L";
  7269. V11 = "\x02";
  7270. S2 = "K";
  7271. Val = "\x01";
  7272. system("cls");
  7273. system("cls");
  7274. goto Board2;
  7275. }
  7276. else
  7277. {
  7278. RL = 1;
  7279. }
  7280. }
  7281. }
  7282. if (V12 != "\x02" || (V11 != "K" && V13 != "M"))
  7283. {
  7284. goto RMove;
  7285. }
  7286. }
  7287. if (Random == 13) //M
  7288. {
  7289. if (V13 == "\x02" && (V12 == "L" || V14 == "N" || V4 == "D"))
  7290. {
  7291. if (V14 == "\x01" && V12 == "\x01" && (V11 == "\x01" || V15 == "\x01"))
  7292. {
  7293. goto RMove;
  7294. }
  7295. if (V6 == "\x02" && V5 == "E" && V3 == "\x02" && V4 == "D")
  7296. {
  7297. V13 = "M";
  7298. S = "M";
  7299. V4 = "\x02";
  7300. S2 = "D";
  7301. Val = "\x01";
  7302. system("cls");
  7303. system("cls");
  7304. goto Board2;
  7305. }
  7306. if (V3 == "C" && V2 == "\X02" && V5 == "\x02" && V4 == "D")
  7307. {
  7308. V13 = "M";
  7309. S = "M";
  7310. V4 = "\x02";
  7311. S2 = "D";
  7312. Val = "\x01";
  7313. system("cls");
  7314. system("cls");
  7315. goto Board2;
  7316. }
  7317. int Ra9; //if none of above
  7318. RM:
  7319. srand((unsigned)time(0));//randomizer
  7320. Ra9 = (rand()%3) +1; //1-3
  7321. if (Ra9 == 1) //L
  7322. {
  7323. if (V12 == "L")
  7324. {
  7325. V13 = "M";
  7326. S = "M";
  7327. V12 = "\x02";
  7328. S2 = "L";
  7329. Val = "\x01";
  7330. system("cls");
  7331. system("cls");
  7332. goto Board2;
  7333. }
  7334. else
  7335. {
  7336. goto RM;
  7337. }
  7338. }
  7339. if (Ra9 == 2) //N
  7340. {
  7341. if (V14 == "N")
  7342. {
  7343. V13 = "M";
  7344. S = "M";
  7345. V14 = "\x02";
  7346. S2 = "N";
  7347. Val = "\x01";
  7348. system("cls");
  7349. system("cls");
  7350. goto Board2;
  7351. }
  7352. else
  7353. {
  7354. goto RM;
  7355. }
  7356. }
  7357. if (Ra9 == 3) //D
  7358. {
  7359. if (V4 == "D")
  7360. {
  7361. V13 = "M";
  7362. S = "M";
  7363. V4 = "\x02";
  7364. S2 = "D";
  7365. Val = "\x01";
  7366. system("cls");
  7367. system("cls");
  7368. goto Board2;
  7369. }
  7370. else
  7371. {
  7372. goto RM;
  7373. }
  7374. }
  7375. }
  7376. if (V13 != "\x02" || (V12 != "L" && V14 != "N" && V4 != "D"))
  7377. {
  7378. goto RMove;
  7379. }
  7380. }
  7381. if (Random == 14) //N
  7382. {
  7383. if (V14 == "\x02" && (V15 == "O" || V13 == "M"))
  7384. {
  7385. if (V15 == "\x01" && V16 == "\x01" && (V9 == "\x01" || V6 == "\x01"))
  7386. {
  7387. goto RMove;
  7388. }
  7389. if (V12 == "\x01" && V13 == "\x01" && (V11 == "\x01" || V4 == "\x01"))
  7390. {
  7391. goto RMove;
  7392. }
  7393. if (V15 == "\x02" && V12 == "\x02" && V13 == "M")
  7394. {
  7395. V14 = "N";
  7396. S = "N";
  7397. V13 = "\x02";
  7398. S2 = "M";
  7399. Val = "\x01";
  7400. system("cls");
  7401. system("cls");
  7402. goto Board2;
  7403. }
  7404. if (V16 == "\x02" && V15 == "O" && V13 == "\x02")
  7405. {
  7406. V14 = "N";
  7407. S = "N";
  7408. V15 = "\x02";
  7409. S2 = "O";
  7410. Val = "\x01";
  7411. system("cls");
  7412. system("cls");
  7413. goto Board2;
  7414. }
  7415. int RN; //if none of above
  7416. srand((unsigned)time(0));//randomizer
  7417. RN = (rand()%2) +1; //1-2
  7418. if (RN == 1) //M
  7419. {
  7420. if (V13 == "M")
  7421. {
  7422. V14 = "N";
  7423. S = "N";
  7424. V13 = "\x02";
  7425. S2 = "M";
  7426. Val = "\x01";
  7427. system("cls");
  7428. system("cls");
  7429. goto Board2;
  7430. }
  7431. else
  7432. {
  7433. RN = 2;
  7434. }
  7435. }
  7436. if (RN == 2) //O
  7437. {
  7438. if (V15 == "O")
  7439. {
  7440. V14 = "N";
  7441. S = "N";
  7442. V15 = "\x02";
  7443. S2 = "O";
  7444. Val = "\x01";
  7445. system("cls");
  7446. system("cls");
  7447. goto Board2;
  7448. }
  7449. else
  7450. {
  7451. RN = 1;
  7452. }
  7453. }
  7454. }
  7455. if (V14 != "\x02" || (V15 != "O" && V13 != "M"))
  7456. {
  7457. goto RMove;
  7458. }
  7459. }
  7460. if ( Random == 15) //O
  7461. {
  7462. if (V15 == "\x02" && (V16 == "P" || V14 == "N" || V6 == "F"))
  7463. {
  7464. if (V14 == "\x01" && V16 == "\x01" && (V9 == "\x01" || V13 == "\x01"))
  7465. {
  7466. goto RMove;
  7467. }
  7468. if (V7 == "\x02" && V5 == "E" && V4 == "\x02" && V6 == "F")
  7469. {
  7470. V15 = "O";
  7471. S = "O";
  7472. V6 = "\x02";
  7473. S2 = "F";
  7474. Val = "\x01";
  7475. system("cls");
  7476. system("cls");
  7477. goto Board2;
  7478. }
  7479. if (V7 == "G" && V8 == "\X02" && V5 == "\x02" && V6 == "F")
  7480. {
  7481. V15 = "O";
  7482. S = "O";
  7483. V6 = "\x02";
  7484. S2 = "F";
  7485. Val = "\x01";
  7486. system("cls");
  7487. system("cls");
  7488. goto Board2;
  7489. }
  7490. int Ra10; //if none of above
  7491. RO:
  7492. srand((unsigned)time(0));//randomizer
  7493. Ra10 = (rand()%3) +1; //1-3
  7494. if (Ra10 == 1) //P
  7495. {
  7496. if (V16 == "P")
  7497. {
  7498. V15 = "O";
  7499. S = "O";
  7500. V16 = "\x02";
  7501. S2 = "P";
  7502. Val = "\x01";
  7503. system("cls");
  7504. system("cls");
  7505. goto Board2;
  7506. }
  7507. else
  7508. {
  7509. goto RO;
  7510. }
  7511. }
  7512. if (Ra10 == 2) //N
  7513. {
  7514. if (V14 == "N")
  7515. {
  7516. V15 = "O";
  7517. S = "O";
  7518. V14 = "\x02";
  7519. S2 = "N";
  7520. Val = "\x01";
  7521. system("cls");
  7522. system("cls");
  7523. goto Board2;
  7524. }
  7525. else
  7526. {
  7527. goto RO;
  7528. }
  7529. }
  7530. if (Ra10 == 3) //F
  7531. {
  7532. if (V6 == "F")
  7533. {
  7534. V15 = "O";
  7535. S = "O";
  7536. V6 = "\x02";
  7537. S2 = "F";
  7538. Val = "\x01";
  7539. system("cls");
  7540. system("cls");
  7541. goto Board2;
  7542. }
  7543. else
  7544. {
  7545. goto RO;
  7546. }
  7547. }
  7548. }
  7549. if (V15 != "\x02" || (V16 != "P" && V14 != "N" && V6 != "F"))
  7550. {
  7551. goto RMove;
  7552. }
  7553. }
  7554. if (Random == 16) //P
  7555. {
  7556. if (V16 == "\x02" && (V15 == "O" || V9 == "I"))
  7557. {
  7558. if (V15 == "\x01" && V14 == "\x01" && (V6 == "\x01" || V13 == "\x01"))
  7559. {
  7560. goto RMove;
  7561. }
  7562. if (V10 == "\x01" && V9 == "\x01" && (V8 == "\x01" || V11 == "\x01"))
  7563. {
  7564. goto RMove;
  7565. }
  7566. if (V15 == "\x02" && V10 == "\x02" && V9 == "I")
  7567. {
  7568. V16 = "P";
  7569. S = "P";
  7570. V9 = "\x02";
  7571. S2 = "I";
  7572. Val = "\x01";
  7573. system("cls");
  7574. system("cls");
  7575. goto Board2;
  7576. }
  7577. if (V14 == "\x02" && V15 == "O" && V9 == "\x02")
  7578. {
  7579. V16 = "P";
  7580. S = "P";
  7581. V15 = "\x02";
  7582. S2 = "O";
  7583. Val = "\x01";
  7584. system("cls");
  7585. system("cls");
  7586. goto Board2;
  7587. }
  7588. int RP; //if none of above
  7589. srand((unsigned)time(0));//randomizer
  7590. RP = (rand()%2) +1; //1-2
  7591. if (RP == 1) //I
  7592. {
  7593. if (V9 == "I")
  7594. {
  7595. V16 = "P";
  7596. S = "P";
  7597. V9 = "\x02";
  7598. S2 = "I";
  7599. Val = "\x01";
  7600. system("cls");
  7601. system("cls");
  7602. goto Board2;
  7603. }
  7604. else
  7605. {
  7606. RP = 2;
  7607. }
  7608. }
  7609. if (RP == 2) //O
  7610. {
  7611. if (V15 == "O")
  7612. {
  7613. V16 = "P";
  7614. S = "P";
  7615. V15 = "\x02";
  7616. S2 = "O";
  7617. Val = "\x01";
  7618. system("cls");
  7619. system("cls");
  7620. goto Board2;
  7621. }
  7622. else
  7623. {
  7624. RP = 1;
  7625. }
  7626. }
  7627. }
  7628. if (V16 != "\x02" || (V15 != "O" && V9 != "I"))
  7629. {
  7630. goto RMove;
  7631. }
  7632. }
  7633. Chk = Chk +1;
  7634. if (Chk >=2)//randomizer if nothing else works
  7635. {
  7636. int Check;
  7637. CMove:
  7638. srand((unsigned)time(0));//randomizer
  7639. Check = (rand()%16) +1; //1-16
  7640. if (Check == 1)//A
  7641. {
  7642. if (V1 == "\x02" && (V2 == "B" || V8 == "H"))
  7643. {
  7644. int Ch1; //if none of above
  7645. srand((unsigned)time(0));//randomizer
  7646. Ch1 = (rand()%2) +1; //1-2
  7647. if (Ch1 == 1) //B
  7648. {
  7649. if (V2 == "B")
  7650. {
  7651. V1 = "A";
  7652. S = "A";
  7653. V2 = "\x02";
  7654. S2 = "B";
  7655. Val = "\x01";
  7656. system("cls");
  7657. system("cls");
  7658. goto Board2;
  7659. }
  7660. else
  7661. {
  7662. Ch1 = 2;
  7663. }
  7664. }
  7665. if (Ch1 == 2) //H
  7666. {
  7667. if (V8 == "H")
  7668. {
  7669. V1 = "A";
  7670. S = "A";
  7671. V8 = "\x02";
  7672. S2 = "H";
  7673. Val = "\x01";
  7674. system("cls");
  7675. system("cls");
  7676. goto Board2;
  7677. }
  7678. else
  7679. {
  7680. Ch1 = 1;
  7681. }
  7682. }
  7683. }
  7684. if (V1 != "\x02" || (V2 != "B" && V2 != "H"))
  7685. {
  7686. goto CMove;
  7687. }
  7688. }
  7689. if (Check == 2)//B
  7690. {
  7691. if (V2 == "\x02" && (V3 == "C" || V11 == "K" || V1 == "A"))
  7692. {
  7693. int CB; //if none of above
  7694. CHB1:
  7695. srand((unsigned)time(0));//randomizer
  7696. CB = (rand()%3) +1; //1-3
  7697. if (CB == 1) //C
  7698. {
  7699. if (V3 == "C")
  7700. {
  7701. V2 = "B";
  7702. S = "B";
  7703. V3 = "\x02";
  7704. S2 = "C";
  7705. Val = "\x01";
  7706. system("cls");
  7707. system("cls");
  7708. goto Board2;
  7709. }
  7710. else
  7711. {
  7712. goto CHB1;
  7713. }
  7714. }
  7715. if (CB == 2) //A
  7716. {
  7717. if (V1 == "A")
  7718. {
  7719. V2 = "B";
  7720. S = "B";
  7721. V1 = "\x02";
  7722. S2 = "A";
  7723. Val = "\x01";
  7724. system("cls");
  7725. system("cls");
  7726. goto Board2;
  7727. }
  7728. else
  7729. {
  7730. goto CHB1;
  7731. }
  7732. }
  7733. if (CB == 3) //K
  7734. {
  7735. if (V11 == "K")
  7736. {
  7737. V2 = "B";
  7738. S = "B";
  7739. V11 = "\x02";
  7740. S2 = "K";
  7741. Val = "\x01";
  7742. system("cls");
  7743. system("cls");
  7744. goto Board2;
  7745. }
  7746. else
  7747. {
  7748. goto CHB1;
  7749. }
  7750. }
  7751. }
  7752. if (V2 != "\x02" || (V3 != "C" && V11 != "K" && V1 != "A"))
  7753. {
  7754. goto CMove;
  7755. }
  7756. }
  7757. if (Check == 3) //C
  7758. {
  7759. if (V3 == "\x02" && (V2 == "B" || V4 == "D"))
  7760. {
  7761. int Ch3; //if none of above
  7762. srand((unsigned)time(0));//randomizer
  7763. Ch3 = (rand()%2) +1; //1-2
  7764. if (Ch3 == 1) //B
  7765. {
  7766. if (V2 == "B")
  7767. {
  7768. V3 = "C";
  7769. S = "C";
  7770. V2 = "\x02";
  7771. S2 = "B";
  7772. Val = "\x01";
  7773. system("cls");
  7774. system("cls");
  7775. goto Board2;
  7776. }
  7777. else
  7778. {
  7779. Ch3 = 2;
  7780. }
  7781. }
  7782. if (Ch3 == 2) //D
  7783. {
  7784. if (V4 == "D")
  7785. {
  7786. V3 = "C";
  7787. S = "C";
  7788. V4 = "\x02";
  7789. S2 = "D";
  7790. Val = "\x01";
  7791. system("cls");
  7792. system("cls");
  7793. goto Board2;
  7794. }
  7795. else
  7796. {
  7797. Ch3 = 1;
  7798. }
  7799. }
  7800. }
  7801. if (V3 != "\x02" || (V2 != "B" && V4 != "D"))
  7802. {
  7803. goto CMove;
  7804. }
  7805. }
  7806. if (Check == 4) //D
  7807. {
  7808. if (V4 == "\x02" && (V3 == "C" || V5 == "E" || V13 == "M"))
  7809. {
  7810. int Ch4; //if none of above
  7811. CD:
  7812. srand((unsigned)time(0));//randomizer
  7813. Ch4 = (rand()%3) +1; //1-3
  7814. if (Ch4 == 1) //C
  7815. {
  7816. if (V3 == "C")
  7817. {
  7818. V4 = "D";
  7819. S = "D";
  7820. V3 = "\x02";
  7821. S2 = "C";
  7822. Val = "\x01";
  7823. system("cls");
  7824. system("cls");
  7825. goto Board2;
  7826. }
  7827. else
  7828. {
  7829. goto CD;
  7830. }
  7831. }
  7832. if (Ch4 == 2) //E
  7833. {
  7834. if (V5 == "E")
  7835. {
  7836. V4 = "D";
  7837. S = "D";
  7838. V5 = "\x02";
  7839. S2 = "E";
  7840. Val = "\x01";
  7841. system("cls");
  7842. system("cls");
  7843. goto Board2;
  7844. }
  7845. else
  7846. {
  7847. goto CD;
  7848. }
  7849. }
  7850. if (Ch4 == 3) //M
  7851. {
  7852. if (V13 == "M")
  7853. {
  7854. V4 = "D";
  7855. S = "D";
  7856. V13 = "\x02";
  7857. S2 = "M";
  7858. Val = "\x01";
  7859. system("cls");
  7860. system("cls");
  7861. goto Board2;
  7862. }
  7863. else
  7864. {
  7865. goto CD;
  7866. }
  7867. }
  7868. }
  7869. if (V4 != "\x02" || (V3 != "C" && V13 != "M" && V5 != "E"))
  7870. {
  7871. goto CMove;
  7872. }
  7873. }
  7874. if (Check == 5) //E
  7875. {
  7876. if (V5 == "\x02" && (V4 == "D" || V6 == "F"))
  7877. {
  7878. int CE; //if none of above
  7879. srand((unsigned)time(0));//randomizer
  7880. CE = (rand()%2) +1; //1-2
  7881. if (CE == 1) //D
  7882. {
  7883. if (V4 == "D")
  7884. {
  7885. V5 = "E";
  7886. S = "E";
  7887. V4 = "\x02";
  7888. S2 = "D";
  7889. Val = "\x01";
  7890. system("cls");
  7891. system("cls");
  7892. goto Board2;
  7893. }
  7894. else
  7895. {
  7896. CE = 2;
  7897. }
  7898. }
  7899. if (CE == 2) //F
  7900. {
  7901. if (V6 == "F")
  7902. {
  7903. V5 = "E";
  7904. S = "E";
  7905. V6 = "\x02";
  7906. S2 = "F";
  7907. Val = "\x01";
  7908. system("cls");
  7909. system("cls");
  7910. goto Board2;
  7911. }
  7912. else
  7913. {
  7914. CE = 1;
  7915. }
  7916. }
  7917. }
  7918. if (V5 != "\x02" || (V4 != "D" && V6 != "F"))
  7919. {
  7920. goto CMove;
  7921. }
  7922. }
  7923. if (Check == 6)//F
  7924. {
  7925. if (V6 == "\x02" && (V5 == "E" || V7 == "G" || V15 == "O"))
  7926. {
  7927. int Ch5; //if none of above
  7928. CF:
  7929. srand((unsigned)time(0));//randomizer
  7930. Ch5 = (rand()%3) +1; //1-3
  7931. if (Ch5 == 1) //G
  7932. {
  7933. if (V7 == "G")
  7934. {
  7935. V6 = "F";
  7936. S = "F";
  7937. V7 = "\x02";
  7938. S2 = "G";
  7939. Val = "\x01";
  7940. system("cls");
  7941. system("cls");
  7942. goto Board2;
  7943. }
  7944. else
  7945. {
  7946. goto CF;
  7947. }
  7948. }
  7949. if (Ch5 == 2) //E
  7950. {
  7951. if (V5 == "E")
  7952. {
  7953. V6 = "F";
  7954. S = "F";
  7955. V5 = "\x02";
  7956. S2 = "E";
  7957. Val = "\x01";
  7958. system("cls");
  7959. system("cls");
  7960. goto Board2;
  7961. }
  7962. else
  7963. {
  7964. goto CF;
  7965. }
  7966. }
  7967. if (Ch5 == 3) //O
  7968. {
  7969. if (V15 == "O")
  7970. {
  7971. V6 = "F";
  7972. S = "F";
  7973. V15 = "\x02";
  7974. S2 = "O";
  7975. Val = "\x01";
  7976. system("cls");
  7977. system("cls");
  7978. goto Board2;
  7979. }
  7980. else
  7981. {
  7982. goto CF;
  7983. }
  7984. }
  7985. }
  7986. if (V6 != "\x02" || (V5 != "E" && V7 != "G" && V15 != "O"))
  7987. {
  7988. goto CMove;
  7989. }
  7990. }
  7991. if (Check == 7) //G
  7992. {
  7993. if (V7 == "\x02" && (V6 == "F" || V8 == "H"))
  7994. {
  7995. int CG; //if none of above
  7996. srand((unsigned)time(0));//randomizer
  7997. CG = (rand()%2) +1; //1-2
  7998. if (CG == 1) //F
  7999. {
  8000. if (V6 == "F")
  8001. {
  8002. V7 = "G";
  8003. S = "G";
  8004. V6 = "\x02";
  8005. S2 = "F";
  8006. Val = "\x01";
  8007. system("cls");
  8008. system("cls");
  8009. goto Board2;
  8010. }
  8011. else
  8012. {
  8013. CG = 2;
  8014. }
  8015. }
  8016. if (CG == 2) //H
  8017. {
  8018. if (V8 == "H")
  8019. {
  8020. V7 = "G";
  8021. S = "G";
  8022. V8 = "\x02";
  8023. S2 = "H";
  8024. Val = "\x01";
  8025. system("cls");
  8026. system("cls");
  8027. goto Board2;
  8028. }
  8029. else
  8030. {
  8031. CG = 1;
  8032. }
  8033. }
  8034. }
  8035. if (V7 != "\x02" || (V6 != "F" && V8 != "H"))
  8036. {
  8037. goto CMove;
  8038. }
  8039. }
  8040. if (Check == 8) //H
  8041. {
  8042. if (V8 == "\x02" && (V1 == "A" || V7 == "G" || V9 == "I"))
  8043. {
  8044. int Ch6; //if none of above
  8045. CH:
  8046. srand((unsigned)time(0));//randomizer
  8047. Ch6 = (rand()%3) +1; //1-3
  8048. if (Ch6 == 1) //G
  8049. {
  8050. if (V7 == "G")
  8051. {
  8052. V8 = "H";
  8053. S = "H";
  8054. V7 = "\x02";
  8055. S2 = "G";
  8056. Val = "\x01";
  8057. system("cls");
  8058. system("cls");
  8059. goto Board2;
  8060. }
  8061. else
  8062. {
  8063. goto CH;
  8064. }
  8065. }
  8066. if (Ch6 == 2) //A
  8067. {
  8068. if (V1 == "A")
  8069. {
  8070. V8 = "H";
  8071. S = "H";
  8072. V1 = "\x02";
  8073. S2 = "A";
  8074. Val = "\x01";
  8075. system("cls");
  8076. system("cls");
  8077. goto Board2;
  8078. }
  8079. else
  8080. {
  8081. goto CH;
  8082. }
  8083. }
  8084. if (Ch6 == 3) //I
  8085. {
  8086. if (V9 == "I")
  8087. {
  8088. V8 = "H";
  8089. S = "H";
  8090. V9 = "\x02";
  8091. S2 = "I";
  8092. Val = "\x01";
  8093. system("cls");
  8094. system("cls");
  8095. goto Board2;
  8096. }
  8097. else
  8098. {
  8099. goto CH;
  8100. }
  8101. }
  8102. }
  8103. if (V8 != "\x02" || (V1 != "A" && V7 != "G" && V9 != "I"))
  8104. {
  8105. goto CMove;
  8106. }
  8107. }
  8108. if (Check == 9) //I
  8109. {
  8110. if (V9 == "\x02" && (V10 == "J" || V8 == "H" || V16 == "P"))
  8111. {
  8112. int Ch7; //if none of above
  8113. CI:
  8114. srand((unsigned)time(0));//randomizer
  8115. Ch7 = (rand()%3) +1; //1-3
  8116. if (Ch7 == 1) //J
  8117. {
  8118. if (V10 == "J")
  8119. {
  8120. V9 = "I";
  8121. S = "I";
  8122. V10 = "\x02";
  8123. S2 = "J";
  8124. Val = "\x01";
  8125. system("cls");
  8126. system("cls");
  8127. goto Board2;
  8128. }
  8129. else
  8130. {
  8131. goto CI;
  8132. }
  8133. }
  8134. if (Ch7 == 2) //H
  8135. {
  8136. if (V8 == "H")
  8137. {
  8138. V9 = "I";
  8139. S = "I";
  8140. V8 = "\x02";
  8141. S2 = "H";
  8142. Val = "\x01";
  8143. system("cls");
  8144. system("cls");
  8145. goto Board2;
  8146. }
  8147. else
  8148. {
  8149. goto CI;
  8150. }
  8151. }
  8152. if (Ch7 == 3) //P
  8153. {
  8154. if (V16 == "P")
  8155. {
  8156. V9 = "I";
  8157. S = "I";
  8158. V16 = "\x02";
  8159. S2 = "P";
  8160. Val = "\x01";
  8161. system("cls");
  8162. system("cls");
  8163. goto Board2;
  8164. }
  8165. else
  8166. {
  8167. goto CI;
  8168. }
  8169. }
  8170. }
  8171. if (V9 != "\x02" || (V10 != "J" && V8 != "H" && V16 != "P"))
  8172. {
  8173. goto CMove;
  8174. }
  8175. }
  8176. if (Check == 10) //J
  8177. {
  8178. if (V10 == "\x02" && (V9 == "I" || V11 == "K"))
  8179. {
  8180. int CJ; //if none of above
  8181. srand((unsigned)time(0));//randomizer
  8182. CJ = (rand()%2) +1; //1-2
  8183. if (CJ == 1) //I
  8184. {
  8185. if (V9 == "I")
  8186. {
  8187. V10 = "J";
  8188. S = "J";
  8189. V9 = "\x02";
  8190. S2 = "I";
  8191. Val = "\x01";
  8192. system("cls");
  8193. system("cls");
  8194. goto Board2;
  8195. }
  8196. else
  8197. {
  8198. CJ = 2;
  8199. }
  8200. }
  8201. if (CJ == 2) //K
  8202. {
  8203. if (V11 == "K")
  8204. {
  8205. V10 = "J";
  8206. S = "J";
  8207. V11 = "\x02";
  8208. S2 = "K";
  8209. Val = "\x01";
  8210. system("cls");
  8211. system("cls");
  8212. goto Board2;
  8213. }
  8214. else
  8215. {
  8216. CJ = 1;
  8217. }
  8218. }
  8219. }
  8220. if (V10 != "\x02" || (V9 != "I" && V11 != "K"))
  8221. {
  8222. goto CMove;
  8223. }
  8224. }
  8225. if (Check == 11) //K
  8226. {
  8227. if (V11 == "\x02" && (V10 == "J" || V2 == "B" || V12 == "L"))
  8228. {
  8229. int Ch8; //if none of above
  8230. CK:
  8231. srand((unsigned)time(0));//randomizer
  8232. Ch8 = (rand()%3) +1; //1-3
  8233. if (Ch8 == 1) //J
  8234. {
  8235. if (V10 == "J")
  8236. {
  8237. V11 = "K";
  8238. S = "K";
  8239. V10 = "\x02";
  8240. S2 = "J";
  8241. Val = "\x01";
  8242. system("cls");
  8243. system("cls");
  8244. goto Board2;
  8245. }
  8246. else
  8247. {
  8248. goto CK;
  8249. }
  8250. }
  8251. if (Ch8 == 2) //L
  8252. {
  8253. if (V12 == "L")
  8254. {
  8255. V11 = "K";
  8256. S = "K";
  8257. V12 = "\x02";
  8258. S2 = "L";
  8259. Val = "\x01";
  8260. system("cls");
  8261. system("cls");
  8262. goto Board2;
  8263. }
  8264. else
  8265. {
  8266. goto CK;
  8267. }
  8268. }
  8269. if (Ch8 == 3) //B
  8270. {
  8271. if (V2 == "B")
  8272. {
  8273. V11 = "K";
  8274. S = "K";
  8275. V2 = "\x02";
  8276. S2 = "B";
  8277. Val = "\x01";
  8278. system("cls");
  8279. system("cls");
  8280. goto Board2;
  8281. }
  8282. else
  8283. {
  8284. goto CK;
  8285. }
  8286. }
  8287. }
  8288. if (V11 != "\x02" || (V10 != "J" && V12 != "L" && V2 != "B"))
  8289. {
  8290. goto CMove;
  8291. }
  8292. }
  8293. if (Check == 12) //L
  8294. {
  8295. if (V12 == "\x02" && (V11 == "K" || V13 == "M"))
  8296. {
  8297. int CL; //if none of above
  8298. srand((unsigned)time(0));//randomizer
  8299. CL = (rand()%2) +1; //1-2
  8300. if (CL == 1) //M
  8301. {
  8302. if (V13 == "M")
  8303. {
  8304. V12 = "L";
  8305. S = "L";
  8306. V13 = "\x02";
  8307. S2 = "M";
  8308. Val = "\x01";
  8309. system("cls");
  8310. system("cls");
  8311. goto Board2;
  8312. }
  8313. else
  8314. {
  8315. CL = 2;
  8316. }
  8317. }
  8318. if (CL == 2) //K
  8319. {
  8320. if (V11 == "K")
  8321. {
  8322. V12 = "L";
  8323. S = "L";
  8324. V11 = "\x02";
  8325. S2 = "K";
  8326. Val = "\x01";
  8327. system("cls");
  8328. system("cls");
  8329. goto Board2;
  8330. }
  8331. else
  8332. {
  8333. CL = 1;
  8334. }
  8335. }
  8336. }
  8337. if (V12 != "\x02" || (V11 != "K" && V13 != "M"))
  8338. {
  8339. goto CMove;
  8340. }
  8341. }
  8342. if (Check == 13) //M
  8343. {
  8344. if (V13 == "\x02" && (V12 == "L" || V14 == "N" || V4 == "D"))
  8345. {
  8346. int Ch9; //if none of above
  8347. CM:
  8348. srand((unsigned)time(0));//randomizer
  8349. Ch9 = (rand()%3) +1; //1-3
  8350. if (Ch9 == 1) //L
  8351. {
  8352. if (V12 == "L")
  8353. {
  8354. V13 = "M";
  8355. S = "M";
  8356. V12 = "\x02";
  8357. S2 = "L";
  8358. Val = "\x01";
  8359. system("cls");
  8360. system("cls");
  8361. goto Board2;
  8362. }
  8363. else
  8364. {
  8365. goto CM;
  8366. }
  8367. }
  8368. if (Ch9 == 2) //N
  8369. {
  8370. if (V14 == "N")
  8371. {
  8372. V13 = "M";
  8373. S = "M";
  8374. V14 = "\x02";
  8375. S2 = "N";
  8376. Val = "\x01";
  8377. system("cls");
  8378. system("cls");
  8379. goto Board2;
  8380. }
  8381. else
  8382. {
  8383. goto CM;
  8384. }
  8385. }
  8386. if (Ch9 == 3) //D
  8387. {
  8388. if (V4 == "D")
  8389. {
  8390. V13 = "M";
  8391. S = "M";
  8392. V4 = "\x02";
  8393. S2 = "D";
  8394. Val = "\x01";
  8395. system("cls");
  8396. system("cls");
  8397. goto Board2;
  8398. }
  8399. else
  8400. {
  8401. goto CM;
  8402. }
  8403. }
  8404. }
  8405. if (V13 != "\x02" || (V12 != "L" && V14 != "N" && V4 != "D"))
  8406. {
  8407. goto CMove;
  8408. }
  8409. }
  8410. if (Check == 14) //N
  8411. {
  8412. if (V14 == "\x02" && (V15 == "O" || V13 == "M"))
  8413. {
  8414. int CN; //if none of above
  8415. srand((unsigned)time(0));//randomizer
  8416. CN = (rand()%2) +1; //1-2
  8417. if (CN == 1) //M
  8418. {
  8419. if (V13 == "M")
  8420. {
  8421. V14 = "N";
  8422. S = "N";
  8423. V13 = "\x02";
  8424. S2 = "M";
  8425. Val = "\x01";
  8426. system("cls");
  8427. system("cls");
  8428. goto Board2;
  8429. }
  8430. else
  8431. {
  8432. CN = 2;
  8433. }
  8434. }
  8435. if (CN == 2) //O
  8436. {
  8437. if (V15 == "O")
  8438. {
  8439. V14 = "N";
  8440. S = "N";
  8441. V15 = "\x02";
  8442. S2 = "O";
  8443. Val = "\x01";
  8444. system("cls");
  8445. system("cls");
  8446. goto Board2;
  8447. }
  8448. else
  8449. {
  8450. CN = 1;
  8451. }
  8452. }
  8453. }
  8454. if (V14 != "\x02" || (V15 != "O" && V13 != "M"))
  8455. {
  8456. goto CMove;
  8457. }
  8458. }
  8459. if ( Check == 15) //O
  8460. {
  8461. if (V15 == "\x02" && (V16 == "P" || V14 == "N" || V6 == "F"))
  8462. {
  8463. int Ch10; //if none of above
  8464. CO:
  8465. srand((unsigned)time(0));//randomizer
  8466. Ch10 = (rand()%3) +1; //1-3
  8467. if (Ch10 == 1) //P
  8468. {
  8469. if (V16 == "P")
  8470. {
  8471. V15 = "O";
  8472. S = "O";
  8473. V16 = "\x02";
  8474. S2 = "P";
  8475. Val = "\x01";
  8476. system("cls");
  8477. system("cls");
  8478. goto Board2;
  8479. }
  8480. else
  8481. {
  8482. goto CO;
  8483. }
  8484. }
  8485. if (Ch10 == 2) //N
  8486. {
  8487. if (V14 == "N")
  8488. {
  8489. V15 = "O";
  8490. S = "O";
  8491. V14 = "\x02";
  8492. S2 = "N";
  8493. Val = "\x01";
  8494. system("cls");
  8495. system("cls");
  8496. goto Board2;
  8497. }
  8498. else
  8499. {
  8500. goto CO;
  8501. }
  8502. }
  8503. if (Ch10 == 3) //F
  8504. {
  8505. if (V6 == "F")
  8506. {
  8507. V15 = "O";
  8508. S = "O";
  8509. V6 = "\x02";
  8510. S2 = "F";
  8511. Val = "\x01";
  8512. system("cls");
  8513. system("cls");
  8514. goto Board2;
  8515. }
  8516. else
  8517. {
  8518. goto CO;
  8519. }
  8520. }
  8521. }
  8522. if (V15 != "\x02" || (V16 != "P" && V14 != "N" && V6 != "F"))
  8523. {
  8524. goto CMove;
  8525. }
  8526. }
  8527. if (Check == 16) //P
  8528. {
  8529. if (V16 == "\x02" && (V15 == "O" || V9 == "I"))
  8530. {
  8531. int CP; //if none of above
  8532. srand((unsigned)time(0));//randomizer
  8533. CP = (rand()%2) +1; //1-2
  8534. if (CP == 1) //I
  8535. {
  8536. if (V9 == "I")
  8537. {
  8538. V16 = "P";
  8539. S = "P";
  8540. V9 = "\x02";
  8541. S2 = "I";
  8542. Val = "\x01";
  8543. system("cls");
  8544. system("cls");
  8545. goto Board2;
  8546. }
  8547. else
  8548. {
  8549. CP = 2;
  8550. }
  8551. }
  8552. if (CP == 2) //O
  8553. {
  8554. if (V15 == "O")
  8555. {
  8556. V16 = "P";
  8557. S = "P";
  8558. V15 = "\x02";
  8559. S2 = "O";
  8560. Val = "\x01";
  8561. system("cls");
  8562. system("cls");
  8563. goto Board2;
  8564. }
  8565. else
  8566. {
  8567. CP = 1;
  8568. }
  8569. }
  8570. }
  8571. if (V16 != "\x02" || (V15 != "O" && V9 != "I"))
  8572. {
  8573. goto CMove;
  8574. }
  8575. }
  8576. }
  8577. goto CTop;
  8578. } //end of computer move code
  8579.  
  8580. if (N1 > 0 && Val == "\x01" && Mill < 1 && Mi2 < 1) //PLACE PIECES
  8581. {
  8582. if (F1 == 1)
  8583. {
  8584. cout << " Computer placed a piece at " << Spot << ".\n";
  8585. }
  8586. if (C == 0)
  8587. {
  8588. cout << endl;
  8589. }
  8590. if (C == 1)
  8591. {
  8592. cout << " Computer captured a piece at " << Took << ".\n\n";
  8593. C = 0;
  8594. }
  8595. cout << " "<<Dir<<" ";
  8596. cin >> Move;
  8597. cout << " "<<D2<<" \n";
  8598. }
  8599. if (N2 > 0 && Val == "\x02" && Mill < 1 && Mi2 <1) //computer places piece
  8600. {
  8601. cout << " Computer is thinking. ";
  8602. if (N2 == 6) //FIRST MOVE RANDOMIZER
  8603. {
  8604. F1 = 1;
  8605. int R2;
  8606. Ra2:
  8607. srand((unsigned)time(0));//randomizer
  8608. R2 = (rand()%16) +1; //1-16
  8609. if (R2 == 1)
  8610. {
  8611. if (V1 == "A")
  8612. {
  8613. Spot = "A";
  8614. V1 = "\x02";
  8615. Val = "\x01";
  8616. N2 = N2 -1;
  8617. if (V1=="\x02" && V2 =="\x02" && V3 =="\x02")
  8618. {
  8619. Mi2 = 1;
  8620. }
  8621. if (V1=="\x02" && V8 =="\x02" && V7 =="\x02")
  8622. {
  8623. Mi2 = 1;
  8624. }
  8625. system("cls");
  8626. system("cls");
  8627. goto Board2;
  8628. }
  8629. if (V1 != "A")
  8630. {
  8631. goto Ra2;
  8632. }
  8633. }
  8634. if (R2 == 2)
  8635. {
  8636. if (V2 == "B")
  8637. {
  8638. Spot = "B";
  8639. V2 = "\x02";
  8640. Val = "\x01";
  8641. N2 = N2 -1;
  8642. if (V1=="\x02" && V2 =="\x02" && V3 =="\x02")
  8643. {
  8644. Mi2 = 1;
  8645. }
  8646. system("cls");
  8647. system("cls");
  8648. goto Board2;
  8649. }
  8650. if (V2 != "B")
  8651. {
  8652. goto Ra2;
  8653. }
  8654. }
  8655. if (R2 == 3)
  8656. {
  8657. if (V3 == "C")
  8658. {
  8659. Spot = "C";
  8660. V3 = "\x02";
  8661. Val = "\x01";
  8662. N2 = N2 -1;
  8663. if (V1=="\x02" && V2 =="\x02" && V3 =="\x02")
  8664. {
  8665. Mi2 = 1;
  8666. }
  8667. if (V3=="\x02" && V4 =="\x02" && V5 =="\x02")
  8668. {
  8669. Mi2 = 1;
  8670. }
  8671. system("cls");
  8672. system("cls");
  8673. goto Board2;
  8674. }
  8675. if (V3 != "C")
  8676. {
  8677. goto Ra2;
  8678. }
  8679. }
  8680. if (R2 == 4)
  8681. {
  8682. if (V4 == "D")
  8683. {
  8684. Spot = "D";
  8685. V4 = "\x02";
  8686. Val = "\x01";
  8687. N2 = N2 -1;
  8688. if (V3=="\x02" && V4 =="\x02" && V5 =="\x02")
  8689. {
  8690. Mi2 = 1;
  8691. }
  8692. system("cls");
  8693. system("cls");
  8694. goto Board2;
  8695. }
  8696. if (V4 != "D")
  8697. {
  8698. goto Ra2;
  8699. }
  8700. }
  8701. if (R2 == 5)
  8702. {
  8703. if (V5 == "E")
  8704. {
  8705. Spot = "E";
  8706. V5 = "\x02";
  8707. Val = "\x01";
  8708. N2 = N2 -1;
  8709. if (V3=="\x02" && V4 =="\x02" && V5 =="\x02")
  8710. {
  8711. Mi2 = 1;
  8712. }
  8713. if (V5=="\x02" && V6 =="\x02" && V7 =="\x02")
  8714. {
  8715. Mi2 = 1;
  8716. }
  8717. system("cls");
  8718. system("cls");
  8719. goto Board2;
  8720. }
  8721. if (V5 != "E")
  8722. {
  8723. goto Ra2;
  8724. }
  8725. }
  8726. if (R2 == 6)
  8727. {
  8728. if (V6 == "F")
  8729. {
  8730. Spot = "F";
  8731. V6 = "\x02";
  8732. Val = "\x01";
  8733. N2 = N2 -1;
  8734. if (V5=="\x02" && V6 =="\x02" && V7 =="\x02")
  8735. {
  8736. Mi2 = 1;
  8737. }
  8738. system("cls");
  8739. system("cls");
  8740. goto Board2;
  8741. }
  8742. if (V6 != "F")
  8743. {
  8744. goto Ra2;
  8745. }
  8746. }
  8747. if (R2 == 7)
  8748. {
  8749. if (V7 == "G")
  8750. {
  8751. Spot = "G";
  8752. V7 = "\x02";
  8753. Val = "\x01";
  8754. N2 = N2 -1;
  8755. if (V1=="\x02" && V8 =="\x02" && V7 =="\x02")
  8756. {
  8757. Mi2 = 1;
  8758. }
  8759. if (V5=="\x02" && V6 =="\x02" && V7 =="\x02")
  8760. {
  8761. Mi2 = 1;
  8762. }
  8763. system("cls");
  8764. system("cls");
  8765. goto Board2;
  8766. }
  8767. if (V7 != "G")
  8768. {
  8769. goto Ra2;
  8770. }
  8771. }
  8772. if (R2 == 8)
  8773. {
  8774. if (V8 == "H")
  8775. {
  8776. Spot = "H";
  8777. V8 = "\x02";
  8778. Val = "\x01";
  8779. N2 = N2 -1;
  8780. if (V1=="\x02" && V8 =="\x02" && V7 =="\x02")
  8781. {
  8782. Mi2 = 1;
  8783. }
  8784. system("cls");
  8785. system("cls");
  8786. goto Board2;
  8787. }
  8788. if (V8 != "H")
  8789. {
  8790. goto Ra2;
  8791. }
  8792. }
  8793. if (R2 == 9)
  8794. {
  8795. if (V9 == "I")
  8796. {
  8797. Spot = "I";
  8798. V9 = "\x02";
  8799. Val = "\x01";
  8800. N2 = N2 -1;
  8801. if (V10=="\x02" && V9 =="\x02" && V16 =="\x02")
  8802. {
  8803. Mi2 = 1;
  8804. }
  8805. system("cls");
  8806. system("cls");
  8807. goto Board2;
  8808. }
  8809. if (V9 != "I")
  8810. {
  8811. goto Ra2;
  8812. }
  8813. }
  8814. if (R2 == 10)
  8815. {
  8816. if (V10 == "J")
  8817. {
  8818. Spot = "J";
  8819. V10 = "\x02";
  8820. Val = "\x01";
  8821. N2 = N2 -1;
  8822. if (V10=="\x02" && V9 =="\x02" && V16 =="\x02")
  8823. {
  8824. Mi2 = 1;
  8825. }
  8826. if (V10=="\x02" && V11 =="\x02" && V12 =="\x02")
  8827. {
  8828. Mi2 = 1;
  8829. }
  8830. system("cls");
  8831. system("cls");
  8832. goto Board2;
  8833. }
  8834. if (V10 != "J")
  8835. {
  8836. goto Ra2;
  8837. }
  8838. }
  8839. if (R2 == 11)
  8840. {
  8841. if (V11 == "K")
  8842. {
  8843. Spot = "K";
  8844. V11 = "\x02";
  8845. Val = "\x01";
  8846. N2 = N2 -1;
  8847. if (V10=="\x02" && V11 =="\x02" && V12 =="\x02")
  8848. {
  8849. Mi2 = 1;
  8850. }
  8851. system("cls");
  8852. system("cls");
  8853. goto Board2;
  8854. }
  8855. if (V11 != "K")
  8856. {
  8857. goto Ra2;
  8858. }
  8859. }
  8860. if (R2 == 12)
  8861. {
  8862. if (V12 == "L")
  8863. {
  8864. Spot = "L";
  8865. V12 = "\x02";
  8866. Val = "\x01";
  8867. N2 = N2 -1;
  8868. if (V10=="\x02" && V11 =="\x02" && V12 =="\x02")
  8869. {
  8870. Mi2 = 1;
  8871. }
  8872. if (V12=="\x02" && V13 =="\x02" && V14 =="\x02")
  8873. {
  8874. Mi2 = 1;
  8875. }
  8876. system("cls");
  8877. system("cls");
  8878. goto Board2;
  8879. }
  8880. if (V12 != "L")
  8881. {
  8882. goto Ra2;
  8883. }
  8884. }
  8885. if (R2 == 13)
  8886. {
  8887. if (V13 == "M")
  8888. {
  8889. Spot = "M";
  8890. V13 = "\x02";
  8891. Val = "\x01";
  8892. N2 = N2 -1;
  8893. if (V12=="\x02" && V13 =="\x02" && V14 =="\x02")
  8894. {
  8895. Mi2 = 1;
  8896. }
  8897. system("cls");
  8898. system("cls");
  8899. goto Board2;
  8900. }
  8901. if (V13 != "M")
  8902. {
  8903. goto Ra2;
  8904. }
  8905. }
  8906. if (R2 == 14)
  8907. {
  8908. if (V14 == "N")
  8909. {
  8910. Spot = "N";
  8911. V14 = "\x02";
  8912. Val = "\x01";
  8913. N2 = N2 -1;
  8914. if (V12=="\x02" && V13 =="\x02" && V14 =="\x02")
  8915. {
  8916. Mi2 = 1;
  8917. }
  8918. if (V14=="\x02" && V15 =="\x02" && V16 =="\x02")
  8919. {
  8920. Mi2 = 1;
  8921. }
  8922. system("cls");
  8923. system("cls");
  8924. goto Board2;
  8925. }
  8926. if (V14 != "N")
  8927. {
  8928. goto Ra2;
  8929. }
  8930. }
  8931. if (R2 == 15)
  8932. {
  8933. if (V15 == "O")
  8934. {
  8935. Spot = "O";
  8936. V15 = "\x02";
  8937. Val = "\x01";
  8938. N2 = N2 -1;
  8939. if (V14=="\x02" && V15 =="\x02" && V16 =="\x02")
  8940. {
  8941. Mi2 = 1;
  8942. }
  8943. system("cls");
  8944. system("cls");
  8945. goto Board2;
  8946. }
  8947. if (V15 != "O")
  8948. {
  8949. goto Ra2;
  8950. }
  8951. }
  8952. if (R2 == 16)
  8953. {
  8954. if (V16 == "P")
  8955. {
  8956. Spot = "P";
  8957. V16 = "\x02";
  8958. Val = "\x01";
  8959. N2 = N2 -1;
  8960. if (V10=="\x02" && V9 =="\x02" && V16 =="\x02")
  8961. {
  8962. Mi2 = 1;
  8963. }
  8964. if (V14=="\x02" && V15 =="\x02" && V16 =="\x02")
  8965. {
  8966. Mi2 = 1;
  8967. }
  8968. system("cls");
  8969. system("cls");
  8970. goto Board2;
  8971. }
  8972. if (V16 != "P")
  8973. {
  8974. goto Ra2;
  8975. }
  8976. }
  8977. }
  8978. if (N2 <= 5) //check if two together to block/make mill ELSE 4/5 - Randomizer / <4 make 2 pair if both sides open else go to Ra2
  8979. {
  8980. //MAKE MILL 24 combos
  8981. if (V1 == "\x02" && V2 == "\x02" && V3 == "C") //ABC - 123
  8982. {//AB
  8983. Spot = "C";
  8984. V3 = "\x02";
  8985. Val = "\x01";
  8986. N2 = N2 -1;
  8987. Mi2 = 1;
  8988. system("cls");
  8989. system("cls");
  8990. goto Board2;
  8991. }
  8992. if (V2 == "\x02" && V3 == "\x02" && V1 == "A")
  8993. {//BC
  8994. Spot = "A";
  8995. V1 = "\x02";
  8996. Val = "\x01";
  8997. N2 = N2 -1;
  8998. Mi2 = 1;
  8999. system("cls");
  9000. system("cls");
  9001. goto Board2;
  9002. }
  9003. if (V1 == "\x02" && V3 == "\x02" && V2 == "B")
  9004. {//AC
  9005. Spot = "B";
  9006. V2 = "\x02";
  9007. Val = "\x01";
  9008. N2 = N2 -1;
  9009. Mi2 = 1;
  9010. system("cls");
  9011. system("cls");
  9012. goto Board2;
  9013. }
  9014. if (V3 == "\x02" && V4 == "\x02" && V5 == "E")//CDE - 345
  9015. {//CD
  9016. Spot = "E";
  9017. V5 = "\x02";
  9018. Val = "\x01";
  9019. N2 = N2 -1;
  9020. Mi2 = 1;
  9021. system("cls");
  9022. system("cls");
  9023. goto Board2;
  9024. }
  9025. if (V4 == "\x02" && V5 == "\x02" && V3 == "C")
  9026. {//DE
  9027. Spot = "C";
  9028. V3 = "\x02";
  9029. Val = "\x01";
  9030. N2 = N2 -1;
  9031. Mi2 = 1;
  9032. system("cls");
  9033. system("cls");
  9034. goto Board2;
  9035. }
  9036. if (V3 == "\x02" && V5 == "\x02" && V4 == "D")
  9037. {//CE
  9038. Spot = "D";
  9039. V4 = "\x02";
  9040. Val = "\x01";
  9041. N2 = N2 -1;
  9042. Mi2 = 1;
  9043. system("cls");
  9044. system("cls");
  9045. goto Board2;
  9046. }
  9047. if (V5 == "\x02" && V6 == "\x02" && V7 == "G") //EFG - 567
  9048. {//EF
  9049. Spot = "G";
  9050. V7 = "\x02";
  9051. Val = "\x01";
  9052. N2 = N2 -1;
  9053. Mi2 = 1;
  9054. system("cls");
  9055. system("cls");
  9056. goto Board2;
  9057. }
  9058. if (V6 == "\x02" && V7 == "\x02" && V5 == "E")
  9059. {//FG
  9060. Spot = "E";
  9061. V5 = "\x02";
  9062. Val = "\x01";
  9063. N2 = N2 -1;
  9064. Mi2 = 1;
  9065. system("cls");
  9066. system("cls");
  9067. goto Board2;
  9068. }
  9069. if (V5 == "\x02" && V7 == "\x02" && V6 == "F")
  9070. {//EG
  9071. Spot = "F";
  9072. V6 = "\x02";
  9073. Val = "\x01";
  9074. N2 = N2 -1;
  9075. Mi2 = 1;
  9076. system("cls");
  9077. system("cls");
  9078. goto Board2;
  9079. }
  9080. if (V1 == "\x02" && V8 == "\x02" && V7 == "G") //AHG - 187
  9081. {//AH
  9082. Spot = "G";
  9083. V7 = "\x02";
  9084. Val = "\x01";
  9085. N2 = N2 -1;
  9086. Mi2 = 1;
  9087. system("cls");
  9088. system("cls");
  9089. goto Board2;
  9090. }
  9091. if (V7 == "\x02" && V8 == "\x02" && V1 == "A")
  9092. {//HG
  9093. Spot = "A";
  9094. V1 = "\x02";
  9095. Val = "\x01";
  9096. N2 = N2 -1;
  9097. Mi2 = 1;
  9098. system("cls");
  9099. system("cls");
  9100. goto Board2;
  9101. }
  9102. if (V1 == "\x02" && V7 == "\x02" && V8 == "H")
  9103. {//AG
  9104. Spot = "H";
  9105. V8 = "\x02";
  9106. Val = "\x01";
  9107. N2 = N2 -1;
  9108. Mi2 = 1;
  9109. system("cls");
  9110. system("cls");
  9111. goto Board2;
  9112. }
  9113. if (V10 == "\x02" && V9 == "\x02" && V16 == "P") //JIP 10-9-16
  9114. {//JI
  9115. Spot = "P";
  9116. V16 = "\x02";
  9117. Val = "\x01";
  9118. N2 = N2 -1;
  9119. Mi2 = 1;
  9120. system("cls");
  9121. system("cls");
  9122. goto Board2;
  9123. }
  9124. if (V9 == "\x02" && V16 == "\x02" && V10 == "J")
  9125. {//IP
  9126. Spot = "J";
  9127. V10 = "\x02";
  9128. Val = "\x01";
  9129. N2 = N2 -1;
  9130. Mi2 = 1;
  9131. system("cls");
  9132. system("cls");
  9133. goto Board2;
  9134. }
  9135. if (V10 == "\x02" && V16 == "\x02" && V9 == "I")
  9136. {//JP
  9137. Spot = "I";
  9138. V9 = "\x02";
  9139. Val = "\x01";
  9140. N2 = N2 -1;
  9141. Mi2 = 1;
  9142. system("cls");
  9143. system("cls");
  9144. goto Board2;
  9145. }
  9146. if (V10 == "\x02" && V11 == "\x02" && V12 == "L") //JKL 10-11-12
  9147. {//JK
  9148. Spot = "L";
  9149. V12 = "\x02";
  9150. Val = "\x01";
  9151. N2 = N2 -1;
  9152. Mi2 = 1;
  9153. system("cls");
  9154. system("cls");
  9155. goto Board2;
  9156. }
  9157. if (V11 == "\x02" && V12 == "\x02" && V10 == "J")
  9158. {//KL
  9159. Spot = "J";
  9160. V10 = "\x02";
  9161. Val = "\x01";
  9162. N2 = N2 -1;
  9163. Mi2 = 1;
  9164. system("cls");
  9165. system("cls");
  9166. goto Board2;
  9167. }
  9168. if (V10 == "\x02" && V12 == "\x02" && V11 == "K")
  9169. {//JL
  9170. Spot = "K";
  9171. V11 = "\x02";
  9172. Val = "\x01";
  9173. N2 = N2 -1;
  9174. Mi2 = 1;
  9175. system("cls");
  9176. system("cls");
  9177. goto Board2;
  9178. }
  9179. if (V12 == "\x02" && V13 == "\x02" && V14 == "N") //LMN 12-13-14
  9180. {//LM
  9181. Spot = "N";
  9182. V14 = "\x02";
  9183. Val = "\x01";
  9184. N2 = N2 -1;
  9185. Mi2 = 1;
  9186. system("cls");
  9187. system("cls");
  9188. goto Board2;
  9189. }
  9190. if (V13 == "\x02" && V14 == "\x02" && V12 == "L")
  9191. {//MN
  9192. Spot = "L";
  9193. V12 = "\x02";
  9194. Val = "\x01";
  9195. N2 = N2 -1;
  9196. Mi2 = 1;
  9197. system("cls");
  9198. system("cls");
  9199. goto Board2;
  9200. }
  9201. if (V12 == "\x02" && V14 == "\x02" && V13 == "M")
  9202. {//LN
  9203. Spot = "M";
  9204. V13 = "\x02";
  9205. Val = "\x01";
  9206. N2 = N2 -1;
  9207. Mi2 = 1;
  9208. system("cls");
  9209. system("cls");
  9210. goto Board2;
  9211. }
  9212. if (V14 == "\x02" && V15 == "\x02" && V16 == "P") //NOP 14-15-16
  9213. {//NO
  9214. Spot = "P";
  9215. V16 = "\x02";
  9216. Val = "\x01";
  9217. N2 = N2 -1;
  9218. Mi2 = 1;
  9219. system("cls");
  9220. system("cls");
  9221. goto Board2;
  9222. }
  9223. if (V15 == "\x02" && V16 == "\x02" && V14 == "N")
  9224. {//OP
  9225. Spot = "N";
  9226. V14 = "\x02";
  9227. Val = "\x01";
  9228. N2 = N2 -1;
  9229. Mi2 = 1;
  9230. system("cls");
  9231. system("cls");
  9232. goto Board2;
  9233. }
  9234. if (V14 == "\x02" && V16 == "\x02" && V15 == "O")
  9235. {//NP
  9236. Spot = "O";
  9237. V15 = "\x02";
  9238. Val = "\x01";
  9239. N2 = N2 -1;
  9240. Mi2 = 1;
  9241. system("cls");
  9242. system("cls");
  9243. goto Board2;
  9244. }
  9245.  
  9246. //else BLOCK MILL 24combos
  9247. if (V1 == "\x01" && V2 == "\x01" && V3 == "C") //ABC - 123
  9248. {//AB
  9249. Spot = "C";
  9250. V3 = "\x02";
  9251. Val = "\x01";
  9252. N2 = N2 -1;
  9253. system("cls");
  9254. system("cls");
  9255. goto Board2;
  9256. }
  9257. if (V2 == "\x01" && V3 == "\x01" && V1 == "A")
  9258. {//BC
  9259. Spot = "A";
  9260. V1 = "\x02";
  9261. Val = "\x01";
  9262. N2 = N2 -1;
  9263. system("cls");
  9264. system("cls");
  9265. goto Board2;
  9266. }
  9267. if (V1 == "\x01" && V3 == "\x01" && V2 == "B")
  9268. {//AC
  9269. Spot = "B";
  9270. V2 = "\x02";
  9271. Val = "\x01";
  9272. N2 = N2 -1;
  9273. system("cls");
  9274. system("cls");
  9275. goto Board2;
  9276. }
  9277. if (V3 == "\x01" && V4 == "\x01" && V5 == "E")//CDE - 345
  9278. {//CD
  9279. Spot = "E";
  9280. V5 = "\x02";
  9281. Val = "\x01";
  9282. N2 = N2 -1;
  9283. system("cls");
  9284. system("cls");
  9285. goto Board2;
  9286. }
  9287. if (V4 == "\x01" && V5 == "\x01" && V3 == "C")
  9288. {//DE
  9289. Spot = "C";
  9290. V3 = "\x02";
  9291. Val = "\x01";
  9292. N2 = N2 -1;
  9293. system("cls");
  9294. system("cls");
  9295. goto Board2;
  9296. }
  9297. if (V3 == "\x01" && V5 == "\x01" && V4 == "D")
  9298. {//CE
  9299. Spot = "D";
  9300. V4 = "\x02";
  9301. Val = "\x01";
  9302. N2 = N2 -1;
  9303. system("cls");
  9304. system("cls");
  9305. goto Board2;
  9306. }
  9307. if (V5 == "\x01" && V6 == "\x01" && V7 == "G") //EFG - 567
  9308. {//EF
  9309. Spot = "G";
  9310. V7 = "\x02";
  9311. Val = "\x01";
  9312. N2 = N2 -1;
  9313. system("cls");
  9314. system("cls");
  9315. goto Board2;
  9316. }
  9317. if (V6 == "\x01" && V7 == "\x01" && V5 == "E")
  9318. {//FG
  9319. Spot = "E";
  9320. V5 = "\x02";
  9321. Val = "\x01";
  9322. N2 = N2 -1;
  9323. system("cls");
  9324. system("cls");
  9325. goto Board2;
  9326. }
  9327. if (V5 == "\x01" && V7 == "\x01" && V6 == "F")
  9328. {//EG
  9329. Spot = "F";
  9330. V6 = "\x02";
  9331. Val = "\x01";
  9332. N2 = N2 -1;
  9333. system("cls");
  9334. system("cls");
  9335. goto Board2;
  9336. }
  9337. if (V1 == "\x01" && V8 == "\x01" && V7 == "G") //AHG - 187
  9338. {//AH
  9339. Spot = "G";
  9340. V7 = "\x02";
  9341. Val = "\x01";
  9342. N2 = N2 -1;
  9343. system("cls");
  9344. system("cls");
  9345. goto Board2;
  9346. }
  9347. if (V7 == "\x01" && V8 == "\x01" && V1 == "A")
  9348. {//HG
  9349. Spot = "A";
  9350. V1 = "\x02";
  9351. Val = "\x01";
  9352. N2 = N2 -1;
  9353. system("cls");
  9354. system("cls");
  9355. goto Board2;
  9356. }
  9357. if (V1 == "\x01" && V7 == "\x01" && V8 == "H")
  9358. {//AG
  9359. Spot = "H";
  9360. V8 = "\x02";
  9361. Val = "\x01";
  9362. N2 = N2 -1;
  9363. system("cls");
  9364. system("cls");
  9365. goto Board2;
  9366. }
  9367. if (V10 == "\x01" && V9 == "\x01" && V16 == "P") //JIP 10-9-16
  9368. {//JI
  9369. Spot = "P";
  9370. V16 = "\x02";
  9371. Val = "\x01";
  9372. N2 = N2 -1;
  9373. system("cls");
  9374. system("cls");
  9375. goto Board2;
  9376. }
  9377. if (V9 == "\x01" && V16 == "\x01" && V10 == "J")
  9378. {//IP
  9379. Spot = "J";
  9380. V10 = "\x02";
  9381. Val = "\x01";
  9382. N2 = N2 -1;
  9383. system("cls");
  9384. system("cls");
  9385. goto Board2;
  9386. }
  9387. if (V10 == "\x01" && V16 == "\x01" && V9 == "I")
  9388. {//JP
  9389. Spot = "I";
  9390. V9 = "\x02";
  9391. Val = "\x01";
  9392. N2 = N2 -1;
  9393. system("cls");
  9394. system("cls");
  9395. goto Board2;
  9396. }
  9397. if (V10 == "\x01" && V11 == "\x01" && V12 == "L") //JKL 10-11-12
  9398. {//JK
  9399. Spot = "L";
  9400. V12 = "\x02";
  9401. Val = "\x01";
  9402. N2 = N2 -1;
  9403. system("cls");
  9404. system("cls");
  9405. goto Board2;
  9406. }
  9407. if (V11 == "\x01" && V12 == "\x01" && V10 == "J")
  9408. {//KL
  9409. Spot = "J";
  9410. V10 = "\x02";
  9411. Val = "\x01";
  9412. N2 = N2 -1;
  9413. system("cls");
  9414. system("cls");
  9415. goto Board2;
  9416. }
  9417. if (V10 == "\x01" && V12 == "\x01" && V11 == "K")
  9418. {//JL
  9419. Spot = "K";
  9420. V11 = "\x02";
  9421. Val = "\x01";
  9422. N2 = N2 -1;
  9423. system("cls");
  9424. system("cls");
  9425. goto Board2;
  9426. }
  9427. if (V12 == "\x01" && V13 == "\x01" && V14 == "N") //LMN 12-13-14
  9428. {//LM
  9429. Spot = "N";
  9430. V14 = "\x02";
  9431. Val = "\x01";
  9432. N2 = N2 -1;
  9433. system("cls");
  9434. system("cls");
  9435. goto Board2;
  9436. }
  9437. if (V13 == "\x01" && V14 == "\x01" && V12 == "L")
  9438. {//MN
  9439. Spot = "L";
  9440. V12 = "\x02";
  9441. Val = "\x01";
  9442. N2 = N2 -1;
  9443. system("cls");
  9444. system("cls");
  9445. goto Board2;
  9446. }
  9447. if (V12 == "\x01" && V14 == "\x01" && V13 == "M")
  9448. {//LN
  9449. Spot = "M";
  9450. V13 = "\x02";
  9451. Val = "\x01";
  9452. N2 = N2 -1;
  9453. system("cls");
  9454. system("cls");
  9455. goto Board2;
  9456. }
  9457. if (V14 == "\x01" && V15 == "\x01" && V16 == "P") //NOP 14-15-16
  9458. {//NO
  9459. Spot = "P";
  9460. V16 = "\x02";
  9461. Val = "\x01";
  9462. N2 = N2 -1;
  9463. system("cls");
  9464. system("cls");
  9465. goto Board2;
  9466. }
  9467. if (V15 == "\x01" && V16 == "\x01" && V14 == "N")
  9468. {//OP
  9469. Spot = "N";
  9470. V14 = "\x02";
  9471. Val = "\x01";
  9472. N2 = N2 -1;
  9473. system("cls");
  9474. system("cls");
  9475. goto Board2;
  9476. }
  9477. if (V14 == "\x01" && V16 == "\x01" && V15 == "O")
  9478. {//NP
  9479. Spot = "O";
  9480. V15 = "\x02";
  9481. Val = "\x01";
  9482. N2 = N2 -1;
  9483. system("cls");
  9484. system("cls");
  9485. goto Board2;
  9486. }
  9487.  
  9488. //ELSE 4/5 then randomizer
  9489. if (N2 == 5 || N2 == 4)
  9490. {
  9491. goto Ra2;
  9492. }
  9493.  
  9494. //else MAKE 2 PAIR
  9495. int Ran;
  9496. srand((unsigned)time(0));//randomizer if make 2 pair or Ra2
  9497. Ran = (rand()%3) +1; //1-3
  9498. if (Ran == 1 || Ran >= 3)
  9499. {
  9500. if (V1== "\x02" && V2 == "B" && V3 == "C") //ABC 123
  9501. {
  9502. int R3;
  9503. srand((unsigned)time(0));//randomizer
  9504. R3 = (rand()%2) +1; //1-2
  9505. if (R3 == 1)
  9506. {//B
  9507. Spot = "B";
  9508. V2 = "\x02";
  9509. Val = "\x01";
  9510. N2 = N2 -1;
  9511. system("cls");
  9512. system("cls");
  9513. goto Board2;
  9514. }
  9515. if (R3 == 2)
  9516. {//C
  9517. Spot = "C";
  9518. V3 = "\x02";
  9519. Val = "\x01";
  9520. N2 = N2 -1;
  9521. system("cls");
  9522. system("cls");
  9523. goto Board2;
  9524. }
  9525. }
  9526. if (V2== "\x02" && V1 == "A" && V3 == "C")
  9527. {
  9528. int R4;
  9529. srand((unsigned)time(0));//randomizer
  9530. R4 = (rand()%2) +1; //1-2
  9531. if (R4 == 1)
  9532. {//A
  9533. Spot = "A";
  9534. V1 = "\x02";
  9535. Val = "\x01";
  9536. N2 = N2 -1;
  9537. system("cls");
  9538. system("cls");
  9539. goto Board2;
  9540. }
  9541. if (R4 == 2)
  9542. {//C
  9543. Spot = "C";
  9544. V3 = "\x02";
  9545. Val = "\x01";
  9546. N2 = N2 -1;
  9547. system("cls");
  9548. system("cls");
  9549. goto Board2;
  9550. }
  9551. }
  9552. if (V3== "\x02" && V1 == "A" && V2 == "B")
  9553. {
  9554. int R5;
  9555. srand((unsigned)time(0));//randomizer
  9556. R5 = (rand()%2) +1; //1-2
  9557. if (R5 == 1)
  9558. {//A
  9559. Spot = "A";
  9560. V1 = "\x02";
  9561. Val = "\x01";
  9562. N2 = N2 -1;
  9563. system("cls");
  9564. system("cls");
  9565. goto Board2;
  9566. }
  9567. if (R5 == 2)
  9568. {//B
  9569. Spot = "B";
  9570. V2 = "\x02";
  9571. Val = "\x01";
  9572. N2 = N2 -1;
  9573. system("cls");
  9574. system("cls");
  9575. goto Board2;
  9576. }
  9577. }
  9578. if (V1== "\x02" && V8 == "H" && V7 == "G") //AHG 187
  9579. {
  9580. int R6;
  9581. srand((unsigned)time(0));//randomizer
  9582. R6 = (rand()%2) +1; //1-2
  9583. if (R6 == 1)
  9584. {//H
  9585. Spot = "H";
  9586. V8 = "\x02";
  9587. Val = "\x01";
  9588. N2 = N2 -1;
  9589. system("cls");
  9590. system("cls");
  9591. goto Board2;
  9592. }
  9593. if (R6 == 2)
  9594. {//G
  9595. Spot = "G";
  9596. V7 = "\x02";
  9597. Val = "\x01";
  9598. N2 = N2 -1;
  9599. system("cls");
  9600. system("cls");
  9601. goto Board2;
  9602. }
  9603. }
  9604. if (V8== "\x02" && V1 == "A" && V7 == "G")
  9605. {
  9606. int R7;
  9607. srand((unsigned)time(0));//randomizer
  9608. R7 = (rand()%2) +1; //1-2
  9609. if (R7 == 1)
  9610. {//A
  9611. Spot = "A";
  9612. V1 = "\x02";
  9613. Val = "\x01";
  9614. N2 = N2 -1;
  9615. system("cls");
  9616. system("cls");
  9617. goto Board2;
  9618. }
  9619. if (R7 == 2)
  9620. {//G
  9621. Spot = "G";
  9622. V7 = "\x02";
  9623. Val = "\x01";
  9624. N2 = N2 -1;
  9625. system("cls");
  9626. system("cls");
  9627. goto Board2;
  9628. }
  9629. }
  9630. if (V7== "\x02" && V8 == "H" && V1 == "A")
  9631. {
  9632. int R8;
  9633. srand((unsigned)time(0));//randomizer
  9634. R8 = (rand()%2) +1; //1-2
  9635. if (R8 == 1)
  9636. {//H
  9637. Spot = "H";
  9638. V8 = "\x02";
  9639. Val = "\x01";
  9640. N2 = N2 -1;
  9641. system("cls");
  9642. system("cls");
  9643. goto Board2;
  9644. }
  9645. if (R8 == 2)
  9646. {//A
  9647. Spot = "A";
  9648. V1 = "\x02";
  9649. Val = "\x01";
  9650. N2 = N2 -1;
  9651. system("cls");
  9652. system("cls");
  9653. goto Board2;
  9654. }
  9655. }
  9656. if (V3== "\x02" && V4 == "D" && V5 == "E") //CDE 345
  9657. {
  9658. int R9;
  9659. srand((unsigned)time(0));//randomizer
  9660. R9 = (rand()%2) +1; //1-2
  9661. if (R9 == 1)
  9662. {//D
  9663. Spot = "D";
  9664. V4 = "\x02";
  9665. Val = "\x01";
  9666. N2 = N2 -1;
  9667. system("cls");
  9668. system("cls");
  9669. goto Board2;
  9670. }
  9671. if (R9 == 2)
  9672. {//E
  9673. Spot = "E";
  9674. V5 = "\x02";
  9675. Val = "\x01";
  9676. N2 = N2 -1;
  9677. system("cls");
  9678. system("cls");
  9679. goto Board2;
  9680. }
  9681. }
  9682. if (V4== "\x02" && V3 == "C" && V5 == "E")
  9683. {
  9684. int R10;
  9685. srand((unsigned)time(0));//randomizer
  9686. R10 = (rand()%2) +1; //1-2
  9687. if (R10 == 1)
  9688. {//C
  9689. Spot = "C";
  9690. V3 = "\x02";
  9691. Val = "\x01";
  9692. N2 = N2 -1;
  9693. system("cls");
  9694. system("cls");
  9695. goto Board2;
  9696. }
  9697. if (R10 == 2)
  9698. {//E
  9699. Spot = "E";
  9700. V5 = "\x02";
  9701. Val = "\x01";
  9702. N2 = N2 -1;
  9703. system("cls");
  9704. system("cls");
  9705. goto Board2;
  9706. }
  9707. }
  9708. if (V5== "\x02" && V4 == "D" && V3 == "C")
  9709. {
  9710. int R11;
  9711. srand((unsigned)time(0));//randomizer
  9712. R11 = (rand()%2) +1; //1-2
  9713. if (R11 == 1)
  9714. {//D
  9715. Spot = "D";
  9716. V4 = "\x02";
  9717. Val = "\x01";
  9718. N2 = N2 -1;
  9719. system("cls");
  9720. system("cls");
  9721. goto Board2;
  9722. }
  9723. if (R11 == 2)
  9724. {//C
  9725. Spot = "C";
  9726. V3 = "\x02";
  9727. Val = "\x01";
  9728. N2 = N2 -1;
  9729. system("cls");
  9730. system("cls");
  9731. goto Board2;
  9732. }
  9733. }
  9734. if (V5== "\x02" && V6 == "F" && V7 == "G") //EFG 567
  9735. {
  9736. int R12;
  9737. srand((unsigned)time(0));//randomizer
  9738. R12 = (rand()%2) +1; //1-2
  9739. if (R12 == 1)
  9740. {//F
  9741. Spot = "F";
  9742. V6 = "\x02";
  9743. Val = "\x01";
  9744. N2 = N2 -1;
  9745. system("cls");
  9746. system("cls");
  9747. goto Board2;
  9748. }
  9749. if (R12 == 2)
  9750. {//G
  9751. Spot = "G";
  9752. V7 = "\x02";
  9753. Val = "\x01";
  9754. N2 = N2 -1;
  9755. system("cls");
  9756. system("cls");
  9757. goto Board2;
  9758. }
  9759. }
  9760. if (V6== "\x02" && V5 == "E" && V7 == "G")
  9761. {
  9762. int R13;
  9763. srand((unsigned)time(0));//randomizer
  9764. R13 = (rand()%2) +1; //1-2
  9765. if (R13 == 1)
  9766. {//E
  9767. Spot = "E";
  9768. V5 = "\x02";
  9769. Val = "\x01";
  9770. N2 = N2 -1;
  9771. system("cls");
  9772. system("cls");
  9773. goto Board2;
  9774. }
  9775. if (R13 == 2)
  9776. {//G
  9777. Spot = "G";
  9778. V7 = "\x02";
  9779. Val = "\x01";
  9780. N2 = N2 -1;
  9781. system("cls");
  9782. system("cls");
  9783. goto Board2;
  9784. }
  9785. }
  9786. if (V7== "\x02" && V6 == "F" && V5 == "E")
  9787. {
  9788. int R14;
  9789. srand((unsigned)time(0));//randomizer
  9790. R14 = (rand()%2) +1; //1-2
  9791. if (R14 == 1)
  9792. {//F
  9793. Spot = "F";
  9794. V6 = "\x02";
  9795. Val = "\x01";
  9796. N2 = N2 -1;
  9797. system("cls");
  9798. system("cls");
  9799. goto Board2;
  9800. }
  9801. if (R14 == 2)
  9802. {//E
  9803. Spot = "E";
  9804. V5 = "\x02";
  9805. Val = "\x01";
  9806. N2 = N2 -1;
  9807. system("cls");
  9808. system("cls");
  9809. goto Board2;
  9810. }
  9811. }
  9812. if (V10== "\x02" && V9 == "I" && V16 == "P") //JIP 10-9-16
  9813. {
  9814. int R15;
  9815. srand((unsigned)time(0));//randomizer
  9816. R15 = (rand()%2) +1; //1-2
  9817. if (R15 == 1)
  9818. {//I
  9819. Spot = "I";
  9820. V9 = "\x02";
  9821. Val = "\x01";
  9822. N2 = N2 -1;
  9823. system("cls");
  9824. system("cls");
  9825. goto Board2;
  9826. }
  9827. if (R15 == 2)
  9828. {//P
  9829. Spot = "P";
  9830. V16 = "\x02";
  9831. Val = "\x01";
  9832. N2 = N2 -1;
  9833. system("cls");
  9834. system("cls");
  9835. goto Board2;
  9836. }
  9837. }
  9838. if (V9== "\x02" && V10 == "J" && V16 == "P")
  9839. {
  9840. int R16;
  9841. srand((unsigned)time(0));//randomizer
  9842. R16 = (rand()%2) +1; //1-2
  9843. if (R16 == 1)
  9844. {//J
  9845. Spot = "J";
  9846. V10 = "\x02";
  9847. Val = "\x01";
  9848. N2 = N2 -1;
  9849. system("cls");
  9850. system("cls");
  9851. goto Board2;
  9852. }
  9853. if (R16 == 2)
  9854. {//P
  9855. Spot = "P";
  9856. V16 = "\x02";
  9857. Val = "\x01";
  9858. N2 = N2 -1;
  9859. system("cls");
  9860. system("cls");
  9861. goto Board2;
  9862. }
  9863. }
  9864. if (V16== "\x02" && V9 == "I" && V10 == "J")
  9865. {
  9866. int R17;
  9867. srand((unsigned)time(0));//randomizer
  9868. R17 = (rand()%2) +1; //1-2
  9869. if (R17 == 1)
  9870. {//I
  9871. Spot = "I";
  9872. V9 = "\x02";
  9873. Val = "\x01";
  9874. N2 = N2 -1;
  9875. system("cls");
  9876. system("cls");
  9877. goto Board2;
  9878. }
  9879. if (R17 == 2)
  9880. {//J
  9881. Spot = "J";
  9882. V10 = "\x02";
  9883. Val = "\x01";
  9884. N2 = N2 -1;
  9885. system("cls");
  9886. system("cls");
  9887. goto Board2;
  9888. }
  9889. }
  9890. if (V10== "\x02" && V11 == "K" && V12 == "L") //JKL 10-11-12
  9891. {
  9892. int R18;
  9893. srand((unsigned)time(0));//randomizer
  9894. R18 = (rand()%2) +1; //1-2
  9895. if (R18 == 1)
  9896. {//K
  9897. Spot = "K";
  9898. V11 = "\x02";
  9899. Val = "\x01";
  9900. N2 = N2 -1;
  9901. system("cls");
  9902. system("cls");
  9903. goto Board2;
  9904. }
  9905. if (R18 == 2)
  9906. {//L
  9907. Spot = "L";
  9908. V12 = "\x02";
  9909. Val = "\x01";
  9910. N2 = N2 -1;
  9911. system("cls");
  9912. system("cls");
  9913. goto Board2;
  9914. }
  9915. }
  9916. if (V11== "\x02" && V10 == "J" && V12 == "L")
  9917. {
  9918. int R19;
  9919. srand((unsigned)time(0));//randomizer
  9920. R19 = (rand()%2) +1; //1-2
  9921. if (R19 == 1)
  9922. {//J
  9923. Spot = "J";
  9924. V10 = "\x02";
  9925. Val = "\x01";
  9926. N2 = N2 -1;
  9927. system("cls");
  9928. system("cls");
  9929. goto Board2;
  9930. }
  9931. if (R19 == 2)
  9932. {//L
  9933. Spot = "L";
  9934. V12 = "\x02";
  9935. Val = "\x01";
  9936. N2 = N2 -1;
  9937. system("cls");
  9938. system("cls");
  9939. goto Board2;
  9940. }
  9941. }
  9942. if (V12== "\x02" && V11 == "K" && V10 == "J")
  9943. {
  9944. int R20;
  9945. srand((unsigned)time(0));//randomizer
  9946. R20 = (rand()%2) +1; //1-2
  9947. if (R20 == 1)
  9948. {//K
  9949. Spot = "K";
  9950. V11 = "\x02";
  9951. Val = "\x01";
  9952. N2 = N2 -1;
  9953. system("cls");
  9954. system("cls");
  9955. goto Board2;
  9956. }
  9957. if (R20 == 2)
  9958. {//J
  9959. Spot = "J";
  9960. V10 = "\x02";
  9961. Val = "\x01";
  9962. N2 = N2 -1;
  9963. system("cls");
  9964. system("cls");
  9965. goto Board2;
  9966. }
  9967. }
  9968. if (V12== "\x02" && V13 == "M" && V14 == "N") //LMN 12-13-14
  9969. {
  9970. int R21;
  9971. srand((unsigned)time(0));//randomizer
  9972. R21 = (rand()%2) +1; //1-2
  9973. if (R21 == 1)
  9974. {//M
  9975. Spot = "M";
  9976. V13 = "\x02";
  9977. Val = "\x01";
  9978. N2 = N2 -1;
  9979. system("cls");
  9980. system("cls");
  9981. goto Board2;
  9982. }
  9983. if (R21 == 2)
  9984. {//N
  9985. Spot = "N";
  9986. V14 = "\x02";
  9987. Val = "\x01";
  9988. N2 = N2 -1;
  9989. system("cls");
  9990. system("cls");
  9991. goto Board2;
  9992. }
  9993. }
  9994. if (V13== "\x02" && V12 == "L" && V14 == "N")
  9995. {
  9996. int R22;
  9997. srand((unsigned)time(0));//randomizer
  9998. R22 = (rand()%2) +1; //1-2
  9999. if (R22 == 1)
  10000. {//L
  10001. Spot = "L";
  10002. V12 = "\x02";
  10003. Val = "\x01";
  10004. N2 = N2 -1;
  10005. system("cls");
  10006. system("cls");
  10007. goto Board2;
  10008. }
  10009. if (R22 == 2)
  10010. {//N
  10011. Spot = "N";
  10012. V14 = "\x02";
  10013. Val = "\x01";
  10014. N2 = N2 -1;
  10015. system("cls");
  10016. system("cls");
  10017. goto Board2;
  10018. }
  10019. }
  10020. if (V14== "\x02" && V13 == "M" && V12 == "L")
  10021. {
  10022. int R23;
  10023. srand((unsigned)time(0));//randomizer
  10024. R23 = (rand()%2) +1; //1-2
  10025. if (R23 == 1)
  10026. {//M
  10027. Spot = "M";
  10028. V13 = "\x02";
  10029. Val = "\x01";
  10030. N2 = N2 -1;
  10031. system("cls");
  10032. system("cls");
  10033. goto Board2;
  10034. }
  10035. if (R23 == 2)
  10036. {//L
  10037. Spot = "L";
  10038. V12 = "\x02";
  10039. Val = "\x01";
  10040. N2 = N2 -1;
  10041. system("cls");
  10042. system("cls");
  10043. goto Board2;
  10044. }
  10045. }
  10046. if (V14== "\x02" && V15 == "O" && V16 == "P") //NOP 14-15-16
  10047. {
  10048. int R24;
  10049. srand((unsigned)time(0));//randomizer
  10050. R24 = (rand()%2) +1; //1-2
  10051. if (R24 == 1)
  10052. {//O
  10053. Spot = "O";
  10054. V15 = "\x02";
  10055. Val = "\x01";
  10056. N2 = N2 -1;
  10057. system("cls");
  10058. system("cls");
  10059. goto Board2;
  10060. }
  10061. if (R24 == 2)
  10062. {//P
  10063. Spot = "P";
  10064. V16 = "\x02";
  10065. Val = "\x01";
  10066. N2 = N2 -1;
  10067. system("cls");
  10068. system("cls");
  10069. goto Board2;
  10070. }
  10071. }
  10072. if (V15== "\x02" && V14 == "N" && V16 == "P")
  10073. {
  10074. int R25;
  10075. srand((unsigned)time(0));//randomizer
  10076. R25 = (rand()%2) +1; //1-2
  10077. if (R25 == 1)
  10078. {//N
  10079. Spot = "N";
  10080. V14 = "\x02";
  10081. Val = "\x01";
  10082. N2 = N2 -1;
  10083. system("cls");
  10084. system("cls");
  10085. goto Board2;
  10086. }
  10087. if (R25 == 2)
  10088. {//P
  10089. Spot = "P";
  10090. V16 = "\x02";
  10091. Val = "\x01";
  10092. N2 = N2 -1;
  10093. system("cls");
  10094. system("cls");
  10095. goto Board2;
  10096. }
  10097. }
  10098. if (V16== "\x02" && V15 == "O" && V14 == "N")
  10099. {
  10100. int R26;
  10101. srand((unsigned)time(0));//randomizer
  10102. R26 = (rand()%2) +1; //1-2
  10103. if (R26 == 1)
  10104. {//O
  10105. Spot = "O";
  10106. V15 = "\x02";
  10107. Val = "\x01";
  10108. N2 = N2 -1;
  10109. system("cls");
  10110. system("cls");
  10111. goto Board2;
  10112. }
  10113. if (R26 == 2)
  10114. {//N
  10115. Spot = "N";
  10116. V14 = "\x02";
  10117. Val = "\x01";
  10118. N2 = N2 -1;
  10119. system("cls");
  10120. system("cls");
  10121. goto Board2;
  10122. }
  10123. }
  10124. if (N2 < 4)
  10125. {
  10126. goto Ra2;
  10127. }
  10128. }
  10129. if (Ran == 2)
  10130. {
  10131. goto Ra2;
  10132. }
  10133. }
  10134. }
  10135.  
  10136. //Player places pieces
  10137. if ((Move == "A" || Move == "a") && V1 == "A" && (N1 > 0 || N2 > 0))
  10138. {
  10139. if ( Val == "\x01")
  10140. {
  10141. V1 = "\x01";
  10142. Val = "\x02";
  10143. N1 = N1 - 1;
  10144. if (V1=="\x01" && V2 =="\x01" && V3 =="\x01")
  10145. {
  10146. Mill = 1;
  10147. }
  10148. if (V1=="\x01" && V8 =="\x01" && V7 =="\x01")
  10149. {
  10150. Mill = 1;
  10151. }
  10152. goto Board2;
  10153. }
  10154. }
  10155. if ((Move == "A" || Move == "a") && V1 != "A" && (N1 > 0 || N2 > 0))
  10156. {
  10157. cout << " That spot is already taken. \n";
  10158. cout << " ";
  10159. system("pause");
  10160. goto Board2;
  10161. }
  10162.  
  10163. if ((Move == "B" || Move == "b") && V2 == "B" && (N1 > 0 || N2 > 0))
  10164. {
  10165. if ( Val == "\x01")
  10166. {
  10167. V2 = "\x01";
  10168. Val = "\x02";
  10169. N1 = N1 - 1;
  10170. if (V1=="\x01" && V2 =="\x01" && V3 =="\x01")
  10171. {
  10172. Mill = 1;
  10173. }
  10174. goto Board2;
  10175. }
  10176. }
  10177. if ((Move == "B" || Move == "b") && V2 != "B" && (N1 > 0 || N2 > 0))
  10178. {
  10179. cout << " That spot is already taken. \n";
  10180. cout << " ";
  10181. system("pause");
  10182. goto Board2;
  10183. }
  10184.  
  10185. if ((Move == "C" || Move == "c") && V3 == "C" && (N1 > 0 || N2 > 0))
  10186. {
  10187. if ( Val == "\x01")
  10188. {
  10189. V3 = "\x01";
  10190. Val = "\x02";
  10191. N1 = N1 - 1;
  10192. if (V1=="\x01" && V2 =="\x01" && V3 =="\x01")
  10193. {
  10194. Mill = 1;
  10195. }
  10196. if (V3=="\x01" && V4 =="\x01" && V5 =="\x01")
  10197. {
  10198. Mill = 1;
  10199. }
  10200. goto Board2;
  10201. }
  10202. }
  10203. if ((Move == "C" || Move == "c") && V3 != "C" && (N1 > 0 || N2 > 0))
  10204. {
  10205. cout << " That spot is already taken. \n";
  10206. cout << " ";
  10207. system("pause");
  10208. goto Board2;
  10209. }
  10210.  
  10211. if ((Move == "D" || Move == "d") && V4 == "D" && (N1 > 0 || N2 > 0))
  10212. {
  10213. if ( Val == "\x01")
  10214. {
  10215. V4 = "\x01";
  10216. Val = "\x02";
  10217. N1 = N1 - 1;
  10218. if (V3=="\x01" && V4 =="\x01" && V5 =="\x01")
  10219. {
  10220. Mill = 1;
  10221. }
  10222. goto Board2;
  10223. }
  10224. }
  10225. if ((Move == "D" || Move == "d") && V4 != "D" && (N1 > 0 || N2 > 0))
  10226. {
  10227. cout << " That spot is already taken. \n";
  10228. cout << " ";
  10229. system("pause");
  10230. goto Board2;
  10231. }
  10232.  
  10233. if ((Move == "E" || Move == "e") && V5 == "E" && (N1 > 0 || N2 > 0))
  10234. {
  10235. if ( Val == "\x01")
  10236. {
  10237. V5 = "\x01";
  10238. Val = "\x02";
  10239. N1 = N1 - 1;
  10240. if (V3=="\x01" && V4 =="\x01" && V5 =="\x01")
  10241. {
  10242. Mill = 1;
  10243. }
  10244. if (V5=="\x01" && V6 =="\x01" && V7 =="\x01")
  10245. {
  10246. Mill = 1;
  10247. }
  10248. goto Board2;
  10249. }
  10250. }
  10251. if ((Move == "E" || Move == "e") && V5 != "E" && (N1 > 0 || N2 > 0))
  10252. {
  10253. cout << " That spot is already taken. \n";
  10254. cout << " ";
  10255. system("pause");
  10256. goto Board2;
  10257. }
  10258.  
  10259. if ((Move == "F" || Move == "f") && V6 == "F" && (N1 > 0 || N2 > 0))
  10260. {
  10261. if ( Val == "\x01")
  10262. {
  10263. V6 = "\x01";
  10264. Val = "\x02";
  10265. N1 = N1 - 1;
  10266. if (V5=="\x01" && V6 =="\x01" && V7 =="\x01")
  10267. {
  10268. Mill = 1;
  10269. }
  10270. goto Board2;
  10271. }
  10272. }
  10273. if ((Move == "F" || Move == "f") && V6 != "F" && (N1 > 0 || N2 > 0))
  10274. {
  10275. cout << " That spot is already taken. \n";
  10276. cout << " ";
  10277. system("pause");
  10278. goto Board2;
  10279. }
  10280.  
  10281. if ((Move == "G" || Move == "g") && V7 == "G" && (N1 > 0 || N2 > 0))
  10282. {
  10283. if ( Val == "\x01")
  10284. {
  10285. V7 = "\x01";
  10286. Val = "\x02";
  10287. N1 = N1 - 1;
  10288. if (V1=="\x01" && V8 =="\x01" && V7 =="\x01")
  10289. {
  10290. Mill = 1;
  10291. }
  10292. if (V5=="\x01" && V6 =="\x01" && V7 =="\x01")
  10293. {
  10294. Mill = 1;
  10295. }
  10296. goto Board2;
  10297. }
  10298. }
  10299. if ((Move == "G" || Move == "g") && V7 != "G" && (N1 > 0 || N2 > 0))
  10300. {
  10301. cout << " That spot is already taken. \n";
  10302. cout << " ";
  10303. system("pause");
  10304. goto Board2;
  10305. }
  10306.  
  10307. if ((Move == "H" || Move == "h") && V8 == "H" && (N1 > 0 || N2 > 0))
  10308. {
  10309. if ( Val == "\x01")
  10310. {
  10311. V8 = "\x01";
  10312. Val = "\x02";
  10313. N1 = N1 - 1;
  10314. if (V1=="\x01" && V8 =="\x01" && V7 =="\x01")
  10315. {
  10316. Mill = 1;
  10317. }
  10318. goto Board2;
  10319. }
  10320. }
  10321. if ((Move == "H" || Move == "h") && V8 != "H" && (N1 > 0 || N2 > 0))
  10322. {
  10323. cout << " That spot is already taken. \n";
  10324. cout << " ";
  10325. system("pause");
  10326. goto Board2;
  10327. }
  10328.  
  10329. if ((Move == "I" || Move == "i") && V9 == "I" && (N1 > 0 || N2 > 0))
  10330. {
  10331. if ( Val == "\x01")
  10332. {
  10333. V9 = "\x01";
  10334. Val = "\x02";
  10335. N1 = N1 - 1;
  10336. if (V10=="\x01" && V9 =="\x01" && V16 =="\x01")
  10337. {
  10338. Mill = 1;
  10339. }
  10340. goto Board2;
  10341. }
  10342. }
  10343. if ((Move == "I" || Move == "i") && V9 != "I" && (N1 > 0 || N2 > 0))
  10344. {
  10345. cout << " That spot is already taken. \n";
  10346. cout << " ";
  10347. system("pause");
  10348. goto Board2;
  10349. }
  10350.  
  10351. if ((Move == "J" || Move == "j") && V10 == "J" && (N1 > 0 || N2 > 0))
  10352. {
  10353. if ( Val == "\x01")
  10354. {
  10355. V10 = "\x01";
  10356. Val = "\x02";
  10357. N1 = N1 - 1;
  10358. if (V10=="\x01" && V11 =="\x01" && V12 =="\x01")
  10359. {
  10360. Mill = 1;
  10361. }
  10362. if (V10=="\x01" && V9 =="\x01" && V16 =="\x01")
  10363. {
  10364. Mill = 1;
  10365. }
  10366. goto Board2;
  10367. }
  10368. }
  10369. if ((Move == "J" || Move == "j") && V10 != "J" && (N1 > 0 || N2 > 0))
  10370. {
  10371. cout << " That spot is already taken. \n";
  10372. cout << " ";
  10373. system("pause");
  10374. goto Board2;
  10375. }
  10376.  
  10377. if ((Move == "K" || Move == "k") && V11 == "K" && (N1 > 0 || N2 > 0))
  10378. {
  10379. if ( Val == "\x01")
  10380. {
  10381. V11 = "\x01";
  10382. Val = "\x02";
  10383. N1 = N1 - 1;
  10384. if (V10=="\x01" && V11 =="\x01" && V12 =="\x01")
  10385. {
  10386. Mill = 1;
  10387. }
  10388. goto Board2;
  10389. }
  10390. }
  10391. if ((Move == "K" || Move == "k") && V11 != "K" && (N1 > 0 || N2 > 0))
  10392. {
  10393. cout << " That spot is already taken. \n";
  10394. cout << " ";
  10395. system("pause");
  10396. goto Board2;
  10397. }
  10398.  
  10399. if ((Move == "L" || Move == "l") && V12 == "L" && (N1 > 0 || N2 > 0))
  10400. {
  10401. if ( Val == "\x01")
  10402. {
  10403. V12 = "\x01";
  10404. Val = "\x02";
  10405. N1 = N1 - 1;
  10406. if (V10=="\x01" && V11 =="\x01" && V12 =="\x01")
  10407. {
  10408. Mill = 1;
  10409. }
  10410. if (V12=="\x01" && V13 =="\x01" && V14 =="\x01")
  10411. {
  10412. Mill = 1;
  10413. }
  10414. goto Board2;
  10415. }
  10416. }
  10417. if ((Move == "L" || Move == "l") && V12 != "L" && (N1 > 0 || N2 > 0))
  10418. {
  10419. cout << " That spot is already taken. \n";
  10420. cout << " ";
  10421. system("pause");
  10422. goto Board2;
  10423. }
  10424.  
  10425. if ((Move == "M" || Move == "m") && V13 == "M" && (N1 > 0 || N2 > 0))
  10426. {
  10427. if ( Val == "\x01")
  10428. {
  10429. V13 = "\x01";
  10430. Val = "\x02";
  10431. N1 = N1 - 1;
  10432. if (V12=="\x01" && V13 =="\x01" && V14 =="\x01")
  10433. {
  10434. Mill = 1;
  10435. }
  10436. goto Board2;
  10437. }
  10438. }
  10439. if ((Move == "M" || Move == "m") && V13 != "M" && (N1 > 0 || N2 > 0))
  10440. {
  10441. cout << " That spot is already taken. \n";
  10442. cout << " ";
  10443. system("pause");
  10444. goto Board2;
  10445. }
  10446.  
  10447. if ((Move == "N" || Move == "n") && V14 == "N" && (N1 > 0 || N2 > 0))
  10448. {
  10449. if ( Val == "\x01")
  10450. {
  10451. V14 = "\x01";
  10452. Val = "\x02";
  10453. N1 = N1 - 1;
  10454. if (V12=="\x01" && V13 =="\x01" && V14 =="\x01")
  10455. {
  10456. Mill = 1;
  10457. }
  10458. if (V14=="\x01" && V15 =="\x01" && V16 =="\x01")
  10459. {
  10460. Mill = 1;
  10461. }
  10462. goto Board2;
  10463. }
  10464. }
  10465. if ((Move == "N" || Move == "n") && V14 != "N" && (N1 > 0 || N2 > 0))
  10466. {
  10467. cout << " That spot is already taken. \n";
  10468. cout << " ";
  10469. system("pause");
  10470. goto Board2;
  10471. }
  10472.  
  10473. if ((Move == "O" || Move == "o") && V15 == "O" && (N1 > 0 || N2 > 0))
  10474. {
  10475. if ( Val == "\x01")
  10476. {
  10477. V15 = "\x01";
  10478. Val = "\x02";
  10479. N1 = N1 - 1;
  10480. if (V14=="\x01" && V15 =="\x01" && V16 =="\x01")
  10481. {
  10482. Mill = 1;
  10483. }
  10484. goto Board2;
  10485. }
  10486. }
  10487. if ((Move == "O" || Move == "o") && V15 != "O" && (N1 > 0 || N2 > 0))
  10488. {
  10489. cout << " That spot is already taken. \n";
  10490. cout << " ";
  10491. system("pause");
  10492. goto Board2;
  10493. }
  10494.  
  10495. if ((Move == "P" || Move == "p") && V16 == "P" && (N1 > 0 || N2 > 0))
  10496. {
  10497. if ( Val == "\x01")
  10498. {
  10499. V16 = "\x01";
  10500. Val = "\x02";
  10501. N1 = N1 - 1;
  10502. if (V14=="\x01" && V15 =="\x01" && V16 =="\x01")
  10503. {
  10504. Mill = 1;
  10505. }
  10506. if (V10=="\x01" && V9 =="\x01" && V16 =="\x01")
  10507. {
  10508. Mill = 1;
  10509. }
  10510. goto Board2;
  10511. }
  10512. }
  10513. if ((Move == "P" || Move == "p") && V16 != "P" && (N1 > 0 || N2 > 0))
  10514. {
  10515. cout << " That spot is already taken. \n";
  10516. cout << " ";
  10517. system("pause");
  10518. goto Board2;
  10519. }
  10520.  
  10521. //Outer board move code
  10522. //Player move pieces A to b or h
  10523. if ((M2 == "A" || M2 == "a") && V1 != "A")
  10524. {
  10525. if ((M3 == "B" || M3 == "b") && V2 == "B")
  10526. {
  10527. if ( Val == "\x01" && V1 == "\x01")
  10528. {
  10529. V2 = "\x01";
  10530. V1 = "A";
  10531. Val = "\x02";
  10532. goto Board2;
  10533. }
  10534. if ( Val == "\x01" && V1 != "\x01")
  10535. {
  10536. cout << " Invalid move. \n";
  10537. cout << " ";
  10538. system("pause");
  10539. goto Board2;
  10540. }
  10541. }
  10542. if ((M3 == "B" || M3 == "b") && V2 != "B")
  10543. {
  10544. cout << " That spot is already taken. \n";
  10545. cout << " ";
  10546. system("pause");
  10547. goto Board2;
  10548. }
  10549. if ((M3 == "H" || M3 == "h") && V8 == "H")
  10550. {
  10551. if ( Val == "\x01" && V1 == "\x01")
  10552. {
  10553. V8 = "\x01";
  10554. V1 = "A";
  10555. Val = "\x02";
  10556. goto Board2;
  10557. }
  10558. if ( Val == "\x01" && V1 != "\x01")
  10559. {
  10560. cout << " Invalid move. \n";
  10561. cout << " ";
  10562. system("pause");
  10563. goto Board2;
  10564. }
  10565. }
  10566. if ((M3 == "H" || M3 == "h") && V8 != "H")
  10567. {
  10568. cout << " That spot is already taken. \n";
  10569. cout << " ";
  10570. system("pause");
  10571. goto Board2;
  10572. }
  10573. if ((M3 != "B" || M3 != "b") || (M3 != "H" || M3 !="h"))
  10574. {
  10575. cout << " Invalid move. \n";
  10576. cout << " ";
  10577. system("pause");
  10578. goto Board2;
  10579. }
  10580. }
  10581. if ((M2 == "A" || M2 =="a") && V1 == "A")
  10582. {
  10583. cout << " Invalid move. \n";
  10584. cout << " ";
  10585. system("pause");
  10586. goto Board2;
  10587. }
  10588. //Move from B to c a k
  10589. if ((M2 == "B" || M2 == "b") && V2 != "B")
  10590. {
  10591. if ((M3 == "C" || M3 == "c") && V3 == "C")
  10592. {
  10593. if ( Val == "\x01" && V2 == "\x01")
  10594. {
  10595. V3 = "\x01";
  10596. V2 = "B";
  10597. Val = "\x02";
  10598. if (V3=="\x01" && V4 =="\x01" && V5 =="\x01")
  10599. {
  10600. Mill = 1;
  10601. }
  10602. goto Board2;
  10603. }
  10604. if ( Val == "\x01" && V2 != "\x01")
  10605. {
  10606. cout << " Invalid move. \n";
  10607. cout << " ";
  10608. system("pause");
  10609. goto Board2;
  10610. }
  10611. }
  10612. if ((M3 == "C" || M3 == "c") && V3 != "C")
  10613. {
  10614. cout << " That spot is already taken. \n";
  10615. cout << " ";
  10616. system("pause");
  10617. goto Board2;
  10618. }
  10619. if ((M3 == "A" || M3 == "a") && V1 == "A")
  10620. {
  10621. if ( Val == "\x01" && V2 == "\x01")
  10622. {
  10623. V1 = "\x01";
  10624. V2 = "B";
  10625. Val = "\x02";
  10626. if (V1=="\x01" && V8 =="\x01" && V7 =="\x01")
  10627. {
  10628. Mill = 1;
  10629. }
  10630. goto Board2;
  10631. }
  10632. if ( Val == "\x01" && V2 != "\x01")
  10633. {
  10634. cout << " Invalid move. \n";
  10635. cout << " ";
  10636. system("pause");
  10637. goto Board2;
  10638. }
  10639. }
  10640. if ((M3 == "A" || M3 == "a") && V1 != "A")
  10641. {
  10642. cout << " That spot is already taken. \n";
  10643. cout << " ";
  10644. system("pause");
  10645. goto Board2;
  10646. }
  10647.  
  10648. if ((M3 == "K" || M3 == "k") && V11 == "K")
  10649. {
  10650. if ( Val == "\x01" && V2 == "\x01")
  10651. {
  10652. V11 = "\x01";
  10653. V2 = "B";
  10654. Val = "\x02";
  10655. if (V10=="\x01" && V11 =="\x01" && V12 =="\x01")
  10656. {
  10657. Mill = 1;
  10658. }
  10659. goto Board2;
  10660. }
  10661. if ( Val == "\x01" && V2 != "\x01")
  10662. {
  10663. cout << " Invalid move. \n";
  10664. cout << " ";
  10665. system("pause");
  10666. goto Board2;
  10667. }
  10668. }
  10669. if ((M3 == "K" || M3 == "k") && V11 != "K")
  10670. {
  10671. cout << " That spot is already taken. \n";
  10672. cout << " ";
  10673. system("pause");
  10674. goto Board2;
  10675. }
  10676. if ((M3 != "A" || M3 != "a") || (M3 != "C" || M3 !="c") || (M3 != "K" || M3 != "k"))
  10677. {
  10678. cout << " Invalid move. \n";
  10679. cout << " ";
  10680. system("pause");
  10681. goto Board2;
  10682. }
  10683. }
  10684. if ((M2 == "B" || M2 =="b") && V2 == "B")
  10685. {
  10686. cout << " Invalid move. \n";
  10687. cout << " ";
  10688. system("pause");
  10689. goto Board2;
  10690. }
  10691.  
  10692. //Move C to b d
  10693. if ((M2 == "C" || M2 == "c") && V3 != "C")
  10694. {
  10695. if ((M3 == "B" || M3 == "b") && V2 == "B")
  10696. {
  10697. if ( Val == "\x01" && V3 == "\x01")
  10698. {
  10699. V2 = "\x01";
  10700. V3 = "C";
  10701. Val = "\x02";
  10702. goto Board2;
  10703. }
  10704. if ( Val == "\x01" && V3 != "\x01")
  10705. {
  10706. cout << " Invalid move. \n";
  10707. cout << " ";
  10708. system("pause");
  10709. goto Board2;
  10710. }
  10711. }
  10712. if ((M3 == "C" || M3 == "c") && V3 != "C")
  10713. {
  10714. cout << " That spot is already taken. \n";
  10715. cout << " ";
  10716. system("pause");
  10717. goto Board2;
  10718. }
  10719. if ((M3 == "D" || M3 == "d") && V4 == "D")
  10720. {
  10721. if ( Val == "\x01" && V3 == "\x01")
  10722. {
  10723. V4 = "\x01";
  10724. V3 = "C";
  10725. Val = "\x02";
  10726. goto Board2;
  10727. }
  10728. if ( Val == "\x01" && V3 != "\x01")
  10729. {
  10730. cout << " Invalid move. \n";
  10731. cout << " ";
  10732. system("pause");
  10733. goto Board2;
  10734. }
  10735. }
  10736. if ((M3 == "D" || M3 == "d") && V4 != "D")
  10737. {
  10738. cout << " That spot is already taken. \n";
  10739. cout << " ";
  10740. system("pause");
  10741. goto Board2;
  10742. }
  10743.  
  10744. if ((M3 != "B" || M3 != "b") || (M3 != "D" || M3 !="d"))
  10745. {
  10746. cout << " Invalid move. \n";
  10747. cout << " ";
  10748. system("pause");
  10749. goto Board2;
  10750. }
  10751. }
  10752. if ((M2 == "C" || M2 =="c") && V3 == "C")
  10753. {
  10754. cout << " Invalid move. \n";
  10755. cout << " ";
  10756. system("pause");
  10757. goto Board2;
  10758. }
  10759.  
  10760. //Move D to c e m
  10761. if ((M2 == "D" || M2 == "d") && V4 != "D")
  10762. {
  10763. if ((M3 == "C" || M3 == "c") && V3 == "C")
  10764. {
  10765. if ( Val == "\x01" && V4 == "\x01")
  10766. {
  10767. V3 = "\x01";
  10768. V4 = "D";
  10769. Val = "\x02";
  10770. if (V1=="\x01" && V2 =="\x01" && V3 =="\x01")
  10771. {
  10772. Mill = 1;
  10773. }
  10774. goto Board2;
  10775. }
  10776. if ( Val == "\x01" && V4 != "\x01")
  10777. {
  10778. cout << " Invalid move. \n";
  10779. cout << " ";
  10780. system("pause");
  10781. goto Board2;
  10782. }
  10783. }
  10784. if ((M3 == "C" || M3 == "c") && V3 != "C")
  10785. {
  10786. cout << " That spot is already taken. \n";
  10787. cout << " ";
  10788. system("pause");
  10789. goto Board2;
  10790. }
  10791. if ((M3 == "E" || M3 == "e") && V5 == "E")
  10792. {
  10793. if ( Val == "\x01" && V4 == "\x01")
  10794. {
  10795. V5 = "\x01";
  10796. V4 = "D";
  10797. Val = "\x02";
  10798. if (V5=="\x01" && V6 =="\x01" && V7 =="\x01")
  10799. {
  10800. Mill = 1;
  10801. }
  10802. goto Board2;
  10803. }
  10804. if ( Val == "\x01" && V4 != "\x01")
  10805. {
  10806. cout << " Invalid move. \n";
  10807. cout << " ";
  10808. system("pause");
  10809. goto Board2;
  10810. }
  10811. }
  10812. if ((M3 == "E" || M3 == "e") && V5 != "E")
  10813. {
  10814. cout << " That spot is already taken. \n";
  10815. cout << " ";
  10816. system("pause");
  10817. goto Board2;
  10818. }
  10819.  
  10820. if ((M3 == "M" || M3 == "m") && V13 == "M")
  10821. {
  10822. if ( Val == "\x01" && V4 == "\x01")
  10823. {
  10824. V13 = "\x01";
  10825. V4 = "D";
  10826. Val = "\x02";
  10827. if (V12=="\x01" && V13 =="\x01" && V14 =="\x01")
  10828. {
  10829. Mill = 1;
  10830. }
  10831. goto Board2;
  10832. }
  10833. if ( Val == "\x01" && V4 != "\x01")
  10834. {
  10835. cout << " Invalid move. \n";
  10836. cout << " ";
  10837. system("pause");
  10838. goto Board2;
  10839. }
  10840. }
  10841. if ((M3 == "M" || M3 == "m") && V13 != "M")
  10842. {
  10843. cout << " That spot is already taken. \n";
  10844. cout << " ";
  10845. system("pause");
  10846. goto Board2;
  10847. }
  10848. if ((M3 != "C" || M3 != "c") || (M3 != "E" || M3 !="e") || (M3 != "M" || M3 != "m"))
  10849. {
  10850. cout << " Invalid move. \n";
  10851. cout << " ";
  10852. system("pause");
  10853. goto Board2;
  10854. }
  10855. }
  10856. if ((M2 == "D" || M2 =="d") && V4 == "D")
  10857. {
  10858. cout << " Invalid move. \n";
  10859. cout << " ";
  10860. system("pause");
  10861. goto Board2;
  10862. }
  10863.  
  10864. //Move E to d or f
  10865. if ((M2 == "E" || M2 == "e") && V5 != "E")
  10866. {
  10867. if ((M3 == "D" || M3 == "d") && V4 == "D")
  10868. {
  10869. if ( Val == "\x01" && V5 == "\x01")
  10870. {
  10871. V4 = "\x01";
  10872. V5 = "E";
  10873. Val = "\x02";
  10874. goto Board2;
  10875. }
  10876. if ( Val == "\x01" && V5 != "\x01")
  10877. {
  10878. cout << " Invalid move. \n";
  10879. cout << " ";
  10880. system("pause");
  10881. goto Board2;
  10882. }
  10883. }
  10884. if ((M3 == "D" || M3 == "d") && V4 != "D")
  10885. {
  10886. cout << " That spot is already taken. \n";
  10887. cout << " ";
  10888. system("pause");
  10889. goto Board2;
  10890. }
  10891. if ((M3 == "F" || M3 == "f") && V6 == "F")
  10892. {
  10893. if ( Val == "\x01" && V5 == "\x01")
  10894. {
  10895. V6 = "\x01";
  10896. V5 = "E";
  10897. Val = "\x02";
  10898. goto Board2;
  10899. }
  10900. if ( Val == "\x01" && V5 != "\x01")
  10901. {
  10902. cout << " Invalid move. \n";
  10903. cout << " ";
  10904. system("pause");
  10905. goto Board2;
  10906. }
  10907. }
  10908. if ((M3 == "F" || M3 == "f") && V6 != "F")
  10909. {
  10910. cout << " That spot is already taken. \n";
  10911. cout << " ";
  10912. system("pause");
  10913. goto Board2;
  10914. }
  10915. if ((M3 != "D" || M3 != "d") || (M3 != "F" || M3 !="f"))
  10916. {
  10917. cout << " Invalid move. \n";
  10918. cout << " ";
  10919. system("pause");
  10920. goto Board2;
  10921. }
  10922. }
  10923. if ((M2 == "E" || M2 =="e") && V5 == "E")
  10924. {
  10925. cout << " Invalid move. \n";
  10926. cout << " ";
  10927. system("pause");
  10928. goto Board2;
  10929. }
  10930.  
  10931. //move F to e o g
  10932. if ((M2 == "F" || M2 == "f") && V6 != "F")
  10933. {
  10934. if ((M3 == "E" || M3 == "e") && V5 == "E")
  10935. {
  10936. if ( Val == "\x01" && V6 == "\x01")
  10937. {
  10938. V5 = "\x01";
  10939. V6 = "F";
  10940. Val = "\x02";
  10941. if (V3=="\x01" && V4 =="\x01" && V5 =="\x01")
  10942. {
  10943. Mill = 1;
  10944. }
  10945. goto Board2;
  10946. }
  10947. if ( Val == "\x01" && V6 != "\x01")
  10948. {
  10949. cout << " Invalid move. \n";
  10950. cout << " ";
  10951. system("pause");
  10952. goto Board2;
  10953. }
  10954. }
  10955. if ((M3 == "E" || M3 == "e") && V5 != "E")
  10956. {
  10957. cout << " That spot is already taken. \n";
  10958. cout << " ";
  10959. system("pause");
  10960. goto Board2;
  10961. }
  10962. if ((M3 == "o" || M3 == "O") && V15 == "O")
  10963. {
  10964. if ( Val == "\x01" && V6 == "\x01")
  10965. {
  10966. V15 = "\x01";
  10967. V6 = "F";
  10968. Val = "\x02";
  10969. if (V14=="\x01" && V15 =="\x01" && V16 =="\x01")
  10970. {
  10971. Mill = 1;
  10972. }
  10973. goto Board2;
  10974. }
  10975. if ( Val == "\x01" && V6 != "\x01")
  10976. {
  10977. cout << " Invalid move. \n";
  10978. cout << " ";
  10979. system("pause");
  10980. goto Board2;
  10981. }
  10982. }
  10983. if ((M3 == "O" || M3 == "o") && V15 != "O")
  10984. {
  10985. cout << " That spot is already taken. \n";
  10986. cout << " ";
  10987. system("pause");
  10988. goto Board2;
  10989. }
  10990.  
  10991. if ((M3 == "G" || M3 == "g") && V7 == "G")
  10992. {
  10993. if ( Val == "\x01" && V6 == "\x01")
  10994. {
  10995. V7 = "\x01";
  10996. V6 = "F";
  10997. Val = "\x02";
  10998. if (V1=="\x01" && V8 =="\x01" && V7 =="\x01")
  10999. {
  11000. Mill = 1;
  11001. }
  11002. goto Board2;
  11003. }
  11004. if ( Val == "\x01" && V6 != "\x01")
  11005. {
  11006. cout << " Invalid move. \n";
  11007. cout << " ";
  11008. system("pause");
  11009. goto Board2;
  11010. }
  11011. }
  11012. if ((M3 == "G" || M3 == "g") && V7 != "G")
  11013. {
  11014. cout << " That spot is already taken. \n";
  11015. cout << " ";
  11016. system("pause");
  11017. goto Board2;
  11018. }
  11019. if ((M3 != "E" || M3 != "e") || (M3 != "O" || M3 !="o") || (M3 != "G" || M3 != "g"))
  11020. {
  11021. cout << " Invalid move. \n";
  11022. cout << " ";
  11023. system("pause");
  11024. goto Board2;
  11025. }
  11026. }
  11027. if ((M2 == "F" || M2 =="f") && V6 == "F")
  11028. {
  11029. cout << " Invalid move. \n";
  11030. cout << " ";
  11031. system("pause");
  11032. goto Board2;
  11033. }
  11034.  
  11035. //Move G to F H
  11036. if ((M2 == "G" || M2 == "g") && V7 != "G")
  11037. {
  11038. if ((M3 == "F" || M3 == "f") && V6 == "F")
  11039. {
  11040. if ( Val == "\x01" && V7 == "\x01")
  11041. {
  11042. V6 = "\x01";
  11043. V7 = "G";
  11044. Val = "\x02";
  11045. goto Board2;
  11046. }
  11047. if ( Val == "\x01" && V7 != "\x01")
  11048. {
  11049. cout << " Invalid move. \n";
  11050. cout << " ";
  11051. system("pause");
  11052. goto Board2;
  11053. }
  11054. }
  11055. if ((M3 == "F" || M3 == "f") && V6 != "F")
  11056. {
  11057. cout << " That spot is already taken. \n";
  11058. cout << " ";
  11059. system("pause");
  11060. goto Board2;
  11061. }
  11062. if ((M3 == "H" || M3 == "h") && V8 == "H")
  11063. {
  11064. if ( Val == "\x01" && V7 == "\x01")
  11065. {
  11066. V8 = "\x01";
  11067. V7 = "G";
  11068. Val = "\x02";
  11069. goto Board2;
  11070. }
  11071. if ( Val == "\x01" && V7 != "\x01")
  11072. {
  11073. cout << " Invalid move. \n";
  11074. cout << " ";
  11075. system("pause");
  11076. goto Board2;
  11077. }
  11078. }
  11079. if ((M3 == "H" || M3 == "h") && V8 != "H")
  11080. {
  11081. cout << " That spot is already taken. \n";
  11082. cout << " ";
  11083. system("pause");
  11084. goto Board2;
  11085. }
  11086. if ((M3 != "F" || M3 != "f") || (M3 != "H" || M3 !="h"))
  11087. {
  11088. cout << " Invalid move. \n";
  11089. cout << " ";
  11090. system("pause");
  11091. goto Board2;
  11092. }
  11093. }
  11094. if ((M2 == "G" || M2 =="g") && V7 == "G")
  11095. {
  11096. cout << " Invalid move. \n";
  11097. cout << " ";
  11098. system("pause");
  11099. goto Board2;
  11100. }
  11101.  
  11102. //Move H to a g i
  11103. if ((M2 == "H" || M2 == "h") && V8 != "H")
  11104. {
  11105. if ((M3 == "A" || M3 == "a") && V1 == "A")
  11106. {
  11107. if ( Val == "\x01" && V8 == "\x01")
  11108. {
  11109. V1 = "\x01";
  11110. V8 = "H";
  11111. Val = "\x02";
  11112. if (V1=="\x01" && V2 =="\x01" && V3 =="\x01")
  11113. {
  11114. Mill = 1;
  11115. }
  11116. goto Board2;
  11117. }
  11118. if ( Val == "\x01" && V8 != "\x01")
  11119. {
  11120. cout << " Invalid move. \n";
  11121. cout << " ";
  11122. system("pause");
  11123. goto Board2;
  11124. }
  11125. }
  11126. if ((M3 == "A" || M3 == "a") && V1 != "A")
  11127. {
  11128. cout << " That spot is already taken. \n";
  11129. cout << " ";
  11130. system("pause");
  11131. goto Board2;
  11132. }
  11133. if ((M3 == "g" || M3 == "G") && V7 == "G")
  11134. {
  11135. if ( Val == "\x01" && V8 == "\x01")
  11136. {
  11137. V7 = "\x01";
  11138. V8 = "H";
  11139. Val = "\x02";
  11140. if (V5=="\x01" && V6 =="\x01" && V7 =="\x01")
  11141. {
  11142. Mill = 1;
  11143. }
  11144. goto Board2;
  11145. }
  11146. if ( Val == "\x01" && V8 != "\x01")
  11147. {
  11148. cout << " Invalid move. \n";
  11149. cout << " ";
  11150. system("pause");
  11151. goto Board2;
  11152. }
  11153. }
  11154. if ((M3 == "G" || M3 == "g") && V7 != "G")
  11155. {
  11156. cout << " That spot is already taken. \n";
  11157. cout << " ";
  11158. system("pause");
  11159. goto Board2;
  11160. }
  11161. if ((M3 == "I" || M3 == "i") && V9 == "I")
  11162. {
  11163. if ( Val == "\x01" && V8 == "\x01")
  11164. {
  11165. V9 = "\x01";
  11166. V8 = "H";
  11167. Val = "\x02";
  11168. if (V10=="\x01" && V9 =="\x01" && V16 =="\x01")
  11169. {
  11170. Mill = 1;
  11171. }
  11172. goto Board2;
  11173. }
  11174. if ( Val == "\x01" && V8 != "\x01")
  11175. {
  11176. cout << " Invalid move. \n";
  11177. cout << " ";
  11178. system("pause");
  11179. goto Board2;
  11180. }
  11181. }
  11182. if ((M3 == "I" || M3 == "i") && V9 != "I")
  11183. {
  11184. cout << " That spot is already taken. \n";
  11185. cout << " ";
  11186. system("pause");
  11187. goto Board2;
  11188. }
  11189. if ((M3 != "A" || M3 != "a") || (M3 != "G" || M3 !="g") || (M3 != "I" || M3 != "i"))
  11190. {
  11191. cout << " Invalid move. \n";
  11192. cout << " ";
  11193. system("pause");
  11194. goto Board2;
  11195. }
  11196. }
  11197. if ((M2 == "H" || M2 =="h") && V8 == "H")
  11198. {
  11199. cout << " Invalid move. \n";
  11200. cout << " ";
  11201. system("pause");
  11202. goto Board2;
  11203. }
  11204.  
  11205. //Inner board move code
  11206. //move I to h j p
  11207. if ((M2 == "I" || M2 == "i") && V9 != "I")
  11208. {
  11209. if ((M3 == "H" || M3 == "h") && V8 == "H")
  11210. {
  11211. if ( Val == "\x01" && V9 == "\x01")
  11212. {
  11213. V8 = "\x01";
  11214. V9 = "I";
  11215. Val = "\x02";
  11216. if (V1=="\x01" && V8 =="\x01" && V7 =="\x01")
  11217. {
  11218. Mill = 1;
  11219. }
  11220. goto Board2;
  11221. }
  11222. if ( Val == "\x01" && V9 != "\x01")
  11223. {
  11224. cout << " Invalid move. \n";
  11225. cout << " ";
  11226. system("pause");
  11227. goto Board2;
  11228. }
  11229. }
  11230. if ((M3 == "H" || M3 == "h") && V8 != "H")
  11231. {
  11232. cout << " That spot is already taken. \n";
  11233. cout << " ";
  11234. system("pause");
  11235. goto Board2;
  11236. }
  11237. if ((M3 == "J" || M3 == "j") && V10 == "J")
  11238. {
  11239. if ( Val == "\x01" && V9 == "\x01")
  11240. {
  11241. V10 = "\x01";
  11242. V9 = "I";
  11243. Val = "\x02";
  11244. if (V10=="\x01" && V11 =="\x01" && V12 =="\x01")
  11245. {
  11246. Mill = 1;
  11247. }
  11248. goto Board2;
  11249. }
  11250. if ( Val == "\x01" && V9 != "\x01")
  11251. {
  11252. cout << " Invalid move. \n";
  11253. cout << " ";
  11254. system("pause");
  11255. goto Board2;
  11256. }
  11257. }
  11258. if ((M3 == "J" || M3 == "j") && V10 != "J")
  11259. {
  11260. cout << " That spot is already taken. \n";
  11261. cout << " ";
  11262. system("pause");
  11263. goto Board2;
  11264. }
  11265.  
  11266. if ((M3 == "P" || M3 == "p") && V16 == "P")
  11267. {
  11268. if ( Val == "\x01" && V9 == "\x01")
  11269. {
  11270. V16 = "\x01";
  11271. V9 = "I";
  11272. Val = "\x02";
  11273. if (V14=="\x01" && V15 =="\x01" && V16 =="\x01")
  11274. {
  11275. Mill = 1;
  11276. }
  11277. goto Board2;
  11278. }
  11279. if ( Val == "\x01" && V9 != "\x01")
  11280. {
  11281. cout << " Invalid move. \n";
  11282. cout << " ";
  11283. system("pause");
  11284. goto Board2;
  11285. }
  11286. }
  11287. if ((M3 == "P" || M3 == "p") && V16 != "P")
  11288. {
  11289. cout << " That spot is already taken. \n";
  11290. cout << " ";
  11291. system("pause");
  11292. goto Board2;
  11293. }
  11294. if ((M3 != "H" || M3 != "h") || (M3 != "J" || M3 !="j") || (M3 != "P" || M3 != "p"))
  11295. {
  11296. cout << " Invalid move. \n";
  11297. cout << " ";
  11298. system("pause");
  11299. goto Board2;
  11300. }
  11301. }
  11302. if ((M2 == "I" || M2 =="i") && V9 == "I")
  11303. {
  11304. cout << " Invalid move. \n";
  11305. cout << " ";
  11306. system("pause");
  11307. goto Board2;
  11308. }
  11309.  
  11310. //MOVE J TO I K
  11311. if ((M2 == "J" || M2 == "j") && V10 != "J")
  11312. {
  11313. if ((M3 == "I" || M3 == "i") && V9 == "I")
  11314. {
  11315. if ( Val == "\x01" && V10 == "\x01")
  11316. {
  11317. V9 = "\x01";
  11318. V10 = "J";
  11319. Val = "\x02";
  11320. goto Board2;
  11321. }
  11322. if ( Val == "\x01" && V10 != "\x01")
  11323. {
  11324. cout << " Invalid move. \n";
  11325. cout << " ";
  11326. system("pause");
  11327. goto Board2;
  11328. }
  11329. }
  11330. if ((M3 == "I" || M3 == "i") && V9 != "I")
  11331. {
  11332. cout << " That spot is already taken. \n";
  11333. cout << " ";
  11334. system("pause");
  11335. goto Board2;
  11336. }
  11337. if ((M3 == "K" || M3 == "k") && V11 == "K")
  11338. {
  11339. if ( Val == "\x01" && V10 == "\x01")
  11340. {
  11341. V11 = "\x01";
  11342. V10 = "J";
  11343. Val = "\x02";
  11344. goto Board2;
  11345. }
  11346. if ( Val == "\x01" && V10 != "\x01")
  11347. {
  11348. cout << " Invalid move. \n";
  11349. cout << " ";
  11350. system("pause");
  11351. goto Board2;
  11352. }
  11353. }
  11354. if ((M3 == "K" || M3 == "k") && V11 != "K")
  11355. {
  11356. cout << " That spot is already taken. \n";
  11357. cout << " ";
  11358. system("pause");
  11359. goto Board2;
  11360. }
  11361. if ((M3 != "I" || M3 != "i") || (M3 != "K" || M3 !="k"))
  11362. {
  11363. cout << " Invalid move. \n";
  11364. cout << " ";
  11365. system("pause");
  11366. goto Board2;
  11367. }
  11368. }
  11369. if ((M2 == "J" || M2 =="j") && V10 == "J")
  11370. {
  11371. cout << " Invalid move. \n";
  11372. cout << " ";
  11373. system("pause");
  11374. goto Board2;
  11375. }
  11376.  
  11377. //MOVE K TO j l b
  11378. if ((M2 == "K" || M2 == "k") && V11 != "K")
  11379. {
  11380. if ((M3 == "L" || M3 == "l") && V12 == "L")
  11381. {
  11382. if ( Val == "\x01" && V11 == "\x01")
  11383. {
  11384. V12 = "\x01";
  11385. V11 = "K";
  11386. Val = "\x02";
  11387. if (V12=="\x01" && V13 =="\x01" && V14 =="\x01")
  11388. {
  11389. Mill = 1;
  11390. }
  11391. goto Board2;
  11392. }
  11393. if ( Val == "\x01" && V11 != "\x01")
  11394. {
  11395. cout << " Invalid move. \n";
  11396. cout << " ";
  11397. system("pause");
  11398. goto Board2;
  11399. }
  11400. }
  11401. if ((M3 == "L" || M3 == "l") && V12 != "L")
  11402. {
  11403. cout << " That spot is already taken. \n";
  11404. cout << " ";
  11405. system("pause");
  11406. goto Board2;
  11407. }
  11408. if ((M3 == "J" || M3 == "j") && V10 == "J")
  11409. {
  11410. if ( Val == "\x01" && V11 == "\x01")
  11411. {
  11412. V10 = "\x01";
  11413. V11 = "K";
  11414. Val = "\x02";
  11415. if (V10=="\x01" && V9 =="\x01" && V16 =="\x01")
  11416. {
  11417. Mill = 1;
  11418. }
  11419. goto Board2;
  11420. }
  11421. if ( Val == "\x01" && V11 != "\x01")
  11422. {
  11423. cout << " Invalid move. \n";
  11424. cout << " ";
  11425. system("pause");
  11426. goto Board2;
  11427. }
  11428. }
  11429. if ((M3 == "J" || M3 == "j") && V10 != "J")
  11430. {
  11431. cout << " That spot is already taken. \n";
  11432. cout << " ";
  11433. system("pause");
  11434. goto Board2;
  11435. }
  11436.  
  11437. if ((M3 == "B" || M3 == "b") && V2 == "B")
  11438. {
  11439. if ( Val == "\x01" && V11 == "\x01")
  11440. {
  11441. V2 = "\x01";
  11442. V11 = "K";
  11443. Val = "\x02";
  11444. if (V1=="\x01" && V2 =="\x01" && V3 =="\x01")
  11445. {
  11446. Mill = 1;
  11447. }
  11448. goto Board2;
  11449. }
  11450. if ( Val == "\x01" && V11 != "\x01")
  11451. {
  11452. cout << " Invalid move. \n";
  11453. cout << " ";
  11454. system("pause");
  11455. goto Board2;
  11456. }
  11457. }
  11458. if ((M3 == "B" || M3 == "b") && V2 != "B")
  11459. {
  11460. cout << " That spot is already taken. \n";
  11461. cout << " ";
  11462. system("pause");
  11463. goto Board2;
  11464. }
  11465. if ((M3 != "L" || M3 != "l") || (M3 != "J" || M3 !="j") || (M3 != "B" || M3 != "b"))
  11466. {
  11467. cout << " Invalid move. \n";
  11468. cout << " ";
  11469. system("pause");
  11470. goto Board2;
  11471. }
  11472. }
  11473. if ((M2 == "K" || M2 =="k") && V11 == "K")
  11474. {
  11475. cout << " Invalid move. \n";
  11476. cout << " ";
  11477. system("pause");
  11478. goto Board2;
  11479. }
  11480.  
  11481. //MOVE L TO k m
  11482. if ((M2 == "L" || M2 == "l") && V12 != "L")
  11483. {
  11484. if ((M3 == "M" || M3 == "m") && V13 == "M")
  11485. {
  11486. if ( Val == "\x01" && V12 == "\x01")
  11487. {
  11488. V13 = "\x01";
  11489. V12 = "L";
  11490. Val = "\x02";
  11491. goto Board2;
  11492. }
  11493. if ( Val == "\x01" && V12 != "\x01")
  11494. {
  11495. cout << " Invalid move. \n";
  11496. cout << " ";
  11497. system("pause");
  11498. goto Board2;
  11499. }
  11500. }
  11501. if ((M3 == "M" || M3 == "m") && V13 != "M")
  11502. {
  11503. cout << " That spot is already taken. \n";
  11504. cout << " ";
  11505. system("pause");
  11506. goto Board2;
  11507. }
  11508. if ((M3 == "K" || M3 == "k") && V11 == "K")
  11509. {
  11510. if ( Val == "\x01" && V12 == "\x01")
  11511. {
  11512. V11 = "\x01";
  11513. V12 = "L";
  11514. Val = "\x02";
  11515. goto Board2;
  11516. }
  11517. if ( Val == "\x01" && V12 != "\x01")
  11518. {
  11519. cout << " Invalid move. \n";
  11520. cout << " ";
  11521. system("pause");
  11522. goto Board2;
  11523. }
  11524. }
  11525. if ((M3 == "K" || M3 == "k") && V11 != "K")
  11526. {
  11527. cout << " That spot is already taken. \n";
  11528. cout << " ";
  11529. system("pause");
  11530. goto Board2;
  11531. }
  11532. if ((M3 != "M" || M3 != "m") || (M3 != "K" || M3 !="k"))
  11533. {
  11534. cout << " Invalid move. \n";
  11535. cout << " ";
  11536. system("pause");
  11537. goto Board2;
  11538. }
  11539. }
  11540. if ((M2 == "L" || M2 =="l") && V12 == "L")
  11541. {
  11542. cout << " Invalid move. \n";
  11543. cout << " ";
  11544. system("pause");
  11545. goto Board2;
  11546. }
  11547.  
  11548. //MOVE M TO l d n
  11549. if ((M2 == "M" || M2 == "m") && V13 != "M")
  11550. {
  11551. if ((M3 == "L" || M3 == "l") && V12 == "L")
  11552. {
  11553. if ( Val == "\x01" && V13 == "\x01")
  11554. {
  11555. V12 = "\x01";
  11556. V13 = "M";
  11557. Val = "\x02";
  11558. if (V10=="\x01" && V11 =="\x01" && V12 =="\x01")
  11559. {
  11560. Mill = 1;
  11561. }
  11562. goto Board2;
  11563. }
  11564. if ( Val == "\x01" && V13 != "\x01")
  11565. {
  11566. cout << " Invalid move. \n";
  11567. cout << " ";
  11568. system("pause");
  11569. goto Board2;
  11570. }
  11571. }
  11572. if ((M3 == "L" || M3 == "l") && V12 != "L")
  11573. {
  11574. cout << " That spot is already taken. \n";
  11575. cout << " ";
  11576. system("pause");
  11577. goto Board2;
  11578. }
  11579. if ((M3 == "D" || M3 == "d") && V4 == "D")
  11580. {
  11581. if ( Val == "\x01" && V13 == "\x01")
  11582. {
  11583. V4 = "\x01";
  11584. V13 = "M";
  11585. Val = "\x02";
  11586. if (V3=="\x01" && V4 =="\x01" && V5 =="\x01")
  11587. {
  11588. Mill = 1;
  11589. }
  11590. goto Board2;
  11591. }
  11592. if ( Val == "\x01" && V13 != "\x01")
  11593. {
  11594. cout << " Invalid move. \n";
  11595. cout << " ";
  11596. system("pause");
  11597. goto Board2;
  11598. }
  11599. }
  11600. if ((M3 == "D" || M3 == "d") && V4 != "D")
  11601. {
  11602. cout << " That spot is already taken. \n";
  11603. cout << " ";
  11604. system("pause");
  11605. goto Board2;
  11606. }
  11607.  
  11608. if ((M3 == "N" || M3 == "n") && V14 == "N")
  11609. {
  11610. if ( Val == "\x01" && V13 == "\x01")
  11611. {
  11612. V14 = "\x01";
  11613. V13 = "M";
  11614. Val = "\x02";
  11615. if (V14=="\x01" && V15 =="\x01" && V16 =="\x01")
  11616. {
  11617. Mill = 1;
  11618. }
  11619. goto Board2;
  11620. }
  11621. if ( Val == "\x01" && V13 != "\x01")
  11622. {
  11623. cout << " Invalid move. \n";
  11624. cout << " ";
  11625. system("pause");
  11626. goto Board2;
  11627. }
  11628. }
  11629. if ((M3 == "N" || M3 == "n") && V14 != "N")
  11630. {
  11631. cout << " That spot is already taken. \n";
  11632. cout << " ";
  11633. system("pause");
  11634. goto Board2;
  11635. }
  11636. if ((M3 != "L" || M3 != "l") || (M3 != "D" || M3 !="d") || (M3 != "N" || M3 != "n"))
  11637. {
  11638. cout << " Invalid move. \n";
  11639. cout << " ";
  11640. system("pause");
  11641. goto Board2;
  11642. }
  11643. }
  11644. if ((M2 == "M" || M2 =="m") && V13 == "M")
  11645. {
  11646. cout << " Invalid move. \n";
  11647. cout << " ";
  11648. system("pause");
  11649. goto Board2;
  11650. }
  11651.  
  11652. //MOVE N TO m o
  11653. if ((M2 == "N" || M2 == "n") && V14 != "N")
  11654. {
  11655. if ((M3 == "M" || M3 == "m") && V13 == "M")
  11656. {
  11657. if ( Val == "\x01" && V14 == "\x01")
  11658. {
  11659. V13 = "\x01";
  11660. V14 = "N";
  11661. Val = "\x02";
  11662. goto Board2;
  11663. }
  11664. if ( Val == "\x01" && V14 != "\x01")
  11665. {
  11666. cout << " Invalid move. \n";
  11667. cout << " ";
  11668. system("pause");
  11669. goto Board2;
  11670. }
  11671. }
  11672. if ((M3 == "M" || M3 == "m") && V13 != "M")
  11673. {
  11674. cout << " That spot is already taken. \n";
  11675. cout << " ";
  11676. system("pause");
  11677. goto Board2;
  11678. }
  11679. if ((M3 == "O" || M3 == "o") && V15 == "O")
  11680. {
  11681. if ( Val == "\x01" && V14 == "\x01")
  11682. {
  11683. V15 = "\x01";
  11684. V14 = "N";
  11685. Val = "\x02";
  11686. goto Board2;
  11687. }
  11688. if ( Val == "\x01" && V14 != "\x01")
  11689. {
  11690. cout << " Invalid move. \n";
  11691. cout << " ";
  11692. system("pause");
  11693. goto Board2;
  11694. }
  11695. }
  11696. if ((M3 == "O" || M3 == "o") && V15 != "O")
  11697. {
  11698. cout << " That spot is already taken. \n";
  11699. cout << " ";
  11700. system("pause");
  11701. goto Board2;
  11702. }
  11703. if ((M3 != "M" || M3 != "m") || (M3 != "O" || M3 !="o"))
  11704. {
  11705. cout << " Invalid move. \n";
  11706. cout << " ";
  11707. system("pause");
  11708. goto Board2;
  11709. }
  11710. }
  11711. if ((M2 == "N" || M2 =="n") && V14 == "N")
  11712. {
  11713. cout << " Invalid move. \n";
  11714. cout << " ";
  11715. system("pause");
  11716. goto Board2;
  11717. }
  11718.  
  11719. //MOE O TO n f p
  11720. if ((M2 == "O" || M2 == "o") && V15 != "O")
  11721. {
  11722. if ((M3 == "F" || M3 == "f") && V6 == "F")
  11723. {
  11724. if ( Val == "\x01" && V15 == "\x01")
  11725. {
  11726. V6 = "\x01";
  11727. V15 = "O";
  11728. Val = "\x02";
  11729. if (V5=="\x01" && V6 =="\x01" && V7 =="\x01")
  11730. {
  11731. Mill = 1;
  11732. }
  11733. goto Board2;
  11734. }
  11735. if ( Val == "\x01" && V15 != "\x01")
  11736. {
  11737. cout << " Invalid move. \n";
  11738. cout << " ";
  11739. system("pause");
  11740. goto Board2;
  11741. }
  11742. }
  11743. if ((M3 == "F" || M3 == "f") && V6 != "F")
  11744. {
  11745. cout << " That spot is already taken. \n";
  11746. cout << " ";
  11747. system("pause");
  11748. goto Board2;
  11749. }
  11750. if ((M3 == "P" || M3 == "p") && V16 == "P")
  11751. {
  11752. if ( Val == "\x01" && V15 == "\x01")
  11753. {
  11754. V16 = "\x01";
  11755. V15 = "O";
  11756. Val = "\x02";
  11757. if (V10=="\x01" && V9 =="\x01" && V16 =="\x01")
  11758. {
  11759. Mill = 1;
  11760. }
  11761. goto Board2;
  11762. }
  11763. if ( Val == "\x01" && V15 != "\x01")
  11764. {
  11765. cout << " Invalid move. \n";
  11766. cout << " ";
  11767. system("pause");
  11768. goto Board2;
  11769. }
  11770. }
  11771. if ((M3 == "P" || M3 == "p") && V16 != "P")
  11772. {
  11773. cout << " That spot is already taken. \n";
  11774. cout << " ";
  11775. system("pause");
  11776. goto Board2;
  11777. }
  11778.  
  11779. if ((M3 == "N" || M3 == "n") && V14 == "N")
  11780. {
  11781. if ( Val == "\x01" && V15 == "\x01")
  11782. {
  11783. V14 = "\x01";
  11784. V15 = "O";
  11785. Val = "\x02";
  11786. if (V12=="\x01" && V13 =="\x01" && V14 =="\x01")
  11787. {
  11788. Mill = 1;
  11789. }
  11790. goto Board2;
  11791. }
  11792. if ( Val == "\x01" && V15 != "\x01")
  11793. {
  11794. cout << " Invalid move. \n";
  11795. cout << " ";
  11796. system("pause");
  11797. goto Board2;
  11798. }
  11799. }
  11800. if ((M3 == "N" || M3 == "n") && V14 != "N")
  11801. {
  11802. cout << " That spot is already taken. \n";
  11803. cout << " ";
  11804. system("pause");
  11805. goto Board2;
  11806. }
  11807. if ((M3 != "F" || M3 != "f") || (M3 != "P" || M3 !="p") || (M3 != "N" || M3 != "n"))
  11808. {
  11809. cout << " Invalid move. \n";
  11810. cout << " ";
  11811. system("pause");
  11812. goto Board2;
  11813. }
  11814. }
  11815. if ((M2 == "O" || M2 =="o") && V15 == "O")
  11816. {
  11817. cout << " Invalid move. \n";
  11818. cout << " ";
  11819. system("pause");
  11820. goto Board2;
  11821. }
  11822.  
  11823. //MOVE P to o i
  11824. if ((M2 == "P" || M2 == "p") && V16 != "P")
  11825. {
  11826. if ((M3 == "I" || M3 == "i") && V9 == "I")
  11827. {
  11828. if ( Val == "\x01" && V16 == "\x01")
  11829. {
  11830. V9 = "\x01";
  11831. V16 = "P";
  11832. Val = "\x02";
  11833. goto Board2;
  11834. }
  11835. if ( Val == "\x01" && V16 != "\x01")
  11836. {
  11837. cout << " Invalid move. \n";
  11838. cout << " ";
  11839. system("pause");
  11840. goto Board2;
  11841. }
  11842. }
  11843. if ((M3 == "M" || M3 == "m") && V13 != "M")
  11844. {
  11845. cout << " That spot is already taken. \n";
  11846. cout << " ";
  11847. system("pause");
  11848. goto Board2;
  11849. }
  11850. if ((M3 == "O" || M3 == "o") && V15 == "O")
  11851. {
  11852. if ( Val == "\x01" && V16 == "\x01")
  11853. {
  11854. V15 = "\x01";
  11855. V16 = "P";
  11856. Val = "\x02";
  11857. goto Board2;
  11858. }
  11859. if ( Val == "\x01" && V16 != "\x01")
  11860. {
  11861. cout << " Invalid move. \n";
  11862. cout << " ";
  11863. system("pause");
  11864. goto Board2;
  11865. }
  11866. }
  11867. if ((M3 == "O" || M3 == "o") && V15 != "O")
  11868. {
  11869. cout << " That spot is already taken. \n";
  11870. cout << " ";
  11871. system("pause");
  11872. goto Board2;
  11873. }
  11874. if ((M3 != "I" || M3 != "i") || (M3 != "O" || M3 !="o"))
  11875. {
  11876. cout << " Invalid move. \n";
  11877. cout << " ";
  11878. system("pause");
  11879. goto Board2;
  11880. }
  11881. }
  11882. if ((M2 == "P" || M2 =="p") && V16 == "P")
  11883. {
  11884. cout << " Invalid move. \n";
  11885. cout << " ";
  11886. system("pause");
  11887. goto Board2;
  11888. }
  11889. }
  11890. if (Num1 == 3) //Instructions
  11891. {
  11892. cout << " \n";
  11893. cout << " \n";
  11894. cout << "Created by [redacted] \n";
  11895. cout << " \n";
  11896. cout << "How to play Six-Men's Morris: \n";
  11897. cout << "Each player has 6 pieces to place on the board. \n";
  11898. cout << "They take turns either placing a piece on the board or moving one on the board. You can only move a piece after you have placed all of your pieces.\n";
  11899. cout << "Pieces can be placed either where the lines intersect or at corners where the \n";
  11900. cout << "letters (A - P) are. \n";
  11901. cout << "To capture one of the opponent's pieces, the player must have 3 pieces in \n";
  11902. cout << "a row, which is called a mill, and then choose a piece to take.\n";
  11903. cout << "When a player has less than 3 pieces left then the game is over and that player has lost.\n";
  11904. cout << " \n";
  11905. system("pause");
  11906. system("cls");
  11907. goto Start;
  11908. }
  11909. if (Num1 >= 4) //Exit
  11910. {
  11911. system("cls");
  11912. return 0;
  11913. }
  11914.  
  11915. return 0;
  11916. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement