From dd8987137d3ea95f8c9864bbee2b87471136c1ff Mon Sep 17 00:00:00 2001 From: "Chen, Tai-Lin" Date: Thu, 2 Nov 2023 12:13:00 +0800 Subject: [PATCH] update quest 'helloworld' --- quests/helloworld/game.yml | 21 +++++++++++---------- quests/helloworld/home/forgotten_scroll.txt | 7 +++---- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/quests/helloworld/game.yml b/quests/helloworld/game.yml index 5b1e434..ef087b7 100644 --- a/quests/helloworld/game.yml +++ b/quests/helloworld/game.yml @@ -1,21 +1,20 @@ title: Hello, Linux World! instruction: | - 你身在一個漆黑寂靜的地方。 - 你似乎失去了記憶。 - 你的感覺腦中有某個聲音跟你說: + 你身在一個漆黑寂靜的地方,似乎失去了記憶。 + 你感到腦中有某個聲音跟你說: 使用 `echo [咒語]` 指令來朗誦以下咒語 - 「 Hello World! 」 + 「 help 」 stages: - - id: helloworld - task: 輸入 `echo Hello World!` 來朗誦咒語 + - id: help + task: 輸入 `echo help` 來朗誦咒語 repeatable: false condition: pwd: - '^/home/commander$' command: - - echo Hello World + - echo [Hh]elp responses: - type: narrative content: @@ -38,7 +37,7 @@ stages: task: 搜索卷軸 repeatable: false requirements: - - helloworld + - help condition: pwd: - '^/home/commander$' @@ -59,7 +58,7 @@ stages: hints: - 使用 `cat [檔案名稱]` 指令來查看檔案內容。 - 使用 `Tab` 鍵來取得指令提示。 - - 如果卡在未知的情況,按下 `Ctrl + C` 或 `q` 嘗試離開。 + - 如果卡在未知的情況,按下 `Ctrl + C` 嘗試離開。 - id: read-forgotten-scroll task: 查看卷軸 @@ -77,6 +76,8 @@ stages: content: - 你找到的是一個被遺忘的卷軸,上面寫著解除封印的咒語。 - 使用你已經知道的 `echo [咒語]` 指令來詠唱咒語。 + hints: + - 輸入 `echo Hello World` 來詠唱咒語。 - id: END task: 解除封印 @@ -87,7 +88,7 @@ stages: pwd: - '^/home/commander$' command: - - echo Unix, rise and guide me + - echo [Hh]ello\s*[Ww]orld responses: - type: narrative content: diff --git a/quests/helloworld/home/forgotten_scroll.txt b/quests/helloworld/home/forgotten_scroll.txt index b63a1e6..6e485dc 100644 --- a/quests/helloworld/home/forgotten_scroll.txt +++ b/quests/helloworld/home/forgotten_scroll.txt @@ -1,10 +1,9 @@ 曾經輝煌的王國 如今被陰霾壟罩 -Unix之力沉睡著 等待甦醒的時機 -恢復王國的根基 那被遺忘的文明 +Unix之力沉睡著 等待復甦的時機 必須不斷的學習 掌握古老的咒語 +恢復王國的根基 那被遺忘的文明 用指令念出咒語 Unix之力將甦醒 - ~~~~~~~~~~~~~~~~~~~~~~~~~~ - Unix, rise and guide me! + Hello World ~~~~~~~~~~~~~~~~~~~~~~~~~~