Skip to content

feat(world-builder): exit validation with BFS connectivity check and atomic rollback (#10) - #379

Open
Rodrigoue9 wants to merge 2 commits into
Bitcoindefi:mainfrom
Rodrigoue9:feat/map-exit-storage-validation
Open

Rodrigoue9 wants to merge 2 commits into
Bitcoindefi:mainfrom
Rodrigoue9:feat/map-exit-storage-validation

Conversation

@Rodrigoue9

Copy link
Copy Markdown

Summary

Resolves #10 by implementing map exit edition and validation with BFS connectivity checks and atomic rollback guarantees on corrupt data.

Key Changes

  • Map Exit Validation & Persistence: Validates map exits against target map bounds, obstacles, and directional connectivity.
  • BFS Reachability Check: Ensures exits are reachable from walkable tiles using breadth-first search.
  • Atomic Rollback: Ensures partial modifications or corrupt payloads roll back cleanly without leaving orphaned exit states.
  • Automated Vitest Suite: 22 comprehensive unit and integration tests passing in �pi/src/tests/mapExitStorage.test.ts.

Closes #10

@gitar-bot

gitar-bot Bot commented Sep 17, 2026

Copy link
Copy Markdown

Important

You are using the Gitar free plan. Upgrade to unlock code review, CI analysis, auto-apply, custom automations, and more.

Gitar

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.

Etapa 2: edicion de salidas entre mapas

1 participant