7 Commits
Author SHA1 Message Date
donnyandClaude Opus 5.5 c034354d12 feat(decisions): host default, first brain, every choice through the seam; v0.2.0
CI / build (push) Successful in 57s
BotHost.Decisions is the default decision maker for seats without a Decisions= token (builtin overrides it).
'first' answers from the request's JSON alone, sums and counters included. MSG_SORT_CHAIN, the field-first card
prompt and the effect prompt of an unknown card now ask the maker too (built-in answers unchanged); only
prompts with no choice are answered without asking, and seats with a maker log their counts per duel.

Tests: the built-in --seed 7 report equals the v0.1.0 release's (tests/fixture/expected, clocks aside); first vs
first, 100 duels: 15952 prompts asked, 0 handed back, 0 errors, unasked only 'chain: nothing to chain'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v0.2.0
2026-10-19 18:38:00 -07:00
donnyandClaude Opus 5.5 0fd327e933 feat(decisions): the decision seam, one IDecisionMaker asked at every prompt
CI / build (push) Successful in 48s
GameBehavior asks YGOL_Decide at every prompt (idle, battle, cards, chain, yes/no, option, position, place,
sum, counter, declarations, sort, RPS, turn order). With no decision maker for the seat (the default) that is
the GameAI call and nothing else: the built-in brain plays as before (same 100-duel report, 67-33, avg 18.5).
With one, the prompt goes out as a plain-data DecisionRequest (kind, legal options, the seat's DuelView) and
comes back as option indices; null, an exception or an illegal answer falls back to the executor.

A seat picks a maker with Decisions=<name> (arena: --decisionsA/--decisionsB); DecisionMakers.Register names
one. Built in: builtin and random (a random legal answer read from the request's JSON). Tests: 100 random-vs-
random duels through the seam with 0 errors and no fallback, builtin == no token, Smart beats random 100-0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 18:29:33 -07:00
donnyandClaude Opus 5.5 ac80760e00 build: Docker build and tests, CI on every push, release on vX.Y.Z; README, AGENTS, CHANGELOG v0.1.0
CI / build (push) Successful in 35s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v0.1.0
2026-10-19 18:19:14 -07:00
donnyandClaude Opus 5.5 ff8eb61bc2 test: the library through BotHost and 100 Linux arena duels on a fixture game root
tests/fixture/game is built by make-fixture.py from the Unity repo's Data/ at dev 19c6158 (AI_OldSchool, its 17
cards and scripts, bot.conf) plus a character that owns the deck. The arena tests run the published Linux exe:
100 Smart-vs-Smart duels with 0 errors, and --seed 7 giving the same report at --parallel 4 and 2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 18:19:14 -07:00
donnyandClaude Opus 5.5 3bbfe08ab1 feat(arena): BotArena for linux-x64 and win-x64 on the library
The shims go; ArenaHost implements BotHost (stderr log, Microsoft.Data.Sqlite read-only, locale, the
expansions' .cdb, bot.conf). EngineLibrary finds ygol-engine.dll / libygol-engine.so (env, the root's plugin
folder, a built player, next to the exe) for both hosts. Same options and report. --host server is refused off
Windows: on Linux the engine's server reads ./expansions and ./script, finds no cards, and every duel ends at
turn 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 18:19:14 -07:00
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