Skip to content

Wrap torus start and goal cells onto the board - #7

Open
kvnloo wants to merge 1 commit into
xt4d:mainfrom
kvnloo:fix/wrap-start-goal-torus
Open

Wrap torus start and goal cells onto the board#7
kvnloo wants to merge 1 commit into
xt4d:mainfrom
kvnloo:fix/wrap-start-goal-torus

Conversation

@kvnloo

@kvnloo kvnloo commented Sep 2, 2026

Copy link
Copy Markdown

findPath / floodFill kept off-board start/goal cells as graph keys, so wrap routes returned cells like {-5,0} that no on-board neighbor occupies.

Wrap those endpoints onto the torus (neighbor clamp from origin is unchanged).

Pin: node --experimental-default-type=module --test gameblocks/modules/behavior/GridPathPlanner.wrap-start-goal.test.js

SHA: effc846e1025944edf5d6ac4940815e416caab80

No origin issue. Origin target: xt4d/GameBlocks (do not open until Linear HITL is Done).

findPath/floodFill kept off-board coordinates as graph keys, so wrap
routes returned cells like {-5,0} that no neighbor step can occupy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant