This topic is about the puzzle Self-driving car testing.
Feel free to send your feedback or ask some help here!
This topic is about the puzzle Self-driving car testing.
Feel free to send your feedback or ask some help here!
This one has a few issues.
Typo: in the Output description it says to put an X in the current position of the car, while the description in the Goal section and in the example say to use a # .
Test case 3 has fewer road sections than moves. Not sure if that was intentional or not.
While I’m quibbling, it wasn’t very clear in the description that the first road section did not show the initial position, but rather the position after the first move was completed. Since none of the test cases start with a turn, I had to count moves and outputs in the test cases to figure that out.
I concur with MrAnderson, test 3 is missing one road section so I had to put a test to avoid going out of range of my list.
Also, nothing specifies in the description that the car is going downward. I assumed it was the contrary and had false positives on TC 1 and 3 since they are mirrored.
I fixed the testcase 3 (and corrected the typo).
The line : “The number N of lines describing the road pattern” sounds confusing to me, it sounds like the road is made of N lines.
Also it’s not explicitely said if you scroll from top to bottom or from bottom to top.
The example doesn’t help understanding, and if you try the testcases it doesn’t help either, as it only show the first line of the expected output.
So, as I don’t like to start a problem if I don’t have full understanding of what’s asked, I had to go to the contrib page to see the expected outputs.
I don’t think you should re-word or what but showing a better example like testcase 2 would make it more straightforward to understand.
I don’t see what you mean. To look at the testcases, you have to click on the top-right icon (Show testcases) of the testcases box.
Oh I didn’t know that, I’ll make good use of it, thanks.
Ignore my complaints about the ambiguous wording then.
I think the example really should contain more than just straight driving, and should include a sequence of several different instructions and several different road types. Either that, or the description should illustrate what that looks like. It may be deduced that the car is expected to travel downwards at each step, regardless of whether it’s straight, left, or right, but it’s never explicitly said, and this may mean needless trial and error.