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 issue is fixed
The issue is fixed
PHP translation
PHP translation
For Golang:
Something wrong with the random tests
Random tests
Log
[^][ ][ ]__
[x][ ][ ]__
[ ][ ][ ]
Arrow is aimed: true
Expected
: true
to equal
: false
The same program in vscode:
[^][ ][ ]_
[x][ ][ ]_
[ ][ ][ ]_
Arrow is aimed: false
Random tests
Log
[ ][ ][ ][ ][ ]__
[ ][ ][ ][ ][ ]__
[ ][ ][ ][ ][ ]__
[ ][ ][ ][x][ ]__
[^][ ][ ][ ][ ]__
Arrow is aimed: true
Expected
: true
to equal
: false
The same program in vscode:
[ ][ ][ ][ ][ ]__
[ ][ ][ ][ ][ ]__
[ ][ ][ ][ ][ ]__
[ ][ ][ ][x][ ]__
[^][ ][ ][ ][ ]__
Arrow is aimed: false
!!!!!!! ============= !!!!!!!!
Another ramdom tests case:
[ ][ ][ ][ ][ ]__
[>][ ][ ][ ][x]__
[ ][ ][ ][ ][ ]__
[ ][ ][ ][ ][ ]__
[ ][ ][ ][ ][ ]__
Arrow is aimed: true
Expected
: true
to equal
: false
Why false is expected here?
Approved by someone
Very nice kata.
If I'm understand the random test output correctly for golang, I'm seeing random tests like this:
which expects the answer to be false.
Similar:
Where
118
isv
and120
isx
The test is expecting this as false...
Random tests are even failing on some 3x3s, but I've added every combo of <>^v and x possible in a 3x3 grid, with correct expected results in a 3x3 grid to the sample tests and they all pass.
It looks like Go random test cases are bugged.
Sometimes the expected solution is wrong.
Take a look please.
#11b30/3q6:0z:vV
i thought the problem was what you describe
and i solved it accordingly
Good job, it turned out really interesting kata
@Ruscore I created a continuation of the Kata https://www.codewars.com/kata/62bc86a35e6abb0024477341 with barriers and in 3d.
@Ruscore I created a continuation of the Kata https://www.codewars.com/kata/62bc86a35e6abb0024477341 with barriers and in 3d.
Reference solution returns
true
for this case:I guess you're doing something wrong, or I misunderstand something. Can you give the whole input?
Is Go translation ok?
Loading more items...