diff options
-rw-r--r-- | kana_quest_level/template_level_X.X.yaml (renamed from kana_quest_level/level_template.yaml) | 0 | ||||
-rw-r--r-- | readme.rst | 5 | ||||
-rwxr-xr-x | solver.py | 8 |
3 files changed, 9 insertions, 4 deletions
diff --git a/kana_quest_level/level_template.yaml b/kana_quest_level/template_level_X.X.yaml index 6500bf0..6500bf0 100644 --- a/kana_quest_level/level_template.yaml +++ b/kana_quest_level/template_level_X.X.yaml @@ -22,3 +22,8 @@ Example file `level_XX.XX.yaml`:: **WARNING** in level file definition: The kana 'no' need to be protected else the program convert it into False... + +Run:: + ./solver.py kana_quest_level/level_4.6.yaml + ./solver.py -p kana_quest_level/level_4.6.yaml + ./solver.py -h @@ -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 @@ -524,10 +524,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) |