🔤 Hangman Word Game

📐 工作原理與說明
渲染規則:目標詞逐字元比對已猜集合,命中顯示大寫字母、未命中顯示 _,字元間以空格分隔;按錯誤次數索引 stages 顯示絞刑架階段圖;鍵盤渲染 26 個字母按鈕,已猜字母按命中(correct)/ 未命中(wrong)置灰停用

Guess the hidden word letter by letter with a limited number of misses and a tracked win/loss record — good for English vocabulary practice and leisure.

點選"開始"按鈕開始

📚 深度解析:猜單詞遊戲(Hangman)

💡 常見使用場景

  • 英語詞彙:隨機出隱藏英文單詞,按字母逐步猜,練拼寫與詞彙量。
  • 休閒挑戰:限制錯誤次數,記錄勝率與最少步數。
  • 課堂活動:老師選詞庫難度,學生輪流猜。
方法(猜詞規則)
從內建詞庫隨機抽詞,用下劃線表示未猜字母;每次猜一個字母,命中則揭示全部該字母位置,未中累計錯誤次數;達到上限(通常 6 次)判負,全部揭示則勝。
算例(演示)
詞「PYTHON」(6 字母):猜 P→命中顯 P _ _ _ _ _;猜 A→未中(1/6);猜 Y/T/H/O/N 依次命中,6 步通關。若中途猜錯滿 6 個不同字母則「吊死」判負。統計勝率與平均步數。

❓ 常見問題(FAQ)

詞庫是哪國語言?
內建以英文單詞為主;中文猜詞建議用其他字詞類工具。
錯幾次算輸?
經典為 6 次(對應小人 6 筆);部分版本可調,規則內統一即可。

Formula & Standard References

Item Formula / Note Source / Standard
Allowed mistakes most versions allow six to eight wrong guesses before losing Word game convention
Letter frequency E, T, A, O and I are the most frequent starts in English Corpus statistics
Information content each guess splits the remaining candidates by letter presence Information theory
⚠️ 使用說明與注意事項