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.