![]() |
.. (לתיקייה המכילה) | |
What is the correct return value in the case where the path gets to the end position but does not end there? | |
This should clarify this issue: -If the path at any stage goes outside the board limits or into a black square (including the case where it previously got to the end position) then the return value is Illegal. -If the above did not happen then the return value is Success only when the path finishes at the end position. -If both the above did not happen, return Failure. *Note that the Path is allowed to repeat its steps and go through the Start/End positions. |