good luck figuring out how this works

check out FaRTy1billion's rule generator here: rule generator