Underground 2 Revived
Chrome과 Firefox에서 Need for Speed Underground 2를 WebGPU로 두고 팬 프로젝트입니다
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기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.