- All colours are connected to their respective identical colour, in a continuous path and without overlaps or crossovers.
A higher resolution is required to access the IDE
- 2
Learning Opportunities
This puzzle can be solved using the following concepts. Practice using these concepts and improve your skills.
Statement
The Goal
Rules
- Paths must consist of one or more horizontal and/or vertical segments to connect adjacent tiles.
- Each colour must be connected to the other instance of the same colour using a continuous path.
- A single tile can only be used in ONE path and any two paths CANNOT overlap or cross each other.
- Paths must remain entirely within the grid boundaries.
- Every usable tile must be used in a path, so that there are no empty tiles remaining.
- Special tiles can only be used in the manner specified in their respective rules.
- Response time exceeds the time limit.
- The output is not properly formatted.
- Attempted to create an invalid path.
- Number of turns exceeds the turn limit.
🐞 Debug Mode
Enable the debug mode using the settings icon to provide extra information when hovering over tiles in the viewer.
Game Input
Line 1: Space separated integers h w representing the height and width of the puzzle.
Next h Lines: String of length w representing a row of the puzzle.
Integers (
The full stop character (
Directional tiles (
Blockers (
Next Line: Integer k representing the number of checkpoints in the puzzle.
Next k Lines: Space separated information (x y c) representing the coordinates (x , y) and colour (c) of a checkpoint. Where x and y are integers and c is a string.
Checkpoints are tiles that MUST be used as part of the path connecting the colour (c).
- x1 - X-Coordinate of the first tile (integer).
- y1 - Y-Coordinate of the first tile (integer).
- x2 - X-Coordinate of the second tile (integer).
- y2 - Y-Coordinate of the second tile (integer).
- colour - Colour identifier (integer/character).
Tiles MUST be in the same plane either horizontally or vertically (x1 = x2 OR y1 = y2).
Example
0..e (row)
V... (row)
..H. (row)
0XXe (row)
2 (k)
0 2 0 (x,y,c)
2 0 e (x,y,c)



3 1 2 1 e
2 0 2 1 e
2 0 1 0 e
1 2 1 0 e
2 2 3 2 e
3 2 3 3 e

0 ≤ k ≤ 15
0 ≤ x < w
0 ≤ y < h
c is a digit (
A colour identifier will appear exactly twice within a puzzle.
Maximum number of distinct colours in a puzzle is
A puzzle will always contain at least one special tile (
Checkpoints are located on empty (
Allotted response time for first output is
Allotted response time for subsequent outputs is
Turn limit is
A higher resolution is required to access the IDE