feat: combine task with stage

This commit is contained in:
wancat committed 2023-09-01 14:56:28 +08:00
1 parent de8d49aea3
commit dd7829b3e9
8 files changed
+127 -54

No files matched your search

+27
View File
@@ -4,8 +4,11 @@ instruction: |
你身在一個漆黑的房間裡,沒有任何的光線或聲音。你想不起來為什麼自己會來到這裡。但你的腦中隱約感到某個聲音跟你說:
「輸入 echo Hello World!」
stages:
- id: helloworld
task: 使用 `echo Hello World!` 召喚精靈
repeatable: false
condition:
command:
- echo Hello World
@@ -26,7 +29,10 @@ stages:
- 現在,請你輸入 `ls` 來查看目前的目錄下有哪些檔案。
hints:
- 使用 `ls` 指令來查看目前的目錄下有哪些檔案。
- id: ls
task: 搜索卷軸
repeatable: false
requirements:
- helloworld
condition:
@@ -48,7 +54,25 @@ stages:
hints:
- 使用 `cat [檔案名稱]` 指令來查看檔案內容。
- 使用 `Tab` 鍵來取得指令提示。
- id: escape
task: 移動到下一個房間
repeatable: false
requirements:
- ls
condition:
pwd:
- '^/home/commander/jail$'
responses:
- type: narrative
content:
- 你進入了一個牢房,牢房裡有一個門,門上有一個鎖。
- 突然,你聽到門上鎖的聲音。
- 轉身發現,自己被關在了牢房裡。
- id: cat
task: 查看卷軸
repeatable: false
requirements:
- ls
condition:
@@ -60,7 +84,10 @@ stages:
content:
- 你找到的是一個被遺忘的卷軸,上面寫著解除封印的咒語。
- 使用你已經知道的 `echo` 指令來詠唱咒語。
- id: END
task: 解除封印
repeatable: false
requirements:
- cat
condition:
+6 -3
View File
@@ -6,7 +6,10 @@
1. echo 朗誦魔術
2. ls 搜索魔術
3. cat 檢察魔術
3. cat 檢查魔術
4. cd 移動魔術
5. mv 搬運魔術
6. rm 消滅魔術
## 關卡設計
@@ -14,8 +17,8 @@
2. 學習到了 ls
3. 使用 ls 找到地上放置了一個卷軸
4. 學習 cat
5. 使用 cat 查看卷軸內容
6. 用 echo 念出卷軸上的咒語
5. 使用 cat 查看卷軸內容,發現
6.
請幫我設計: