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.
Thanks for your response. I needed to dup the fight string. That is all.
Hi,
Nice kata premise....but maybe I'm misunderstanding. My (ruby) test cases are all ok, but some random ones don't seem correct. Here's an example:
The way I see it,
"pz*dssm"
evaluates to"p***ssm"
after taking into account the bombs.Then the scoring is 5 points for left side (p + s + s) and 4 points for the right side (m). Left side should win, but I get:
Never mind....I see that the maze size changes. I thought it was always 7x7.
Hi, I'm enjoying this kata, however, I'm confused by one of the specs. I'm passing 49 tests and failing the first one which is:
N N N W W W N N W W S S S S W W N N N N N N N N N N W
✘ Should return Finish - Expected: "Finish", instead got: "Dead"
Those directions do not lead to the finish...Thanks!!
So I changed my code, deleted the line in question (as per your comment) so the decode method doesn't have it anymore, and still I'm having the same issue:
Expected: "Some say the world will end in fire, Some say in ice. From what I've tasted of desire I hold with those who favor fire. But if it had to perish twice, I think I know enough of hate To say that for destruction ice Is also great And would suffice.\v\v\v\v\v\v\v\v\v\v\v",
instead got: "Some say the world will end in fire, Some say in ice. From what I've tasted of desire I hold with those who favor fire. But if it had to perish twice, I think I know enough of hate To say that for destruction ice Is also great And would suffice."
Why would the Expected output be affected by my coding in the first place?
But my output for code and decode are correct (regardless of how it's done) as shown in the example in my above comment.
Why is my code affecting the expected test results?
This comment is hidden because it contains spoiler information about the solution
Here is an example of the failed test:
Expected: "Some say the world will end in fire, Some say in ice. From what I've tasted of desire I hold with those who favor fire. But if it had to perish twice, I think I know enough of hate To say that for destruction ice Is also great And would suffice.\v\v\v\v\v\v\v\v\v\v\v",
instead got: "Some say the world will end in fire, Some say in ice. From what I've tasted of desire I hold with those who favor fire. But if it had to perish twice, I think I know enough of hate To say that for destruction ice Is also great And would suffice."
Hi, when doing this in Ruby, the expected answer of the decode test leaves vertical tabs at the end of the string (\v\v\v\v..). Is this correct? I thought we were supposed to clean those up.