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.
@reggaeguitar
Yes. What you say is correct when going from LHS 'X' to the RHS 'X'. The line is ambiguous in that direction. But it is not ambigous traversing the line in the other direction (RHS to LHS).
So the line is valid. Because of the rule "Sometimes a line may be valid in one direction but not the other. Such a line is still considered valid."
I still don't understand what exactly you mean by "ambiguous" then. In the fifth good example you can turn left or right when you get to the first cross, how is that not ambiguous?
@reggaeguitar. Does it matter?
If it is false (because ambiguous) or false (because doesn't use every character) then either way it is false, right?
You say the first it false because it's ambiguous because you can go the long way or the short way but the short way does not satisfy the rule "Every line "character" found in the grid must be part of the line. If extras are found then the line is not valid." Am I missing something here? This one should be true based on my understanding
First answer:
I don't think so. This test is one from
loopAmbiguous
It is not
false
for ambiguousness. It isfalse
for being a line - because it is ambiguous.And it is ambiguous because there is a choice to go short way (1 step) or long way (full loop) to get from either
X
to the otherX
Second answer:
I beieve this one comes under the rule
If you follow path the left
X
to the rightX
you eventually get to the bottom right+
and want to go straight ahead. But it is illegal to go straight ahead because+
is ONLY for corners!And if you follow path from bottom-right
X
to leftX
you will find yourself at the 3rd+
in top row and you wont know whether to go left or right. So it is ambiguous.So fails in both directions. So
false
this is not a line.