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 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Daily cricket ranking puzzle
翻譯準備中
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
Cricket games. The home screen lists the modes; Lineup and Ballpark each have a daily round
(with its own stats and streak) and a practice mode, and Showdown is free play.檢視完整 README ↗Cricket games. The home screen lists the modes; Lineup, Ballpark and Who Am I? each have a daily round (with its own stats and streak) and a practice mode, and Showdown is free play.
npm install
npm run dev # http://localhost:5173
npm test # scoring logic + validation of every puzzle in the dataset
npm run build
src/data/cricket.json, src/data/ballpark.json, src/data/cards.json and src/data/whoami.json are generated; don't edit
them by hand. Sources:
| Source | Used for | Licence |
|---|---|---|
| Cricsheet ball-by-ball data + register | IPL puzzles (complete, 2008 onward), player names and countries | ODC-By 1.0 |
| Wikipedia record lists | International career/match records, World Cup timelines | CC BY-SA 4.0 |
| Wikidata | Full names for the few players Cricsheet only lists by initials | CC0 |
| Wikipedia (non-free files) | IPL franchise logos in public/logos/ipl/ | Trademarks of their owners; used only to identify the teams |
| Wikipedia player infoboxes | Test, ODI and T20I career stats on the Showdown cards; roles, batting hands and career years for Who Am I? | CC BY-SA 4.0 |
Player photos in public/players/ | Showdown and Who Am I? cards | Each file's source and credit is in scripts/data/player_photos.json |
Cricsheet is missing some international matches (withheld or not yet covered), so international puzzles come from Wikipedia's maintained record tables, not from Cricsheet aggregates.
Raw downloads live in data-raw/ (git-ignored, about 80 MB).
# 1. Cricsheet (men's matches + register)
cd data-raw/cricsheet
for f in tests odis t20s ipl; do curl -sfLO https://cricsheet.org/downloads/${f}_json.zip && unzip -qo ${f}_json.zip -d $f; done
curl -sfLO https://cricsheet.org/register/people.csv && curl -sfLO https://cricsheet.org/register/names.csv
cd ../..
# 2. Wikipedia pages: re-fetch data-raw/wiki/*.json with the parse API
# (action=parse&prop=text|revid) and revision_dates.json with prop=revisions.
# 3. Build
python3 scripts/data/parse_cricsheet.py # per-match / per-player-match records
python3 scripts/data/gen_ipl.py # ranked IPL lists
python3 scripts/data/gen_wiki.py # Wikipedia record puzzles + tournament lists
python3 scripts/data/build.py # pick 5 items per list, shuffle, validate -> src/data/cricket.json
python3 scripts/data/gen_ballpark.py # Cricsheet totals + worked sums + scripts/data/ballpark_manual.json -> src/data/ballpark.json
python3 scripts/data/gen_cards.py # Showdown decks -> src/data/cards.json (add --refresh to re-fetch Wikipedia)
python3 scripts/data/gen_whoami.py # Who Am I? bios and daily order -> src/data/whoami.json (after gen_cards.py)
npm test
build.py refuses to write a dataset with tied values, duplicate labels, a puzzle that starts
already solved, or a player name still in initials form. For the last one, add the full name to
scripts/data/name_overrides.json (keyed by Cricsheet identifier) after checking it.
gen_ballpark.py takes careers, records and crowds from scripts/data/ballpark_manual.json (each
checked against its linked page or Statsguru before it goes in; if a fact can't be sourced, the
question is reworded around one that can), works out the size-it-up sums and date spans from
sourced figures (the Laws' pitch, ball and stumps; the Equator; Everest) so the arithmetic can't
drift, and computes totals from Cricsheet: the IPL, and the 2011 World Cup, the most recent one
Cricsheet covers in full. It deals the questions into days of five with at most two of a family,
no shared topic, no question that gives another's answer away and at most one IPL question.
gen_cards.py builds one Showdown deck per format from the players listed in
scripts/data/cards_players.json. Test, ODI and T20I figures are read from the career table in each
player's Wikipedia infobox (cached in data-raw/wiki/players/), because Cricsheet's international
coverage starts in the 2000s; the IPL deck is computed from Cricsheet. Infoboxes of current players
lag a few matches behind, so each deck carries an "as of" date. Every stat is higher-wins. The script
fails if a player has no column for the format or two cards have identical stats. A card gets a
photo when public/players/<name-in-lower-case-with-hyphens>.jpg exists (the script lists the players
without one; they show initials on the team colour), so re-run it after adding photos.
gen_whoami.py reads cards.json and the same cached infoboxes and writes src/data/whoami.json:
each player's role (batter, bowler, all-rounder or wicketkeeper), batting hand, and the years of
their first and last match in each format they have a card for (the infobox's debut and last-match
rows; Cricsheet for the IPL). whoami_hints.py writes four hints per card from the same infobox
(bowling style, birthplace, nickname, shirt number, debut and farewell opponents) and from Cricsheet
line-ups (team-mates, World Cup and IPL finals, best innings and bowling figures, IPL awards). Since
Cricsheet has every IPL match but only some internationals, an international match count is quoted
only when it has the player's whole career in that format, and a best innings only when it equals the
highest score on the card; older players get team-mates from overlapping careers in the same side. The four infoboxes with no Role row are filled in from
scripts/data/whoami_overrides.json. It also sets the order each deck's cards come up as the daily,
arranged so nobody is the answer twice within 14 days. It never writes cards.json.