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