Commit Graph
2 Commits
Author SHA1 Message Date
donnyandClaude Opus 5.5 0818987cea feat(lib): YGOLegacy.Bots, netstandard2.1 / C# 9, the game through BotHost
What came from the game now comes through YGOLegacy.Bots.BotHost (Host/BotHost.cs): Log (was UnityEngine.Debug),
Cards (the SQLite connection; was Mono.Data.Sqlite), Files (locale and the expansions' .cdb; was
MDPro3 Language/ResourceManager, GamePaths.PATH_EXPANSIONS), DeckLimits (#ruleset -> caps; was the game's
DeckLimits/Rulesets) and BotConf (bot.conf; was SoloLoader). CharacterRegistry loses its UniTask surface and
keeps Scan/Publish (now public) and LoadFromDisk. No YGOL_STANDALONE branches are left. Internals stay internal,
visible to Assembly-CSharp(-Editor), BotArena and the tests. References the engine release's binding (engine.json
pins v1.4.1). No change to how the bots play.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 18:19:14 -07:00
donny 6dbc9e78d8 import: the bot code from yugioh-legacy-unity dev at 19c6158197a0a8f0817dd0924bb9a6a987c2bfc5
Verbatim copies, new layout, no edits:

  Assets/Scripts/Windbot/** (minus BotWrapper.cs)       -> src/YGOLegacy.Bots/WindBot/
  Assets/Scripts/YGOSharp/YGOSharp.OCGWrapper.Enums/*   -> src/YGOLegacy.Bots/YGOSharp/YGOSharp.OCGWrapper.Enums/
  Assets/Scripts/YGOSharp/YGOSharp.OCGWrapper/{Card,NamedCard,NamedCardsManager,CardsManager}.cs
                                                        -> src/YGOLegacy.Bots/YGOSharp/YGOSharp.OCGWrapper/
  Assets/Scripts/YGOSharp/YGOSharp.Network/{BinaryClient,NetworkClient,YGOClient}.cs, Enums/*, Utils/BinaryExtensions.cs
                                                        -> src/YGOLegacy.Bots/YGOSharp/YGOSharp.Network/
  Assets/YGOLegacy/Scripts/Core/Bot/{SmartExecutor,BoardEvaluator,BattlePredictor,BrainRules,EffectSimulator,
    DuelStateBus,LocalDuelHost,LoopbackBotSeat,Lookahead,ArenaReport}.cs -> src/YGOLegacy.Bots/Bot/
  Assets/YGOLegacy/Scripts/Core/Identity/Characters/{Character,CharacterRegistry}.cs -> src/YGOLegacy.Bots/Characters/
  Assets/YGOLegacy/Scripts/Features/Solo/BotRoster.cs   -> src/YGOLegacy.Bots/Services/
  Tools/BotArena/**                                     -> src/BotArena/

Commit: 19c6158 (2026-10-19T15:29:54-07:00) duel: 8 prompt and bot fixes from duel bug hunt round 2
2026-10-19 18:08:01 -07:00