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.
Also why
The Wall blocks your way
has no full stop butYou do not have a ship to cross this sea.
This comment is hidden because it contains spoiler information about the solution
-Jon Snow's first impression of the Wall
-thoughts of Jon Snow
Nice kata, but I wonder why considering the wall only on the north side.
done.
This is not resolved.
You're relying on randomness to get you off the map. If all numbers generated are too small, the test won't work.
Add a fixed test.
Done. I created another group of random tests that include directions with higher numbers
Thanks so much for all your help!
Simple. Add a fixed test with something like
"N10 S10"
, and check that you're running into the wall, and do not get back to where you started.I just realised my solution breaks for distances over single digits.
locales
was. But you cured that fly by shooting it (with a cannon).( I think it should have been a
const
ant but was actually avar
iable BTW. )Ah I see. I'll have to figure out a way to test for that.
I wasn't sure what users could see. I've removed everything from preloaded now
thanks
Where are there constants in my code?
Thanks for the feedback.
I've removed everything from the preloaded section.
I wasn't sure what the user could see.
Constants should have names in ALL_CAPS. Also, take your reference solution out of Preloaded and put it in Tests where it belongs.
There is no point putting
locales
in user solutions again since it's already pre-defined. You should also mentioned that it's pre-defined too.Yes, by checking intermediate results I meant leaving the array temporarily, then coming back into it.
That still isn't tested.
Loading more items...