diff options
-rw-r--r-- | kana_quest_level/level_4.5.yaml (renamed from test_level.yaml) | 3 | ||||
-rw-r--r-- | kana_quest_level/level_4.6.yaml | 11 | ||||
-rw-r--r-- | kana_quest_level/level_template.yaml | 9 | ||||
-rw-r--r-- | readme.rst | 16 |
4 files changed, 38 insertions, 1 deletions
diff --git a/test_level.yaml b/kana_quest_level/level_4.5.yaml index b540b94..191d70d 100644 --- a/test_level.yaml +++ b/kana_quest_level/level_4.5.yaml @@ -1,4 +1,4 @@ -# kana quest grid +# kana quest grid level 4.5 size: [5, 4] max_actions: 9 target_score: 7 @@ -8,3 +8,4 @@ grid: [ [froz, ku ], [empt, null], [empt, null], [empt, null], [froz, 'no'], [void, null], [void, null], [rock, ka ], [void, null], [void, null], ] +# The kana 'no' need to be protected else the program convert it into False... diff --git a/kana_quest_level/level_4.6.yaml b/kana_quest_level/level_4.6.yaml new file mode 100644 index 0000000..000ad57 --- /dev/null +++ b/kana_quest_level/level_4.6.yaml @@ -0,0 +1,11 @@ +# kana quest grid level 4.6 +size: [4, 4] +max_actions: 13 +target_score: 7 +grid: [ + [myst, ka ], [empt, null], [empt, null ], [froz, ke ], + [empt, null], [norm, ko ], [empt, null ], [rock, so ], + [empt, null], [empt, null], [empt, null ], [empt, null], + [froz, sa ], [rock, ki ], [empt, null ], [rock, se ], +] + diff --git a/kana_quest_level/level_template.yaml b/kana_quest_level/level_template.yaml new file mode 100644 index 0000000..6500bf0 --- /dev/null +++ b/kana_quest_level/level_template.yaml @@ -0,0 +1,9 @@ +# kana quest grid level 1.1 +size: [1, 1] +max_actions: 1 +target_score: 1 +grid: [ + [void, null], [myst, su ], [rock, hu ], [norm, ku ], [froz, nu ], + [empt, null], [empt, null], [empt, null], [empt, null], [empt, null], +] +# The kana 'no' need to be protected else the program convert it into False... @@ -6,3 +6,19 @@ kana in this form: - 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... + |