Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
You had your console.logs inside
whoWon
put them at the start ofdeclareWinner
and you'll see the starting health of the fighters is never < 1.That's not true, you're printing the data after several rounds.
A dead fighter can't attack another. So there is always one winner.