Overnight build by 17 Claude agents (2026-11-16 22:45 → 01:30 EST), coordinated in [claude/wikideck milestone 63](https://gitea.eom.dev/claude/wikideck/milestone/63). **For Eric's review. Do not merge without it.** The full write-up is in `docs/night/REPORT.md`. **What's in it** (38 reviewed PRs, squash-merged into `night/2026-11-16`): - **Edit War:** - a 3-lane, 6-turn card game built on what WikiDeck cards actually hold - a pure, deterministic, off-chain rules engine (`shared/game/`, with the API in `docs/game/ENGINE_API.md`); rules are data and v1.1 is the default - a mobile-first Play UI with a lobby, deck builder, four loaner starter decks, a match against the AI, results and a tutorial - a landing page (fixes #3) - **Design and balance:** `docs/game/DESIGN.md`, `CARD_DATA.md` (236 sampled articles) and `BALANCE.md` (bot simulations). Starter pairings went from 23–77% on v1 to roughly even on v1.1. - **eom.dev accounts:** Dex OIDC with PKCE, plus off-chain wallet linking, where the client builds the message it signs (`server/account/`, `src/auth/`). - **Peer-hosted game modes:** modes are JSON data, never code. Node API at `/api/game/*`, with host credit and leaderboards. Three example modes (`shared/game/modes.ts`, `server/game/`, `docs/game/HOSTING.md`). - **Mobile:** Capacitor 7 Android app (a debug APK played a full match against the AI in the emulator), and an iOS project waiting on Xcode (`docs/night/ANDROID.md`, `docs/night/IOS.md`). - **Testnet tooling:** `deploy/night/` (LAN-only, 3 nodes) and an optional `WIKIDECK_USER_AGENT` (the default is unchanged). **Not touched:** consensus and protocol (`server/chain.ts`, `shared/protocol.ts`, `server/testnet/{consensus,ledger,…}.ts`, `native/`), the live deployment and mainnet. Matches run off-chain and never move or burn NFTs. **Checks:** the final integration gate passed in `node:24-alpine`: `npm test` 241/242 with 0 fail (1 skipped), and `npm run build` passes. The repo needs Node 24, because Node 20 fails 12 tests falsely. **Decisions for Eric** (see REPORT.md, Known issues and Next steps): 1. whether the live node should set `WIKIDECK_USER_AGENT` 2. the Xcode licence, which you should accept yourself 3. #49 in the fork, a bot change held after the freeze 4. on-chain host rewards (proposal only, in HOSTING.md) 🤖 Generated with [Claude Code](https://claude.com/claude-code)Reviewed-on: #22 Co-authored-by: Claude <claude@eom.dev>
18 lines
5.3 KiB
TypeScript
18 lines
5.3 KiB
TypeScript
// GENERATED by scripts/game-card-data.mjs from docs/game/card-sample.json (236 cards,
|
|
// generated 2026-11-17T04:19:07.777994+00:00) and docs/game/starter-cards.json (frozen 2026-11-17). Do not edit by hand.
|
|
// Percentiles: cut point i (1..99) = nearest-rank i-th percentile of the sample snapshot score (sorted ascending, index ceil(i*n/100)-1). Use with DESIGN.md §1.1 counting.
|
|
import type { PercentileTable } from './derive.ts';
|
|
import type { Faction } from './types.ts';
|
|
|
|
/** DESIGN §1.1 reference table "card-sample-2026-11-16": 99 cut points per stat. */
|
|
export const CARD_SAMPLE_PERCENTILES: PercentileTable = {"attention":[14,14,16,17,18,19,19,19,20,20,21,21,21,22,22,22,23,23,23,24,24,24,24,25,25,25,26,26,26,27,27,27,27,28,28,28,28,29,29,30,30,30,30,30,30,31,31,31,31,32,32,33,33,34,34,34,35,35,35,35,35,36,36,37,37,38,38,38,39,39,40,40,40,41,41,42,42,43,44,44,45,46,47,48,49,49,50,51,53,53,55,56,57,59,61,62,62,64,68],"depth":[50,51,51,53,53,54,54,54,54,54,55,55,55,56,56,57,57,57,57,57,58,58,58,58,58,58,59,59,59,59,59,60,60,60,60,61,61,61,61,61,61,62,62,62,62,62,63,63,63,63,63,64,64,64,64,64,64,65,65,65,65,65,66,66,66,66,67,67,67,67,67,68,68,68,68,69,69,69,69,69,70,70,71,71,71,72,72,72,73,73,74,75,75,76,78,78,79,80,83],"reach":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,10,10,10,10,10,10,10,10,10,10,10,10,16,16,16,16,16,16,16,16,16,16,16,16,16,20,20,20,20,20,20,20,20,23,23,23,23,23,26,26,26,26,26,28,28,28,28,30,30,30,30,30,32,32,32,33,33,33,35,36,36,36,37,38,39,40,41,43,43,44,45,45,47,49,50,50,51,52,55,55,59]};
|
|
|
|
export interface LoanerSnapshot {
|
|
pageId: number; title: string; category: Faction;
|
|
stats: { attention: number | null; depth: number; reach: number };
|
|
trendPercent: number | null; dailyAverage: number | null;
|
|
}
|
|
|
|
/** Frozen loaner pool (§2): real snapshots of random articles, for filling deck slots and draft modes. */
|
|
export const LOANER_SNAPSHOTS: readonly LoanerSnapshot[] = [ { "pageId": 4961906, "title": "Chinese star maps", "category": "Space", "stats": { "attention": 44, "depth": 74, "reach": 16 }, "trendPercent": -13.6, "dailyAverage": 14.1 }, { "pageId": 78154568, "title": "Lithodes mamillifer", "category": "Nature", "stats": { "attention": 20, "depth": 53, "reach": 10 }, "trendPercent": -34.8, "dailyAverage": 0.48 }, { "pageId": 23256692, "title": "Coelogyne trinervis", "category": "Nature", "stats": { "attention": 23, "depth": 53, "reach": 30 }, "trendPercent": -42.9, "dailyAverage": 0.77 }, { "pageId": 53418112, "title": "2012 United States presidential straw poll in Guam", "category": "Nature", "stats": { "attention": 37, "depth": 65, "reach": 0 }, "trendPercent": 15.3, "dailyAverage": 5.58 }, { "pageId": 273706, "title": "Pallas's cat", "category": "Nature", "stats": { "attention": 77, "depth": 80, "reach": 65 }, "trendPercent": -0.7, "dailyAverage": 1355.65 }, { "pageId": 20139020, "title": "Samuel Yeatman", "category": "People", "stats": { "attention": 14, "depth": 56, "reach": 10 }, "trendPercent": -25, "dailyAverage": 0.19 }, { "pageId": 51796741, "title": "Alex Piquero", "category": "People", "stats": { "attention": 36, "depth": 65, "reach": 0 }, "trendPercent": -51, "dailyAverage": 4.87 }, { "pageId": 3560741, "title": "Martin Taylor (businessman)", "category": "People", "stats": { "attention": 41, "depth": 63, "reach": 20 }, "trendPercent": 1.1, "dailyAverage": 8.68 }, { "pageId": 2806760, "title": "Jess Harnell", "category": "People", "stats": { "attention": 69, "depth": 79, "reach": 45 }, "trendPercent": -2.8, "dailyAverage": 463.68 }, { "pageId": 13799810, "title": "Levophacetoperane", "category": "Science", "stats": { "attention": 37, "depth": 61, "reach": 16 }, "trendPercent": -1.8, "dailyAverage": 5.32 }, { "pageId": 36740675, "title": "The Best of Men", "category": "Science", "stats": { "attention": 45, "depth": 63, "reach": 23 }, "trendPercent": -3.4, "dailyAverage": 15.35 }, { "pageId": 4426773, "title": "Agda (programming language)", "category": "Science", "stats": { "attention": 56, "depth": 69, "reach": 36 }, "trendPercent": 7.8, "dailyAverage": 78.68 }, { "pageId": 48469081, "title": "Dr. John L. Butler House", "category": "History", "stats": { "attention": 17, "depth": 56, "reach": 0 }, "trendPercent": -23.1, "dailyAverage": 0.32 }, { "pageId": 33454946, "title": "Tydeus Painter", "category": "History", "stats": { "attention": 22, "depth": 54, "reach": 20 }, "trendPercent": -13.6, "dailyAverage": 0.61 }, { "pageId": 74291637, "title": "Pullman porter affair", "category": "History", "stats": { "attention": 39, "depth": 68, "reach": 0 }, "trendPercent": -10.4, "dailyAverage": 6.94 }, { "pageId": 15105978, "title": "Well", "category": "History", "stats": { "attention": 64, "depth": 78, "reach": 70 }, "trendPercent": -6.4, "dailyAverage": 233.77 }, { "pageId": 50869430, "title": "Felt, Not Heard", "category": "Culture", "stats": { "attention": 21, "depth": 57, "reach": 0 }, "trendPercent": -45.5, "dailyAverage": 0.58 }, { "pageId": 14761136, "title": "RBMX", "category": "Culture", "stats": { "attention": 26, "depth": 66, "reach": 10 }, "trendPercent": 21.4, "dailyAverage": 1.1 }, { "pageId": 31946653, "title": "Cody Floatplane", "category": "Culture", "stats": { "attention": 33, "depth": 65, "reach": 20 }, "trendPercent": -11, "dailyAverage": 2.87 }, { "pageId": 247636, "title": "Canadian Grand Prix", "category": "Culture", "stats": { "attention": 62, "depth": 79, "reach": 55 }, "trendPercent": 4.3, "dailyAverage": 172.23 } ];
|