aboutsummaryrefslogtreecommitdiffstats
path: root/solver.py
diff options
context:
space:
mode:
Diffstat (limited to 'solver.py')
-rwxr-xr-xsolver.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/solver.py b/solver.py
index 7a5ce13..b75b735 100755
--- a/solver.py
+++ b/solver.py
@@ -9,7 +9,7 @@ Usage: solver.py -h|--help
Options:
-h, --help Display this help message
- -P Display solution without parents
+ -p Display solution with parents [DEFAULT is without parents]
'''
import copy
@@ -512,10 +512,10 @@ def main():
grid.update_score()
if grid.score >= target_score:
print("="*80)
- if args['-P']:
- print(grid)
- else:
+ if args['-p']:
print(repr_grid_with_parents(grid))
+ else:
+ print(grid)