This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
I've been banging my head against a wall for like 2 days straight as I can't seem to get the cube wrapping logic correct, so I would really appreciate if someone were to take some time out of their day to check it.
The code in question. It is hardcoded for all the 14 special mappings with regions that I defined with this image. I also checked it with a cube net folder online as to not just rely on bad visual intuition.
It's a lot of repetitive code so it's entirely possible that's where my mistake lies though the marked function should be the only part where it goes wrong. If someone also has an idea how to shorten the code with macros for example, I'd love to hear it!
EDIT: while there was one small error in my cube wrapping logic, the actual big error was me not updating the direction everywhere...
Subreddit
Post Details
- Posted
- 1 year ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/adventofcod...