• Directions unclear in the-warrior


The directions for the duel are unclear:

"every turn one of the warriors will hit another one and the last will lose his health in the same value as the attack of the first warrior. After that, the second warrior will do the same to the first one. If at the end of the turn the first warrior has > 0 health and the other one doesn’t, the function should return True, in the other case it should return False."

This tells me that I should merely subtract the health from each of the players by the attack values of their opponents, but this means that both the players will have a health value above 50 and the function. According to the description, this means that the function will always return false, which makes no sense looking at the assertions.

This begs the following questions:

How many turns are there? When does the fight stop?