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.
Recursion is excellent to master if you intend to head into functional paradigm.
Hey
coreysleve
,the usage of the Random.Next(Int32)-method in your C#-Translation is a little bit wrong.
It's written in the documentation: Returns a non-negative random integer that is less than the specified maximum.
Therefore at this code line
string first = name[r.Next(1)];
in random tests will be returned always the first element (index 0) from the name-array.Can you check it once again please?
Thanks. ;)
Thank you. Accepted!
The fighters take turns attacking each other, and one of them attacks first (indicated by firstAttacker parameter). The difference between the first and second test case is who attacks first which is detrimental to the final outcome.
Added a C# translation