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 comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
That could be one way to make it more interesting. Or maybe there could be a % chance to hit and a % critical chance, and they would have to estimate the average damage per attack. A kata similar to this one that was significantly harder had two fighters harming each other in turn, and required a knockout to be declared.
This comment is hidden because it contains spoiler information about the solution
I think this is a little dangerous because I imagine there could be a situation with two people with the same name?
Still nice code!
For anyone reading- turns out not using "var" means you're declaring a global object. I have since refactored the code to include "var" because it bothered me.
Just realized that I forgot "var" was a part of Javascript while writing this code. Interesting that the language works in such a way that I got away with it.
I liked the problem but the directions said b->w instead of d->w which had me scratching my head for a bit at first.