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.
JS node 14 should be enabled
Should have sample tests on output not limited to
0
onlyDescription does not mention what does it count as having their backs covered by another
pawn
?????a pawn attack(and defend as well) only the 2 square on the sides in front of him.
This is not the case for side-most squares. You should probably mention thatattacks and defends can only be applied to diagonal squares in front of the white pawns, but bear not to exceed the boundaries of the chessboard
or something equivalentNO example tests
Other relevant information that is crucial in solving the kata should not be provided with a wiki link only
the random tests generation needs to be constrained, to be sure they generate every type of cases. Currently, there is clos to no chances an input generates True (hence the number of tests, I guess, btu that's not the way to go to handle this)
Hi,
the problem will have matrices of dimensions from 3 to 10
-> this is ambiguous. Prefersize 3 to 10
, considering the context.Cheers
PS: I'm not sure either it's interesting, compared to the 2D version... Make it N-dimensioned? (the directions would need to be given in a different way, then... Signed numbers? as the indexe of the dimension to update, for example? Not sure that's actually better... The recursive part could be, tho)
Duplicate of katas with array manipulation based on indices
Forseeable possible problem:
Values like
n = 17
andn = 1
(which the result consists of only 1 element) are indistinguishable to each other after handshaking.