From fa20be28dd6b028af7d4a37e102909d07bc7757c Mon Sep 17 00:00:00 2001
From: Scott Wong <scottmw@student.unimelb.edu.au>
Date: Wed, 31 Mar 2021 19:12:23 +1100
Subject: [PATCH] removing debug code

---
 search/1.json                                 |  27 ++++++++++++++++++
 search/__pycache__/main.cpython-36.pyc        | Bin 2005 -> 1955 bytes
 .../search_algorithm.cpython-36.pyc           | Bin 9585 -> 9504 bytes
 search/main.py                                |   2 --
 search/search_algorithm.py                    |   5 ----
 5 files changed, 27 insertions(+), 7 deletions(-)
 create mode 100644 search/1.json

diff --git a/search/1.json b/search/1.json
new file mode 100644
index 0000000..7863e69
--- /dev/null
+++ b/search/1.json
@@ -0,0 +1,27 @@
+{
+  "upper": [
+    [
+      "r",
+      2,
+      -4
+    ],
+    [
+      "p",
+      2,
+      -3
+    ],
+    [
+      "p",
+      3,
+      -4
+    ]
+  ],
+  "lower": [
+    [
+      "s",
+      4,
+      0
+    ]
+  ],
+  "block": []
+}
\ No newline at end of file
diff --git a/search/__pycache__/main.cpython-36.pyc b/search/__pycache__/main.cpython-36.pyc
index 82114bf939f6f3661847c6b6f18d45656d42e65e..8ceea90737b37cb74950aaeec327abb444faf268 100644
GIT binary patch
delta 98
zcmcc0znGuPn3tF9pk7MCQ<;riHjIoDCc871i&XHH@Dw$b@HR6rG8C4DGt@9-@lAff
z=*GxDS)D0s@<yf(2?+)U1_ov(Mgc|%Mm|P9Mgb-cCN4%Erp=+u=b0ImCabcqXA}Vd
D-We6Z

delta 128
zcmZ3?f0duhn3tE!ktaEUUv?vx4I|^c$?lBhN+mqa42%pVyd`|ijEoEwd?oxv6G{X?
zVudZ?3^fc{f|D;Xx-kk(mSoD3=gLjYPK{5>Pb^A_;w~u4%qxL%SixeGo0vKoWhV15
WOEPgVZdPVK&&;SY`7_&kMlk?l@*^t%

diff --git a/search/__pycache__/search_algorithm.cpython-36.pyc b/search/__pycache__/search_algorithm.cpython-36.pyc
index 8b0b45f5d0ec70481f3df1dc34911ee8c1453abb..1e49e161785897a28b5b839f252aeb0c023b46b6 100644
GIT binary patch
delta 336
zcmez9wZMzZn3tDpvtCNVAIptgl9F7k3=9m+3=9m#36pgtdn7N_FuE|ro~mUkVXkFP
zVX0-Q*i*wYfw4Gj@+C>{$)-|jjB=A>q_mZJIv8r0BpGU$B^hd%nwc0GQrK!)3g?6~
z6!wKPq_77wXmV^`CB?+V65^-HJ9)c|&txvyL`IXzIkH+J%wkMJj9iQYi~`I;j732V
z3=GK(lNq^07%e6rlr^8sCU;nvwMdSEfuYEUfq~%`OG#-_UQy8G&vF6cVT=q6#XJlQ
z3=HfnAS0MK7&#b=LN~|B-(X}7VPIfLn{2IU%owscUvU$oQ7{7oLlk#GQD$CAd~tbZ
zUb-ezQ8>ul2oNCwCnQ0v00stz-pRqrt&G8oZz?m2g4|UU3X%btTLh9Wl9=2mB0QN<
MHJjCvLx4ja0Ox>9ssI20

delta 396
zcmZ4B_0fyVn3tDJjw?A~meocsNl7j?1_lOZ1_p-Wipjc?J(90#7+n}*AJsCIFxN7t
zu+*|tT&ZE1z*w9&`I4l!I8O;{4U;583R?#Qh^}FlWN2n)WSA@?rOs$J*+oiQnHM2b
z!_>^g$dJNb%ThQeoT0EUoFRoHm_d_s^CT%IChjU$1%;A)g%CeYzR5FWeAsWX78GUX
zl}vsjlgMZ`*-chUkX3?Fj7f-*i&214fLVyKD0p(ctR$n`<e9SOTqUd}Y|V^}3?=N7
z&&VFv;wX}1U|=ZnVPIgm#ZppQlvflC;wypp++cI#lkyXbQi^0JFOv(9j$~wDC>CH~
zU|?Wp0h!Ol!N|eL#>l}~6uy~P{stp!7y|=C_T*Oz#*AT`<rFtDGKNgPs3a^G2{JSa
zL`c91Nf0Z5fq`MtWG3ZS#*oDw%8a65+rvRJAd`wf(nS)J8%2aCZ&1l*wc!xrPzM0b
C!C9{W

diff --git a/search/main.py b/search/main.py
index 76bc319..74a595e 100644
--- a/search/main.py
+++ b/search/main.py
@@ -26,8 +26,6 @@ def main():
     for piece in upperPiecesDict:
         find_target(piece)
     # keep moving until all the piece met its target
-    make_board()
-    print_board(board)
     while targetsDict:
         take_turn()
     file.close()
diff --git a/search/search_algorithm.py b/search/search_algorithm.py
index 0bd0dda..fd3ccc6 100644
--- a/search/search_algorithm.py
+++ b/search/search_algorithm.py
@@ -328,9 +328,6 @@ def perform_optimal_combination(move_list: dict):
                 continue
 
             # Found a move that does not cause collision
-
-            # This is print section
-            print(upperPiecesDict[piece], "  to ", move_list[piece][index])
             print_move(upperPiecesDict[piece], move_list[piece][index])
 
             if upperPiecesDict[piece] in board.keys():
@@ -355,8 +352,6 @@ def take_turn():
     global turn
     turn += 1
     perform_optimal_combination(possible_actions)
-    make_board()
-    print_board(board)
     update_target_dictionary()
 
 
-- 
GitLab