Time flies while you're having fun, but then one day your bio says something about being a 30+ year veteran in software engineering. Still, I've not seen it all, let alone done it all (yet).
You're right about the (n+6)%6 (its correct, but the +6 does nothing).
However, SavagePixie cleverly rotated the items in the array down one position, to essentially pre-calculate the -1 offset for the first item - so its working correctly.
You're right about the (n+6)%6 (its correct, but the +6 does nothing).
However, SavagePixie cleverly rotated the items in the array down one position, to essentially pre-calculate the -1 offset for the first item - so its working correctly.
Ah, I see. Didn't pay attention there, my bad. Thanks for the explanation. 😀