Skip to content

Scope: complete Rust engine for MCTS rollouts #51

@JackSwitzer

Description

@JackSwitzer

Context

The Python engine (packages/engine/) is the source of truth with 100% Java parity for Watcher. The Rust engine (packages/engine-rs/) is a partial port designed for fast MCTS combat rollouts.

Current State

  • Python: ~7000 lines, 100% complete, 6183 tests, verified parity
  • Rust: ~2700 lines, 35/75 Watcher cards (47% common, 0% uncommon/rare), 63 tests (broken due to PyO3 linking)
  • Quality: 6/10 (clean code, good benchmarks, incomplete coverage)

Why This Matters

  • MCTS rollouts need fast combat simulation (30ms target per turn)
  • Python combat sim is too slow for deep trees
  • RTX 3070 could run parallel MCTS if Rust engine is complete
  • Current training bottleneck is RL convergence, not speed — so this is Phase 2

Scope

  1. Fix PyO3 test linking (2h)
  2. Add missing uncommon cards (~25 cards, 8h)
  3. Add missing rare cards (~10 cards, 4h)
  4. Parity verification against Python engine (4h)
  5. Integration with training pipeline (fallback to Python for unknown cards)

Decision

  • Defer until 50%+ WR (recommended by audit)
  • Start incremental card porting now
  • Prioritize for RTX 3070 MCTS use case

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions