/**
 * This function calculates the damage dealt by a player to an enemy in a game scenario.
 *
 * @param enemyHealth The current health of the enemy.
 * @param playerLevel The level of the player.
 * @param playerWeaponDamage The damage of the player's weapon.
 * @return The calculated damage dealt by the player.
 */
fun calculateDamage(enemyHealth: Int, playerLevel: Int, playerWeaponDamage: Int): Int {

    val damagePerHit = List(enemyHealth / playerWeaponDamage) { playerLevel * playerWeaponDamage }
    return damagePerHit.sum()
}
/**
 * This function calculates the damage dealt by a player to an enemy in a game scenario.
 *
 * @param enemyHealth The current health of the enemy.
 * @param playerLevel The level of the player.
 * @param playerWeaponDamage The damage of the player's weapon.
 * @return The calculated damage dealt by the player.
 */
fun calculateDamage(enemyHealth: Int, playerLevel: Int, playerWeaponDamage: Int): Int {
/**
 * This function calculates the damage dealt by a player to an enemy in a game scenario.
 *
 * @param enemyHealth The current health of the enemy.
 * @param playerLevel The level of the player.
 * @param playerWeaponDamage The damage of the player's weapon.
 * @return The calculated damage dealt by the player.
 */
fun calculateDamage(enemyHealth: Int, playerLevel: Int, playerWeaponDamage: Int): Int {

    val damagePerHit = List(enemyHealth / playerWeaponDamage) { playerLevel * playerWeaponDamage }
    return damagePerHit.sum()
}