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.