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>
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>
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>
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>
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>