Newer
Older
def can_eat(h, f):
return (abs(h[0] - f[0]) == 1 and abs(h[1] - f[1]) == 2) or \
(abs(h[0] - f[0]) == 2 and abs(h[1] - f[1]) == 1)
def can_eat(h, f):
return (abs(h[0] - f[0]) == 1 and abs(h[1] - f[1]) == 2) or \
(abs(h[0] - f[0]) == 2 and abs(h[1] - f[1]) == 1)