Skip to content

Conversation

@truggeri
Copy link
Owner

Summary

This is mostly procedural code that follows the description of the puzzle behavior. The solution is large enough to be in two files - one housing the puzzle structure and methods. Rather than storing the state of the puzzle in a two dimensional array, I used a map to store the walls and a map to store the boxes. This keeps the O(1) lookup speed, but will benefit memory storage in the case of a sparse warehouse.

@truggeri truggeri self-assigned this Dec 30, 2024
@truggeri truggeri merged commit e13d780 into main Dec 30, 2024
1 check passed
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.

2 participants