From 4e959caf03d749f5a5908e074b02cd9cf52606cc Mon Sep 17 00:00:00 2001 From: vg Date: Wed, 20 May 2020 01:25:33 +0200 Subject: comment unused sections --- solver.py | 20 ++++++++++---------- 1 file 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(): -- cgit v1.2.3