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.
Some annoying parts of this kata:
This is a fun and challenging kata, and I commend you as a person "pretty new to coding" for authoring a kata as sophisticated as this!
My only possible criticism: Is it maybe a little inconsistent that we report the healing only up to the max_hp (80 + 60 in the example, because the max_hp is 140), but we report the damage down past zero (80 + 80 in the same example, i.e., damage of 160 for a target object with a max_hp of only 140)? Just wondering whether those damage reports should be limited in the same way that the healing report is limited. Not necessarily an issue, but I'd be interested in what others have to say about it.
The initial argument
str
shadows the builtinstr
.Duplicate
I am sure this is duplicate, but here is raku translation anyways