Underground 2 Revived
Play Need for Speed: Underground 2 (2004) in Chrome and Firefox with WebGPU graphics, Web Audio, up to 120 fps widescreen, controller support, free roam and Online races with friends. Fan project, not
翻譯準備中
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Lets you throw a dice once or a hundred times and then gives you the statistics. More testing of random.
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗Lets you throw a dice once or a hundred times and then gives you the statistics.
randint from the standard library's random module.python3 throwTheDice.py
The program prints a prompt, reads a single line of input, acts on it, and then waits for Enter before exiting.
Input is lowercased before it is compared, so ONCE and once are equivalent.
| Input | Behavior |
|---|---|
once | Rolls the die a single time and prints the result. |
hundred | Rolls the die one hundred times, then prints how many times each of the faces 1 through 6 came up. |
| anything else | Prints That wasn't an option silly! Try ONCE or HUNDRED. and exits. |
The prompt also advertises a QUIT option, but no branch implements it — typing quit currently takes the "anything else" path above. This is tracked in issue #2.
Open items are listed on the issue tracker.
The same game, unmodified, runs in a browser tab under tak's console runtime (Python via Pyodide): https://dice.play.danielstephenson.dev, listed with the rest at danielstephenson.dev/play. To build and serve it locally (needs tak installed):
python3 web/build_zip.py
python3 -c "from tak.web.serve import main; main(root='.', title='Simple Dice Throw')"
Pushes to master deploy it to arcade (.github/workflows/browser.yml).
Released under the Stephenson Software Non-Commercial License (Stephenson-NC). See LICENSE for the terms.