aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvg <vgm+dev@devys.org>2020-05-20 01:25:33 +0200
committervg <vgm+dev@devys.org>2020-05-20 01:25:33 +0200
commit4e959caf03d749f5a5908e074b02cd9cf52606cc (patch)
treef762fa9f872536586d04f245e71a571ee2b6cce7
parentd24d78848bd0ed13c1f771dbd5ad5e85e573f09e (diff)
downloadkana_quest_solver-4e959caf03d749f5a5908e074b02cd9cf52606cc.tar.gz
kana_quest_solver-4e959caf03d749f5a5908e074b02cd9cf52606cc.tar.bz2
kana_quest_solver-4e959caf03d749f5a5908e074b02cd9cf52606cc.zip
comment unused sections
-rwxr-xr-xsolver.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/solver.py b/solver.py
index 3663b75..8735f79 100755
--- a/solver.py
+++ b/solver.py
@@ -14,11 +14,11 @@ Options:
--print Display only the original (unresolved) grid
'''
-import copy
+#import copy
import os
import pickle
import time
-import zlib
+#import zlib
import docopt
import yaml
@@ -448,14 +448,14 @@ def repr_grid_with_parents(grid):
return '\n'.join(reversed(items))
-def print_score_over(node, target_score):
- node.grid.update_score()
- if node.grid.score >= target_score:
- print("="*80)
- print(node_repr_with_parents(node))
- return
- for child in node.children:
- print_score_over(child, target_score)
+#def print_score_over(node, target_score):
+# node.grid.update_score()
+# if node.grid.score >= target_score:
+# print("="*80)
+# print(node_repr_with_parents(node))
+# return
+# for child in node.children:
+# print_score_over(child, target_score)
def main():