Skip to content
Snippets Groups Projects
7.py 142 B
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)