I just wanted to know if my algorithm was right, 'cause I could not get AC during the contest

1. When abs(f1 - f2) == abs(c1 - c2) the min number of moves is 1.
2. When odd(f1 + c1) == odd(f2 + c2) the min number of moves is 2.
else no move...
Am i right???, if no, please tell me a counter-example, thanx in advance, frustraded,
Yandry.
