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.
I've been using Go for a while. It would be cool to translate this into Go. But I've always found translations difficult to do. Usually the myself and the kata author have no idea how to do it.
If I translated it into Go, would you help me do that?
Thanks for ressurecting this kata, it's a pretty good one.
I don't understand the way you're handling the new lines at all. I don't see why my original code works for all but a few tests? There must be something different about those ones.
But I'll just use that last line of code you provided. Thanks again.
To get it to pass, I had to do this:
So that it removes the leading and trailing '\n' for the small tests.
The last few lines of my code - which I use to return the problem in the correct format are these:
Which gives the correct format for the bulk of the problems. If I remove the leading and trailing '\n' then the first few tests pass, but the rest don't.
Hi, I've basically solved this using python. But I get kind of a formatting error with the first few tests...
The bulk of the tests seem to need a leading and trailing '\n' newline character, but the first few don't...
Sorry for the long post, but I don't know how to show this more concisely.
But then all the below cases solve no problem at all:
I really enjoyed this kata! Is the author accepting translations?
I have the crappiest solution possible. Tell me I'm wrong!
I answered my own question. It is.
Is this doable in Python in 2023?
I really enjoyed this one. Great kata, thanks.
What an excellent kata!
For the life of me I can't see why this test is true:
You can move to squares (0,1) and (1,0) but you can't tell anything after that can you?
At (1,0) you smell the wumpus and feel the wind of a bottomless pit. But you don't know which is which - so you can't do anything.
At (0,1) you feel the wind of a bottomless pit. But again, you don't know whether it's down or right - so you can't move any further.
And you can't use the knowledge that both of those squares feel windy, because there could be pits at (0,2) and (2,0). With the wumpus at (1,1).
A hint would be appreciated :)
I just replaced your factorial function with one I think is a bit simpler. The big.MulRange function is quite handy.
Man, I must be looking at this one strangely. I can get the level, but the border around the outside is very difficult to do. Seems like a level 3 kata to me. Must be missing something.
Awesome, thanks.
Problem with Go random tests I believe:
Copy/paste goes all wrong, but you can see what I mean I think. Every case where there's a rook or queen below the king, the reference solution fails to identify the position as check.
With board
|---|---|---|---|---|---|---|---|
| | | | | | | | |
|---|---|---|---|---|---|---|---|
| | | | | | | | |
|---|---|---|---|---|---|---|---|
| | | | | | | | |
|---|---|---|---|---|---|---|---|
| | | | | | | | ♔ |
|---|---|---|---|---|---|---|---|
| | | | | | | | ♜ |
|---|---|---|---|---|---|---|---|
| | | | | | | | |
|---|---|---|---|---|---|---|---|
| | | | | | | | |
|---|---|---|---|---|---|---|---|
| | | | | | | | |
|---|---|---|---|---|---|---|---|
Expected
: true
to equal
: false
Loading more items...