fix: walk コマンドが経路上の敵・毒を素通りするバグを修正#15
Merged
mskasa merged 3 commits intoebitenginefrom Mar 26, 2026
Merged
Conversation
- walkTo の各ステップで checkCell(enemies) を呼び、敵接触・毒踏みを判定するよう修正 - jumpTo に IsWalkable ガードを追加(目的地のみ判定を明示) - Apply/walkTo/jumpTo/checkCell に enemies []Enemy パラメータを伝播 - CLAUDE.md の walk/jump セクションを実装方針に合わせて書き直し - ADR 0004: walk と jump の2アクションタイプを設ける - テスト追加: TestWalkCollectsApplesAlongPath / TestJumpSkipsEnemiesAlongPath / TestWalkDiesOnPoison Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ebiten を import するルートパッケージを go test の対象から除外し、 Linux CI 環境で X11 ヘッダが不要になるよう修正。 ebitengine ブランチへの push/PR でも CI が動くようトリガーを追加。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <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.
Summary
walkToの各ステップでcheckCell(enemies)を呼ぶよう修正。3lやwで途中の敵・毒を素通りするバグを解消jumpToにIsWalkableガードを追加(目的地のみ判定の意図を明示)Apply→walkTo/jumpTo→checkCellまでenemies []Enemyを伝播docs/decisions/2026-03-26-walk-jump-2.mdTest plan
TestWalkCollectsApplesAlongPath—4lで3個のリンゴを全て収集するTestJumpSkipsEnemiesAlongPath—0で経路上の敵を無視してジャンプするTestWalkDiesOnPoison—3lで途中の毒を踏んで即死する🤖 Generated with Claude Code