In the lab, this paragraph seemed a bit ambiguous:
"Each of these units also has a method called 'attack' which takes another character as an argument. The 'attack' method should print the text "HIT" and force the defender to deduct some amount ('strength') from their 'health'."
Does that mean we are deducting the value of the attacker's strength from the defender's health, or are we using the value of the defender's strength to evaluate the defender's health?
In the lab, this paragraph seemed a bit ambiguous:
"Each of these units also has a method called 'attack' which takes another character as an argument. The 'attack' method should print the text "HIT" and force the defender to deduct some amount ('strength') from their 'health'."
Does that mean we are deducting the value of the attacker's strength from the defender's health, or are we using the value of the defender's strength to evaluate the defender's health?