Clarification Request: Example

Clarification Request: Example

Quoting the problem statement:

Lines passing through white circles must pass straight through the cell, and make a right-angled turn in a cell next to the white circle (left or right)

However, in the given example, if I've read it right, the path passes through the cells (7, 5) and (7, 4), both containing white circles. Going by the rule, there would have to be a right-angled turn in cell (7, 4). Is there an exception in case of adjacent white cells?

In this case, would a path passing straight through (4, 2), (4, 3), (4, 4) be valid?

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Quoting akki
Quoting the problem statement:

Lines passing through white circles must pass straight through the cell, and make a right-angled turn in a cell next to the white circle (left or right)

However, in the given example, if I've read it right, the path passes through the cells (7, 5) and (7, 4), both containing white circles. Going by the rule, there would have to be a right-angled turn in cell (7, 4). Is there an exception in case of adjacent white cells?

In this case, would a path passing straight through (4, 2), (4, 3), (4, 4) be valid?

Agree. Perhaps the rule for while circles from the wiki is more clear:
"White circles must be travelled straight through, 
but the loop must turn in the previous and/or next cell in its path."
From this definition it is clear, that a straight path through three 
white circles in a row in not valid.

Quoting gk4v07

Agree. Perhaps the rule for while circles from the wiki is more clear:
"White circles must be travelled straight through, 
but the loop must turn in the previous and/or next cell in its path."
From this definition it is clear, that a straight path through three 
white circles in a row in not valid.

Thanks gk4v07. That makes more sense.

  1. A right angle on the path, either immediately before or after a white cell is sufficient.
  2. Straight lines on the path, both immediately before and after a black cell are necessary.

Judges, is this understanding correct?

Thanks.

Leave a Comment

Please sign in to add a comment. Not a member? Join today