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.
This is a classic problem that can be solved using recursion and I think one of those solutions should be highlighted.
The recursive technique for solving this type of problem is a classic one and I think it should be highlighted.
Sorry, I think I'm missing something - how so? You're checking the health of the fighter who was attacked on each subsequent iteration of the loop. It only executes if that fighter has health remaining, from what I see.