aboutsummaryrefslogtreecommitdiffstats
path: root/readme.rst
blob: 40391a54e89f5cb86ac99b6046bdf16dcc271b30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
This solver is able to take definition in yaml format. For now it supports
kana in this form:

- normal
- frozen
- rock
- void
- empty


Level file are store in `kana_quest_level`. Format is yaml.
Example file `level_XX.XX.yaml`::
    # kana quest grid level XX.XX
    size: [3, 2]
    max_actions: 1
    target_score: 3
    grid: [
      [void, null], [myst, nu  ], [void, null],
      [froz, ne  ], [empt, null], [rock, 'no'],
    ]

**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