aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvg <vgm+dev@devys.org>2020-05-10 18:37:27 +0200
committervg <vgm+dev@devys.org>2020-05-10 18:37:27 +0200
commit84f94c69dc3f44f110766ffb3dc95f4a00d2dbde (patch)
tree3a30116b27fc2be2beab4f531d2888bf22fb5b9d
parente46b56ad1f3d384171b92e74a8e57deb71569ef1 (diff)
downloadkana_quest_solver-84f94c69dc3f44f110766ffb3dc95f4a00d2dbde.tar.gz
kana_quest_solver-84f94c69dc3f44f110766ffb3dc95f4a00d2dbde.tar.bz2
kana_quest_solver-84f94c69dc3f44f110766ffb3dc95f4a00d2dbde.zip
add --print option to show only starting grid
-rwxr-xr-xsolver.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/solver.py b/solver.py
index 87273a9..b64e863 100755
--- a/solver.py
+++ b/solver.py
@@ -10,6 +10,7 @@ Usage: solver.py -h|--help
Options:
-h, --help Display this help message
-p Display solution with parents [DEFAULT is without parents]
+ --print Display only the original (unresolved) grid
'''
import copy
@@ -366,6 +367,9 @@ def main():
print('Initial grid:')
print(kanagrid)
+ if args['--print']:
+ return
+
del input_dict
grids = {}