deohgu / deohgu/wave-function-collapse-js
`picksRandomIdentity.js` to use correct direction
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
## Description
Currently used direction is not relevant, because it refers to the direction the original cell is in reference to the current neighbour.
But since we are looking at the rules in the neighbour, we want the direction of the original cell in relation to the neighbour and not the other way around.
i.e direction says north because we are checking the north neighbour, but we actually want to check south in the rules as original cell is south of it.
For now it works, as all of the direction rules are the same, but in the future we will need specific directions, specially when implementing #1.
## Difficulties
- Having to use another loop causing performance to drop?
- See if there are ways around this.
## Recommendations
- See the `direction.js` utils, more specifically the `whichDirection` function.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.