import random


def calculate_hit_damage(weapon_power_value):
    """
    Method to calculate the damage done to the target player. This is calculated by getting a random value between half
    the weapon power of the attacking player's weapon and the total weapon power of the attacking player's weapon

    :param weapon_power_value: the weapon power of the attacking player's weapon
    :return: the damage that the attacking player's attack has done to the target player
    """
    return random.randrange(int(weapon_power_value / 2), (weapon_power_value + 1))