Files
donnyandClaude Opus 5.5 c034354d12
CI / build (push) Successful in 57s
feat(decisions): host default, first brain, every choice through the seam; v0.2.0
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

36 lines
2.5 KiB
Markdown

# Changelog
One section per release; the section is the release's body. Each names the engine release it was built and
tested against (`bots.json`'s `engine`).
## v0.2.0 — 2026-10-19
The decision seam. Engine `v1.4.1`. No change to how the bots play: a seat with no decision maker is answered by
its executor exactly as before (the `--seed 7` 100-duel report equals v0.1.0's apart from its clocks).
- `YGOLegacy.Bots.Decisions`: `IDecisionMaker.Decide(DecisionRequest) -> Decision`, asked at every prompt of
every seat (`GameBehavior.YGOL_Decide`) before the seat's WindBot executor; null, an exception or an illegal
answer hands the prompt to the executor. Requests (kind, legal options, what the seat sees as a `DuelView`) and
answers (option indices) are plain JSON-friendly data.
- A seat picks a maker with the WindBot token `Decisions=<name>`, else gets `BotHost.Decisions` (default none);
`DecisionMakers.Register` names one. Built in: `builtin` (the executor), `first` (the first legal answer, the
test brain) and `random` (a random legal answer), both from the request's JSON alone.
- Every prompt with a choice is asked, including `MSG_SORT_CHAIN` and the "field first" card prompt (their
built-in answers unchanged); only no-choice prompts are not. Seats with a maker log their counts per duel.
- `BotArena --decisionsA/--decisionsB <name>`.
## v0.1.0 — 2026-10-19
The bots leave the Unity repo. Engine `v1.4.1`.
- `YGOLegacy.Bots.dll` (.NET Standard 2.1, C# 9): the Unity repo's WindBot (`Assets/Scripts/Windbot/**` minus
`BotWrapper.cs`), the YGOSharp files WindBot uses, `Core/Bot/` (SmartExecutor, BoardEvaluator, BattlePredictor,
BrainRules, EffectSimulator, DuelStateBus, LocalDuelHost, LoopbackBotSeat, Lookahead, ArenaReport), the
character model and registry and `BotRoster`, as of Unity `dev` `19c6158`. No change to how the bots play.
- What came from the game now comes through `BotHost`: `Log`, `Cards` (the SQLite connection), `Files` (locale,
the expansions' `.cdb`), `DeckLimits` (`#ruleset` → caps) and `BotConf` (bot.conf). `CharacterRegistry` keeps
`Scan`/`Publish`/`LoadFromDisk`; the game's UniTask `Init`/`Loaded` stay in the game.
- `BotArena` for `linux-x64` and `win-x64`, same options and report as the Unity repo's `Tools/BotArena`.
`--host local` on both; `--host server` on Windows only (on Linux the engine's server finds no cards).
- Tests: 100 Smart-vs-Smart `AI_OldSchool` duels on Linux with 0 errors; the same `--seed` gives the same report.