aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarianne Chevrot <blackmoor+git@devys.org>2020-04-27 19:22:26 +0200
committerMarianne Chevrot <blackmoor+git@devys.org>2020-04-27 19:22:26 +0200
commit71243c11c450cab06a33ba370d12a3b3f3ef0a5c (patch)
treeec3a8c46415e9003d4b5552f4e7c3e7f7387b71f
parent9cb39720b2983b36baeec8e5bff9228aded83786 (diff)
downloadkana_quest_solver-71243c11c450cab06a33ba370d12a3b3f3ef0a5c.tar.gz
kana_quest_solver-71243c11c450cab06a33ba370d12a3b3f3ef0a5c.tar.bz2
kana_quest_solver-71243c11c450cab06a33ba370d12a3b3f3ef0a5c.zip
Add level infos and level 4.6
-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.yaml11
-rw-r--r--kana_quest_level/level_template.yaml9
-rw-r--r--readme.rst16
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...
diff --git a/readme.rst b/readme.rst
index 3b93ae4..52d367a 100644
--- a/readme.rst
+++ b/readme.rst
@@ -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...
+