From 84f94c69dc3f44f110766ffb3dc95f4a00d2dbde Mon Sep 17 00:00:00 2001 From: vg Date: Sun, 10 May 2020 18:37:27 +0200 Subject: add --print option to show only starting grid --- solver.py | 4 ++++ 1 file changed, 4 insertions(+) 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 = {} -- cgit v1.2.3