Skip to content

Add master build prompt for next-generation football simulation - #1

Open
wjrm500 wants to merge 2 commits into
masterfrom
claude/optimistic-tesla-oulzrw
Open

Add master build prompt for next-generation football simulation#1
wjrm500 wants to merge 2 commits into
masterfrom
claude/optimistic-tesla-oulzrw

Conversation

@wjrm500

@wjrm500 wjrm500 commented Jun 15, 2026

Copy link
Copy Markdown
Owner

Summary

Adds REBUILD_PROMPT.md — an exhaustive, self-contained specification for rebuilding SoccerSimulation from scratch with far greater ambition, distilled from a deep analysis of the existing codebase's domain model, calibrated mathematics, and emergent-design philosophy.

This is a single documentation artifact; no application code is changed.

What it captures from the existing app

  • The soul: realism is generated, never scripted. Latent potential that resolves with age (peakRating ← N(peakRating, 50/age²)), skills-as-a-shape matched to position archetypes by cosine similarity, the hand-calibrated goal-probability table, and the fatigue→form→injury→selection feedback loop.
  • Every proven formula and constant is preserved as the v1 calibration anchor (Appendix A), behind named, tunable config.
  • The seams where the original was clearly heading next: the tournamentleague rename, the unused free_agent_players list, the universe-global player pool, and the multi-system model the UI only ever used one slice of.

What it adds (the ambition)

  • Chronology — multi-season, youth intake, regeneration, retirement, records, dynasties, eras.
  • Geography — multiple nations, confederations, real cities, reputation gradients, footballing cultures.
  • Competition framework — pyramids with promotion/relegation, domestic cups, continental & international tournaments, all via one general abstraction.
  • Economy — valuations, wages, contracts, budgets, a negotiation state machine, loans, scouting.
  • Agency — managers with tactics/abilities, AI policies, board hire/fire, and an interactive "simulation train" with decisions as first-class engine inputs.
  • Identity — avatars, traits, personality, and queryable career histories.

Engineering discipline baked in

  • Pure deterministic engine core inside an impure shell; seeded/splittable RNG; no global singletons or pickled object graphs (a key fix over the original save model).
  • A 10-level test strategy (unit, property, golden, statistical/calibration, a determinism gate, invariants, long-run soak, integration/e2e, performance, fuzz).
  • An 11-milestone execution order (M0–M10), each a fully-working, green, deterministic slice; M2 is explicit parity with the original, done right.

https://claude.ai/code/session_01C4QURAyg7gH9FK32tmp6P1


Generated by Claude Code

claude added 2 commits June 15, 2026 21:46
Distils the existing SoccerSimulation's domain model, calibrated maths, and
emergent-design philosophy into an exhaustive, self-contained specification for
rebuilding the app from scratch with multi-season chronology, multi-country
geography, a general competition framework, a transfer economy, managers, and
interactive user involvement.
- Names: replace the predecessor's real-name sampling with a full
  nomenclature engine (Section 10.5) that generates invented but
  place-accurate person/city/club/stadium names from per-nation
  statistical+morphological NameModels (phonotactics, surname morphology,
  Zipfian frequency distributions, era drift, novelty/decency filters).
  Wired through mission, pillars, data model, generation, milestones,
  testing (23.11), DoD, and calibration targets.
- UI: promote the presentation layer to a first-class deliverable
  (Section 21) with a design vision, signature exploration experiences,
  frontend architecture, and dedicated UI tests (23.12), plus milestone
  and acceptance-criteria coverage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants