Repository navigation
AI の設計メモに、不採用の案の原因を数字で確かめた結果を書く - #666
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017UH8jmVAphB8dosyfV7xYc
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017UH8jmVAphB8dosyfV7xYc
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017UH8jmVAphB8dosyfV7xYc
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017UH8jmVAphB8dosyfV7xYc
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017UH8jmVAphB8dosyfV7xYc
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017UH8jmVAphB8dosyfV7xYc
imachan7
added a commit
that referenced
this pull request
Nov 20, 2026
## 目的 AI がマジックを無駄撃ちしていたのを止める。 ## 変わる挙動 既定を KEEP_GUARD_POLICY にする(server/src/ai/keepGuard.ts・spellFilter.ts)。 1. 自分のターンには、フラッシュ効果にアタックステップ・バトルを終わらせる効果を含むマジックを撃たない(ウィンドウォール・絶甲氷盾など)。 2. 頭が絞り込みつきの破壊で、相手に当てられる個体がいないマジックを撃たない。 - 例:ソウルリープ。後ろに対象を取らない【連鎖】があるので、ルール上は的がいなくても使える。 3. お互い・両陣営の破壊(デッドリィバランスなど)は、自分の場が空で相手にだけ個体がいるときしか撃たない。 | 変えた条件を読む場所 | 盤面 | テスト(part1040) | 戻すと落ちるか | | :-- | :-- | :-- | :-- | | keepGuardPick(自分のターン) | メインステップ、手札にウィンドウォール | 撃たない | 落ちる(BLOCK_POLICY は撃つことを確認) | | wastedSpell(破壊の的) | 相手に疲労状態の個体なし、手札にソウルリープ | 撃たない/疲労状態の的がいれば撃つ | 落ちる | | wastedSpell(お互いの破壊) | 相手の場が空、手札にデッドリィバランス | 撃たない | 落ちる | ## 計測 - **手が変わったか**(BLOCK_POLICY と並べた 400局) - 手が変わったのは 53局。 - 内訳:マジック→パス 144回、マジック→アタックステップへ 114回、別のマジック 13回、ターン終了 2回。 - 実例を読み、すべて「撃っても破壊の的がいない」「アタックステップを終わらせる効果を自分のターンに撃つ」場面であることを確かめた。 - **守りのマジック**(既定同士で先後を入れ替えた 1200局) - 自分のメインステップで撃った回数:49 → 0 - 相手のアタック中に撃った回数:106 → 144 - **勝率**:BLOCK_POLICY に対して構築済み 4800局で 49.5%(48.0〜50.9)。 - 同じ方針同士の測定でも 48.6〜50.2% の幅があるので、差は見えない。 - 手が変わった局だけで見ると、新の勝率は約 64%(局数が少ないので参考値)。 ## テスト - smoke 62766件合格 - typecheck・build:client・codemap:check も通過 ## その他 - ai-bench に `BS_AI_OLD=block` を足す(既定を替える PR を、替える前と比べるため)。 - 設計メモ(AI_OPPONENT.md)と HANDOFF は #666 にまとめる。 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_017UH8jmVAphB8dosyfV7xYc --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目的
#663 の後に測って入れなかった案について、「なぜ勝率が下がったか」を数字で確かめた結果を残す。
変わる挙動
なし(docs/design/AI_OPPONENT.md と HANDOFF.md だけ)。
中身
テスト
文書だけ。typecheck 0エラー。
🤖 Generated with Claude Code
https://claude.ai/code/session_017UH8jmVAphB8dosyfV7xYc