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.
Thanks, I enjoyed making this one.
I don't know much javascript but I solved it anyway because the theme was really cool, good job!
I changed the random tests to include this random method. It seems like a better practices. Thank you!
Another solution to this issue is to choose random actions with the following code:
changed, thanks again
Thanks for noticing the problem, the assassin's special attack was not being tested correctly, I added new lines to tests in both C# and Python
This comment is hidden because it contains spoiler information about the solution
C#: Random tests may generate invalid
Action
values:This line of code may generate
act1 == 3
which does not correspond to the Action enum values (which are 0, 1, and 2). Either change random tests (replacerandom.Next(1, 4)
withrandom.Next(3)
everywhere) or change the definition ofAction
to the following definition:I confess it took me a while to figure out how to solve it. good kata.
dirty code practices
bealtiful
Oh wow. This looks like my first kata was a little bit too predictable, thanks to u man
Good observation, i hadn't noticed, i made the change
In random tests you sholdn't recareate object Battle before each call of play_turn.
Loading more items...