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.
Not the case for Ruby
Hi authors, please add enough tests to this Kata because it's important to realize the real concept on this Kata.
This comment is hidden because it contains spoiler information about the solution
Some of the inputs contain moves even after a player has won. It doesn't make sense.
Groovy translation
I feel like the method name for the Groovy translation should be
whatIsTheTime
in camelCase instead of PascalCaseThis comment is hidden because it contains spoiler information about the solution
The JavaScript translation uses PascalCase for the name of the function (SubtractSum), but according to JavaScript naming conventions it should be using camelCase for this (subtractSum), this should be corrected both in the default code and in the tests.
EDIT: I also got it to work by including an additional default (parameterless) constructor.
I had a lot of issues with this one trying to use a constructor to initialize the name property.
i.e, I had to remove:
public PersonEventArgs(string name)
{
Name = name;
}
And pass the name by doing:
ContactNotify?.Invoke(this, new PersonEventArgs(){Name=name});
Any attempt to pass name resulted in a CS7036 error depicting there was no parameter 'name' of 'PersonEventArgs.PersonEventArgs(string)'
C#: method name should be
PascalCase
(Please refer to implementation of backward compatibility here )Actual and expected are swapped in PHP
I have a problem with randomTests, always one of the tests fails in the same way after 6-10 tests.
Env:
PHP 8.0
Json of array elements
$piecesPositionList
My result:
Win:Yellow
Tests result:
The problems I see:
Any possible suggestion of a solution is welcome.
C# initial code could mention that files are noted with a
string
and not achar
I run into a problem if the last move in the list is the winning move.
For theese moves:
(
[0] => C_Red
[1] => F_Yellow
[2] => G_Red
[3] => B_Yellow
[4] => F_Red
[5] => B_Yellow
[6] => D_Red
[7] => E_Yellow
[8] => G_Red
[9] => D_Yellow
[10] => D_Red
[11] => D_Yellow
[12] => C_Red
[13] => C_Yellow
[14] => D_Red
[15] => C_Yellow
[16] => B_Red
[17] => B_Yellow
)
Yellow is winning on the diagonal from B3 to E0.
But the test expects "Draw" not "Yellow".
C++ translation
Loading more items...