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.
What do you think happens if a String argument is given? What is supposed to happen?
wow amazing
Thanks for your response. I needed to dup the fight string. That is all.
The ruby solution returns "Left side wins!" when I am checking it. I tested the exact solution that is used in random tests. There are 38 people who finished it successfully. Maybe there is some bug in your solution.
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:
I enjoyed this kata and I think I solved it, but one of the Test cases is returns nil instead of lost, and it's kinda weird since it passes every Random Test.
Thank you so much for translating :-), please feel free to translate any of my other katas.
Hello
Adrian
here's a PHP translation(I've put less walls[1's] in random testing so it's a bit more balanced outcome between 'Dead','Lost' and 'Finish', hope you don't mind).Fair comment :-), i've updated the details. Thanks for solving.
I'd like to suggest you change this part "The Maze array will always be square ie 7 x 7 but will alter from test to test." to something like this "The Maze array will always be square i.e. 7 x 7 but its size and content will alter from test to test.". I only discovered that the size changes when I opened discuss section. However, great kata anyway.
Thank you for solving. Please could you grade this kate if you havent already :-)
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!!
I tried a few solutions in Ruby, all these solutions give:
Passed: 208 Failed: 0
.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?
Loading more items...