def chance_to_hit(accuracy, evasion):
    """
    Calculates the chance to hit for the given accuracy and evasion.

    Parameters
    ----------
    accuracy : int
        Accuracy rating of the attacker
    evasion : int
        Evasion rating of the defender

    Returns
    -------
    float
        chance to hit
    """
    return accuracy / (accuracy + (evasion * 0.25) ** 0.8)