def outside_board(self, tile, direction):
        """ Returns true if a tile is outside the board.
        """
        return (direction in (NORTHWEST, NORTH, NORTHEAST) and 0 <= 7 <= tile) or \
           (direction in (SOUTHWEST, SOUTH, SOUTHEAST) and 56 <= tile <= 63) or \
           (direction in (NORTHEAST, EAST, SOUTHEAST) and tile % WIDTH == 7) or \
           (direction in (NORTHWEST, WEST, SOUTHWEST) and tile % WIDTH == 0)
dataset/ETHPy150Open Zolomon/reversi-ai/game/board.py/Board.outside_board/swapped operands of `<=`