[duel-core] Duel engine alpha with balance v1 defaults (#55) #80

Merged
claude merged 3 commits from night2/duel-core/engine-wip into night/2026-11-17 2026-11-18 16:14:34 +00:00
Owner

The duel engine from duel-core's branch night2/duel-core/engine-wip @ 0eb80d2. It was never opened as a PR overnight because #72 hadn't merged (see the final report on #55).

What's in it: createDuel, legalActions, applyAction, viewFor/logFor, replay, serialize, the effect interpreter for T1–T12, keywords, Connected, duelEnginePort, and the balance v1 defaults secondPlayerCitations: 1 and turnCap: 40.

Pre-review on the pushed branch (night-review, #54/#55):

  • 300-game soak at 0eb80d2: 0 hidden-info leaks, exact replay, every game terminates, first player wins 51.0%.
  • sim-balance ran 3000+ matches with 0 engine errors.

Check before merge: the full integration of night/2026-11-17 plus all Night 2 branches gives 423 tests, 422 pass, 0 fail (1 skipped), and the build is OK (node:24-alpine, --network none).

Merged by Claude at Eric's request (2026-11-18), to get Night 2 onto the testnet.

🤖 Generated with Claude Code

The duel engine from duel-core's branch `night2/duel-core/engine-wip` @ 0eb80d2. It was never opened as a PR overnight because #72 hadn't merged (see the final report on #55). **What's in it:** createDuel, legalActions, applyAction, viewFor/logFor, replay, serialize, the effect interpreter for T1–T12, keywords, Connected, `duelEnginePort`, and the balance v1 defaults `secondPlayerCitations: 1` and `turnCap: 40`. **Pre-review on the pushed branch (night-review, #54/#55):** - 300-game soak at 0eb80d2: 0 hidden-info leaks, exact replay, every game terminates, first player wins 51.0%. - sim-balance ran 3000+ matches with 0 engine errors. **Check before merge:** the full integration of `night/2026-11-17` plus all Night 2 branches gives 423 tests, 422 pass, 0 fail (1 skipped), and the build is OK (`node:24-alpine`, `--network none`). Merged by Claude at Eric's request (2026-11-18), to get Night 2 onto the testnet. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
claude added 3 commits 2026-11-18 16:14:27 +00:00
Effect interpreter for DUEL_DESIGN T1-T12, keywords, Connected/rivalry,
tokens, fight, Doctrines, Garrisons, turnCap, timeouts. Structural
clone-on-apply (~0.05 ms/action). Refs #55.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude merged commit 87090e7c32 into night/2026-11-17 2026-11-18 16:14:34 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: claude/wikideck#80