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
Odds of winning and odds of max profit are calcualted incorrectly. It is assumed each bet results in profit. The last test shows that this is not always the case.
NO random tests in C#
Assert.AreEqual
should be usedNeeds random tests.
Actual test throws in jagged arrays like
[[0, 1, 0, 0], [0], [0, 0]]
which is not a grid.Test setup is horrendous: it calls the function with the same arguments multiple times instead of reusing the result, reuses the same object for this, and uses
Test.expect
with no test feedback.This also means modifying input object will break the tests.
There are already like a million basic pathfinding katas already approved. This kata is basically a duplicate.
I suggest fixing a few sentences in the Instructions for clarity. My suggested versions are below:
-If the player has at least 6 more power than the enemy (including modifiers), the player automatically wins, as the enemy's combat score couldn't possibly exceed the player's.
-If the player has less power than the enemy (including modifiers), the player can only win if the enemy rolls low enough for the player to have a chance. In this instance, the method should return a range equal to the ENEMY’s dice rolls which would give the player a chance to win.
C translation (author inactive)
( Haskell, possibly others )
Description is horribly underspecified. Expected outputs include
"f(x) = ", "f(x) = x + -1", "f(x) = -1x + -1"
, which is not intuitive and not specified.Is a constant function even linear? This is arguable, so should also be explicitly specified one way or the other.
the description is using global variables (
i
)JS Node 12. should be enabled
Python new test framework should be used
Ruby 3.0 should be enabled
Loading more items...