mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
fix: improve quest 'helloworld' content
This commit is contained in:
1 parent
f8254b55c9
commit
b0fa4b50f7
2 files changed
+22
-19
No files matched your search
+13
-10
@@ -1,12 +1,15 @@
|
||||
title: Hello, Linux World!
|
||||
instruction: |
|
||||
你身在一個漆黑的房間裡,沒有任何的光線或聲音。你想不起來為什麼自己會來到這裡。但你的腦中隱約感到某個聲音跟你說:
|
||||
你身在一個漆黑寂靜的地方。
|
||||
你似乎失去了記憶。
|
||||
你的感覺腦中有某個聲音跟你說:
|
||||
|
||||
「輸入 echo Hello World!」
|
||||
使用 `echo [咒語]` 指令來朗誦以下咒語
|
||||
「 Hello World! 」
|
||||
|
||||
stages:
|
||||
- id: helloworld
|
||||
task: 使用 `echo Hello World!` 召喚精靈
|
||||
task: 輸入 `echo Hello World!` 來朗誦咒語
|
||||
repeatable: false
|
||||
condition:
|
||||
pwd:
|
||||
@@ -26,7 +29,7 @@ stages:
|
||||
- 由於長久以來依賴於薩加,世人已失去了「指令」的力量,即將走向衰敗和滅亡的命運。
|
||||
- 你的任務,就是找回被世人遺忘的指令,奪回 Linux 之根,成為 Linux 之王。
|
||||
- 首先,你必須要學會如何使用指令。
|
||||
- 你要學習的第一個指令,是「發現」的指令:`ls`。ls 可以用來查看一個目錄中有哪些檔案。
|
||||
- 你要學習的第一個指令,是「搜索」的指令:`ls` (list)。 `ls` 可以用來查看一個目錄中有哪些檔案。
|
||||
- 現在,請你輸入 `ls` 來查看目前的目錄下有哪些檔案。
|
||||
hints:
|
||||
- 使用 `ls` 指令來查看目前的目錄下有哪些檔案。
|
||||
@@ -44,19 +47,19 @@ stages:
|
||||
responses:
|
||||
- types: narrative
|
||||
content:
|
||||
- 一瞬間,視野變得清晰起來,你發現自己身處在一個石頭建築的房間裡,房間裡有一個門,門上有一個鎖。
|
||||
- 一瞬間,視野變得清晰起來,你發現自己身處在一個石頭建築的房間裡。
|
||||
- 你發現了一個檔案,檔名是 `forgotten-scroll.txt`。
|
||||
- type: dialogue
|
||||
speaker: Unix 精靈
|
||||
content:
|
||||
- 你找到了一個被遺忘的卷軸,上面寫著解除封印的咒語。
|
||||
- 使用指令 `cat [檔案名稱]` 來查看檔案內容。
|
||||
- 使用指令 `cat [檔案名稱]` (concatenate)來查看檔案內容。
|
||||
- 我可以為你提供一些指令的提示,只要輸入指令的前幾個字元,然後按下 `Tab` 鍵,就可以看到提示了。
|
||||
- 例如,你可以輸入 `ca` 然後按下 `Tab` 鍵,就可以看到 `cat` 這個指令的提示了。
|
||||
- 檔案名稱也一樣,只要輸入檔案名稱的前幾個字元,然後按下 `Tab` 鍵,就可以看到提示了。
|
||||
- 例如你只要輸入檔案名稱的前幾個字元,然後按下 `Tab` 鍵,就可以看到提示了。
|
||||
hints:
|
||||
- 使用 `cat [檔案名稱]` 指令來查看檔案內容。
|
||||
- 使用 `Tab` 鍵來取得指令提示。
|
||||
- 如果卡在未知的情況,按下 `Ctrl + C` 或 `q` 嘗試離開。
|
||||
|
||||
- id: read-forgotten-scroll
|
||||
task: 查看卷軸
|
||||
@@ -73,7 +76,7 @@ stages:
|
||||
speaker: Unix 精靈
|
||||
content:
|
||||
- 你找到的是一個被遺忘的卷軸,上面寫著解除封印的咒語。
|
||||
- 使用你已經知道的 `echo` 指令來詠唱咒語。
|
||||
- 使用你已經知道的 `echo [咒語]` 指令來詠唱咒語。
|
||||
|
||||
- id: END
|
||||
task: 解除封印
|
||||
@@ -84,7 +87,7 @@ stages:
|
||||
pwd:
|
||||
- '^/home/commander$'
|
||||
command:
|
||||
- echo Unix, rise and guide me!
|
||||
- echo Unix, rise and guide me
|
||||
responses:
|
||||
- type: narrative
|
||||
content:
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
Once a mighty kingdom, now in darkness,
|
||||
The power of Unix lies dormant, waiting.
|
||||
To reclaim the root, the forgotten language,
|
||||
Must be learned, commands of old rekindled.
|
||||
Speak the words of power and awaken the might of Unix:
|
||||
曾經輝煌的王國 如今被陰霾壟罩
|
||||
Unix之力沉睡著 等待甦醒的時機
|
||||
恢復王國的根基 那被遺忘的文明
|
||||
必須不斷的學習 掌握古老的咒語
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Unix, rise and guide me!
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
用指令念出咒語 Unix之力將甦醒
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Unix, rise and guide me!
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Reference in new issue
Block a user