Sep-26-2020, 09:55 PM
Your parity is off. If you change the conditional to
(x + y + 1)%2
, it works. Or you could change your tests to be the reverse. That should work as well.