Updated specific locations to be searchable, take a look at Las Vegas as an example.

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.

4
[2022 Day 22 (Part 2)] [Rust] Need help with the correct cube wrapping logic!
Post Flair (click to view more posts with a particular flair)
Author Summary
xkev320x is in Rust
Post Body

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...

Author
Account Strength
100%
Account Age
9 years
Verified Email
Yes
Verified Flair
No
Total Karma
2,742
Link Karma
944
Comment Karma
1,730
Profile updated: 1 day ago
Posts updated: 6 months ago

Subreddit

Post Details

Location
We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 year ago