How fullstackjake/duel-circuit works
Duel Circuit is an offline, single-player Yu-Gi-Oh! campaign game. The principal loop is campaign progression: choose a circuit match, duel a CPU opponent, earn rewards, improve a collection and deck, then unlock further matches. The engine also supports deck search/import and historical formats, card collecting, replays, tag duels, and presentation/audio features. The map reflects documented capabilities and sampled/indexed engine modules; application-level screen routing and some unsampled subsystem wiring are not shown, so edges are limited to documented or evidenced relationships.
Main entry points: Profile.cs Player profile · Library.cs Campaign circuits · Duel.cs Duel rules engine · Deck.cs Deck model
Components 23
Campaign and economy
- Campaign circuits
src/Ygo.Engine/Campaign/Library.cs - Tournaments
src/Ygo.Engine/Campaign/Brackets.cs - Back Alley
src/Ygo.Engine/Campaign/BackAlley.cs - Ante and stakes
src/Ygo.Engine/Campaign/Ante.cs - Player profile
src/Ygo.Engine/Campaign/Profile.cs - Rewards and leveling
src/Ygo.Engine/Campaign/Leveling.cs - Booster packs
src/Ygo.Engine/Campaign/Packs.cs
Duel engine
- Duel rules engine
src/Ygo.Engine/Duel.cs - Duel orchestration
src/Ygo.Engine/DuelRunner.cs - Human interaction
src/Ygo.Engine/Interactive/HumanDuelist.cs - Prompt presentation
src/Ygo.Engine/Interactive/PromptPresenter.cs
Decks and cards
- Deck model
src/Ygo.Engine/Deck.cs - Deck legality
src/Ygo.Engine/DeckBuilding/DeckRules.cs - Card search
src/Ygo.Engine/DeckBuilding/CardSearch.cs - Card printings
src/Ygo.Engine/Data/Printings.cs
Duelist AI
- Duelist profiles
src/Ygo.Engine/AI/Personality.cs - Duel context
src/Ygo.Engine/AI/DuelContext.cs - Deck playbooks
src/Ygo.Engine/AI/Playbooks/Playbooks.cs - Card traits
src/Ygo.Engine/AI/CardTraits.cs
Presentation and replay
- Replay system
src/Ygo.Engine/Replays/Replay.cs - Duel presentation
src/Ygo.Engine/Presentation/DuelEvents.cs - Sound effects
src/Ygo.Engine/Audio/Sfx.cs
Other components
- Player
Connections 27
- Player → Campaign circuits: chooses match
- Campaign circuits → Tournaments: offers tournaments
src/Ygo.Engine/Campaign/Library.cs - Player → Duel orchestration: starts duel
- Duel orchestration → Duel rules engine: runs rules
- Duel orchestration → Human interaction: requests choices
- Human interaction → Prompt presentation: presents choices
src/Ygo.Engine/Interactive/PromptPresenter.cs - Duel rules engine → Deck model: loads decks
src/Ygo.Engine/Duel.cs - Duel rules engine → Duel context: supplies state
src/Ygo.Engine/AI/DuelContext.cs - Duel context → Card traits: uses traits
src/Ygo.Engine/AI/DuelContext.cs - Duelist profiles → Deck playbooks: selects strategy
- Deck playbooks → Deck model: reads deck
src/Ygo.Engine/AI/Playbooks/Playbooks.cs - Campaign circuits → Player profile: records progress
src/Ygo.Engine/Campaign/Library.cs - Tournaments → Player profile: records results
src/Ygo.Engine/Campaign/Brackets.cs - Campaign circuits → Rewards and leveling: awards experience
src/Ygo.Engine/Campaign/Library.cs - Rewards and leveling → Player profile: updates rewards
src/Ygo.Engine/Campaign/Leveling.cs - Player profile → Booster packs: opens packs
src/Ygo.Engine/Campaign/Profile.cs - Player → Card search: searches cards
- Card search → Card traits: uses card traits
src/Ygo.Engine/DeckBuilding/CardSearch.cs - Player → Deck model: builds deck
- Deck model → Deck legality: checks legality
- Player → Back Alley: stakes cards or DP
- Back Alley → Ante and stakes: settles ante
src/Ygo.Engine/Campaign/Ante.cs - Ante and stakes → Player profile: updates collection
src/Ygo.Engine/Campaign/Ante.cs - Player → Replay system: shares replay code
- Duel rules engine → Duel presentation: produces duel events
- Duel presentation → Sound effects: triggers sound
- Player profile → Card printings: uses printing data
src/Ygo.Engine/Campaign/Profile.cs