task_id stringlengths 10 10 | rule stringclasses 40
values | rule_kind stringclasses 2
values | rule_description stringclasses 40
values | num_colors int64 4 6 | grid_h int64 3 6 | grid_w int64 3 6 | num_support int64 2 4 | support listlengths 2 4 | query_input stringlengths 17 71 | query_output stringlengths 7 99 |
|---|---|---|---|---|---|---|---|---|---|---|
icgr-00727 | flip_v+add_mod | composed | Mirror the grid top-to-bottom. Then, Add a fixed constant to every cell, modulo the colour count. | 5 | 4 | 4 | 2 | [
{
"input": "4 2 3 2;3 4 3 2;4 0 3 1;4 0 0 4",
"output": "2 3 3 2;2 3 1 4;1 2 1 0;2 0 1 0"
},
{
"input": "3 1 4 2;2 0 2 1;1 2 2 0;0 0 1 4",
"output": "3 3 4 2;4 0 0 3;0 3 0 4;1 4 2 0"
}
] | 3 2 0 3;4 2 4 4;2 1 0 4;1 0 3 4 | 4 3 1 2;0 4 3 2;2 0 2 2;1 0 3 1 |
icgr-00302 | rotate90 | atomic | Rotate the grid 90 degrees clockwise. | 4 | 4 | 5 | 2 | [
{
"input": "0 3 3 2 2;3 0 1 2 2;1 2 3 3 2;2 2 2 1 3",
"output": "2 1 3 0;2 2 0 3;2 3 1 3;1 3 2 2;3 2 2 2"
},
{
"input": "2 3 1 1 3;3 0 3 2 1;3 2 1 0 1;2 1 1 2 0",
"output": "2 3 3 2;1 2 0 3;1 1 3 1;2 0 2 1;0 1 1 3"
}
] | 1 0 1 1 3;2 0 1 1 2;1 1 3 3 3;2 3 0 1 0 | 2 1 2 1;3 1 0 0;0 3 1 1;1 3 1 1;0 3 2 3 |
icgr-00345 | flip_v | atomic | Mirror the grid top-to-bottom. | 6 | 5 | 4 | 2 | [
{
"input": "5 3 0 5;0 3 1 1;1 4 2 2;2 0 2 4;2 1 0 2",
"output": "2 1 0 2;2 0 2 4;1 4 2 2;0 3 1 1;5 3 0 5"
},
{
"input": "1 1 3 5;5 3 1 4;5 2 4 4;1 2 5 2;0 3 4 4",
"output": "0 3 4 4;1 2 5 2;5 2 4 4;5 3 1 4;1 1 3 5"
}
] | 1 0 2 3;1 5 3 1;2 5 2 4;5 0 0 1;5 3 1 2 | 5 3 1 2;5 0 0 1;2 5 2 4;1 5 3 1;1 0 2 3 |
icgr-00780 | flip_h | atomic | Mirror the grid left-to-right. | 5 | 5 | 3 | 4 | [
{
"input": "3 3 2;0 4 2;4 0 1;3 1 1;1 0 1",
"output": "2 3 3;2 4 0;1 0 4;1 1 3;1 0 1"
},
{
"input": "2 2 3;3 0 2;2 3 2;0 2 2;2 2 4",
"output": "3 2 2;2 0 3;2 3 2;2 2 0;4 2 2"
},
{
"input": "4 2 3;2 4 1;2 4 4;2 0 1;2 4 0",
"output": "3 2 4;1 4 2;4 4 2;1 0 2;0 4 2"
},
{
"input"... | 1 1 2;0 2 3;1 4 4;2 3 3;0 4 1 | 2 1 1;3 2 0;4 4 1;3 3 2;1 4 0 |
icgr-00889 | border+color_swap | composed | Paint the outer border of the grid a fixed colour. Then, Swap two colours everywhere they appear. | 4 | 5 | 4 | 3 | [
{
"input": "3 1 2 2;3 2 1 3;2 3 3 3;0 2 1 2;0 1 1 0",
"output": "2 2 2 2;2 2 3 2;2 1 1 2;2 2 3 2;2 2 2 2"
},
{
"input": "1 2 3 3;2 3 2 0;0 2 2 3;3 0 0 2;2 3 3 3",
"output": "2 2 2 2;2 1 2 2;2 2 2 2;2 0 0 2;2 2 2 2"
},
{
"input": "3 2 1 1;2 3 1 2;1 3 0 1;0 2 3 1;2 2 3 2",
"output": "2... | 3 2 1 3;0 3 0 3;1 2 3 2;0 2 3 2;1 3 1 3 | 2 2 2 2;2 1 0 2;2 2 1 2;2 2 1 2;2 2 2 2 |
icgr-00045 | max_pool2 | atomic | Replace each non-overlapping 2x2 block with its maximum value. | 5 | 4 | 6 | 3 | [
{
"input": "3 0 4 3 2 1;3 0 0 1 1 1;2 1 3 2 3 1;4 4 1 1 0 0",
"output": "3 4 2;4 3 3"
},
{
"input": "3 2 0 0 1 4;4 2 2 0 2 2;3 4 1 2 1 4;1 4 4 4 4 0",
"output": "4 2 4;4 4 4"
},
{
"input": "0 0 1 2 1 4;3 3 4 0 0 3;2 0 4 3 0 1;1 4 0 1 2 2",
"output": "3 4 4;4 4 2"
}
] | 2 0 2 2 3 4;4 1 3 4 4 4;1 4 1 3 3 0;2 1 4 4 4 0 | 4 4 4;4 4 4 |
icgr-00836 | flip_h+color_swap | composed | Mirror the grid left-to-right. Then, Swap two colours everywhere they appear. | 6 | 5 | 5 | 4 | [
{
"input": "2 0 1 1 0;1 1 2 4 3;1 5 3 2 0;3 4 3 3 1;5 1 1 4 1",
"output": "0 4 4 0 2;3 1 2 4 4;0 2 3 5 4;4 3 3 1 3;4 1 4 4 5"
},
{
"input": "3 4 1 2 4;1 2 5 0 5;2 4 3 3 1;1 1 0 4 3;3 5 1 5 2",
"output": "1 2 4 1 3;5 0 5 2 4;4 3 3 1 2;3 1 0 4 4;2 5 4 5 3"
},
{
"input": "0 4 3 0 0;5 1 4 4 ... | 1 5 3 4 0;1 4 1 5 2;5 3 3 1 0;5 2 0 0 4;3 3 5 1 2 | 0 1 3 5 4;2 5 4 1 4;0 4 3 3 5;1 0 0 2 5;2 4 5 3 3 |
icgr-00229 | flip_v | atomic | Mirror the grid top-to-bottom. | 4 | 4 | 3 | 2 | [
{
"input": "1 3 1;0 3 2;0 1 3;0 0 0",
"output": "0 0 0;0 1 3;0 3 2;1 3 1"
},
{
"input": "3 0 0;3 0 1;0 3 0;3 1 3",
"output": "3 1 3;0 3 0;3 0 1;3 0 0"
}
] | 1 2 1;2 1 1;0 0 2;3 3 0 | 3 3 0;0 0 2;2 1 1;1 2 1 |
icgr-00489 | tile_h | atomic | Concatenate the grid with a copy of itself, side by side. | 5 | 4 | 3 | 2 | [
{
"input": "0 3 3;1 3 1;1 1 2;1 1 0",
"output": "0 3 3 0 3 3;1 3 1 1 3 1;1 1 2 1 1 2;1 1 0 1 1 0"
},
{
"input": "4 1 1;4 4 4;2 1 0;2 3 1",
"output": "4 1 1 4 1 1;4 4 4 4 4 4;2 1 0 2 1 0;2 3 1 2 3 1"
}
] | 1 4 2;3 2 0;4 1 4;3 2 3 | 1 4 2 1 4 2;3 2 0 3 2 0;4 1 4 4 1 4;3 2 3 3 2 3 |
icgr-00201 | flip_h | atomic | Mirror the grid left-to-right. | 4 | 5 | 5 | 4 | [
{
"input": "3 0 0 0 3;0 0 1 0 1;3 3 3 1 2;2 1 1 1 0;1 3 3 0 3",
"output": "3 0 0 0 3;1 0 1 0 0;2 1 3 3 3;0 1 1 1 2;3 0 3 3 1"
},
{
"input": "2 0 2 0 0;1 1 3 1 1;0 1 1 0 1;3 1 0 0 1;1 0 2 2 0",
"output": "0 0 2 0 2;1 1 3 1 1;1 0 1 1 0;1 0 0 1 3;0 2 2 0 1"
},
{
"input": "3 0 0 0 3;2 1 2 3 ... | 2 2 3 1 0;3 3 3 0 2;3 0 3 3 2;0 3 1 3 3;3 1 0 0 3 | 0 1 3 2 2;2 0 3 3 3;2 3 3 0 3;3 3 1 3 0;3 0 0 1 3 |
icgr-00000 | border+flip_v | composed | Paint the outer border of the grid a fixed colour. Then, Mirror the grid top-to-bottom. | 5 | 4 | 4 | 4 | [
{
"input": "4 0 1 1;3 0 2 3;2 0 0 2;1 1 2 1",
"output": "4 4 4 4;4 0 0 4;4 0 2 4;4 4 4 4"
},
{
"input": "4 3 4 0;2 1 3 1;1 1 2 1;4 0 1 3",
"output": "4 4 4 4;4 1 2 4;4 1 3 4;4 4 4 4"
},
{
"input": "1 1 3 4;4 3 3 1;4 1 2 4;4 0 4 4",
"output": "4 4 4 4;4 1 2 4;4 3 3 4;4 4 4 4"
},
{... | 1 1 1 0;4 4 3 3;0 4 1 2;0 0 4 4 | 4 4 4 4;4 4 1 4;4 4 3 4;4 4 4 4 |
icgr-00264 | max_pool2 | atomic | Replace each non-overlapping 2x2 block with its maximum value. | 5 | 4 | 6 | 3 | [
{
"input": "0 4 3 4 1 3;1 1 0 3 3 2;0 1 0 1 2 2;0 1 1 1 1 1",
"output": "4 4 3;1 1 2"
},
{
"input": "4 1 0 4 4 3;3 3 4 3 4 4;0 1 1 4 1 3;3 0 3 0 3 4",
"output": "4 4 4;3 4 4"
},
{
"input": "0 4 2 2 2 4;1 1 0 2 2 4;0 3 4 2 1 0;3 4 3 2 3 4",
"output": "4 2 4;4 4 4"
}
] | 2 4 3 1 4 3;1 1 3 0 3 2;1 1 0 1 3 0;1 4 0 1 4 4 | 4 3 4;4 1 4 |
icgr-00078 | add_mod+border | composed | Add a fixed constant to every cell, modulo the colour count. Then, Paint the outer border of the grid a fixed colour. | 6 | 3 | 3 | 4 | [
{
"input": "2 4 5;2 0 1;5 3 4",
"output": "3 3 3;3 5 3;3 3 3"
},
{
"input": "2 2 1;0 0 1;0 5 4",
"output": "3 3 3;3 5 3;3 3 3"
},
{
"input": "1 3 5;5 2 4;2 5 0",
"output": "3 3 3;3 1 3;3 3 3"
},
{
"input": "3 4 5;4 4 5;3 5 2",
"output": "3 3 3;3 3 3;3 3 3"
}
] | 2 0 1;4 2 3;2 5 5 | 3 3 3;3 1 3;3 3 3 |
icgr-00693 | max_pool2 | atomic | Replace each non-overlapping 2x2 block with its maximum value. | 4 | 4 | 6 | 3 | [
{
"input": "0 2 1 0 3 1;1 0 0 2 2 3;0 2 2 2 0 1;3 0 2 3 1 0",
"output": "2 2 3;3 3 1"
},
{
"input": "0 0 1 3 1 0;2 2 0 3 1 0;1 1 2 2 0 1;2 3 2 3 1 3",
"output": "2 3 1;3 3 3"
},
{
"input": "1 1 3 1 1 1;0 0 2 1 2 2;3 2 0 2 1 0;0 0 3 0 3 2",
"output": "1 3 2;3 3 3"
}
] | 1 2 0 3 3 1;2 3 0 1 0 0;2 3 3 0 2 2;3 1 2 0 0 1 | 3 3 3;3 3 2 |
icgr-00831 | flip_v+flip_h | composed | Mirror the grid top-to-bottom. Then, Mirror the grid left-to-right. | 4 | 5 | 4 | 2 | [
{
"input": "1 1 3 2;3 1 1 1;2 2 1 2;3 2 2 2;0 0 3 2",
"output": "2 3 0 0;2 2 2 3;2 1 2 2;1 1 1 3;2 3 1 1"
},
{
"input": "0 0 0 0;0 2 2 1;2 1 1 1;2 3 1 1;2 2 0 1",
"output": "1 0 2 2;1 1 3 2;1 1 1 2;1 2 2 0;0 0 0 0"
}
] | 2 0 2 1;2 3 3 0;0 3 2 0;0 2 0 3;3 0 1 3 | 3 1 0 3;3 0 2 0;0 2 3 0;0 3 3 2;1 2 0 2 |
icgr-00117 | rotate90 | atomic | Rotate the grid 90 degrees clockwise. | 6 | 5 | 5 | 4 | [
{
"input": "3 2 0 1 3;5 5 3 1 4;0 2 0 2 5;3 4 3 5 0;1 5 0 2 4",
"output": "1 3 0 5 3;5 4 2 5 2;0 3 0 3 0;2 5 2 1 1;4 0 5 4 3"
},
{
"input": "2 5 3 3 2;2 3 1 3 4;1 3 3 4 5;3 5 0 1 4;0 1 2 4 1",
"output": "0 3 1 2 2;1 5 3 3 5;2 0 3 1 3;4 1 4 3 3;1 4 5 4 2"
},
{
"input": "4 5 4 3 3;2 2 5 3 ... | 3 1 5 5 4;1 4 4 2 5;5 3 4 1 5;0 1 0 0 3;4 1 1 0 1 | 4 0 5 1 3;1 1 3 4 1;1 0 4 4 5;0 0 1 2 5;1 3 5 5 4 |
icgr-00402 | tile_h | atomic | Concatenate the grid with a copy of itself, side by side. | 4 | 4 | 4 | 4 | [
{
"input": "2 2 2 1;1 3 3 0;1 3 0 2;2 0 2 1",
"output": "2 2 2 1 2 2 2 1;1 3 3 0 1 3 3 0;1 3 0 2 1 3 0 2;2 0 2 1 2 0 2 1"
},
{
"input": "3 0 2 2;3 3 0 2;1 1 2 2;2 0 0 1",
"output": "3 0 2 2 3 0 2 2;3 3 0 2 3 3 0 2;1 1 2 2 1 1 2 2;2 0 0 1 2 0 0 1"
},
{
"input": "2 1 1 2;0 2 0 1;1 2 2 1;3 ... | 2 1 0 0;1 3 0 3;2 2 3 3;3 2 0 2 | 2 1 0 0 2 1 0 0;1 3 0 3 1 3 0 3;2 2 3 3 2 2 3 3;3 2 0 2 3 2 0 2 |
icgr-00245 | transpose | atomic | Swap rows and columns (transpose). | 4 | 4 | 3 | 2 | [
{
"input": "1 2 3;3 2 1;3 0 1;1 3 3",
"output": "1 3 3 1;2 2 0 3;3 1 1 3"
},
{
"input": "1 1 0;0 1 2;3 3 3;1 3 2",
"output": "1 0 3 1;1 1 3 3;0 2 3 2"
}
] | 2 0 0;0 2 2;3 1 0;2 3 3 | 2 0 3 2;0 2 1 3;0 2 0 3 |
icgr-00106 | transpose | atomic | Swap rows and columns (transpose). | 6 | 4 | 5 | 2 | [
{
"input": "5 0 1 1 0;2 3 1 0 1;1 0 4 4 4;1 0 4 4 1",
"output": "5 2 1 1;0 3 0 0;1 1 4 4;1 0 4 4;0 1 4 1"
},
{
"input": "2 3 5 1 0;3 4 2 0 2;0 5 3 4 0;3 4 5 1 0",
"output": "2 3 0 3;3 4 5 4;5 2 3 5;1 0 4 1;0 2 0 0"
}
] | 1 2 1 4 2;0 4 4 0 3;1 5 4 0 2;2 3 0 5 3 | 1 0 1 2;2 4 5 3;1 4 4 0;4 0 0 5;2 3 2 3 |
icgr-00966 | color_swap+add_mod | composed | Swap two colours everywhere they appear. Then, Add a fixed constant to every cell, modulo the colour count. | 4 | 5 | 5 | 4 | [
{
"input": "3 1 3 1 2;0 3 2 3 3;0 1 2 3 3;0 2 3 2 2;3 0 0 3 1",
"output": "0 2 0 2 1;3 0 1 0 0;3 2 1 0 0;3 1 0 1 1;0 3 3 0 2"
},
{
"input": "3 0 3 1 1;0 0 2 1 2;3 3 0 0 1;2 0 2 2 1;3 3 1 3 3",
"output": "0 3 0 2 2;3 3 1 2 1;0 0 3 3 2;1 3 1 1 2;0 0 2 0 0"
},
{
"input": "1 1 0 3 0;3 3 1 0 ... | 2 0 1 0 1;0 1 1 1 1;2 2 1 3 1;0 2 3 2 0;1 1 3 2 1 | 1 3 2 3 2;3 2 2 2 2;1 1 2 0 2;3 1 0 1 3;2 2 0 1 2 |
icgr-00405 | border | atomic | Paint the outer border of the grid a fixed colour. | 4 | 4 | 3 | 3 | [
{
"input": "3 3 1;2 0 0;2 0 0;2 0 3",
"output": "2 2 2;2 0 2;2 0 2;2 2 2"
},
{
"input": "3 3 3;2 2 0;1 3 3;1 2 1",
"output": "2 2 2;2 2 2;2 3 2;2 2 2"
},
{
"input": "0 2 3;3 3 3;2 3 2;3 3 3",
"output": "2 2 2;2 3 2;2 3 2;2 2 2"
}
] | 3 3 0;2 0 3;2 2 1;2 0 2 | 2 2 2;2 0 2;2 2 2;2 2 2 |
icgr-00775 | shift_rows+border | composed | Cyclically shift every row right by a fixed amount. Then, Paint the outer border of the grid a fixed colour. | 4 | 3 | 3 | 2 | [
{
"input": "0 3 0;2 2 3;1 3 0",
"output": "1 1 1;1 2 1;1 1 1"
},
{
"input": "0 2 3;3 3 1;3 0 1",
"output": "1 1 1;1 3 1;1 1 1"
}
] | 3 1 0;0 0 2;0 1 2 | 1 1 1;1 0 1;1 1 1 |
icgr-00301 | add_mod | atomic | Add a fixed constant to every cell, modulo the colour count. | 4 | 3 | 4 | 3 | [
{
"input": "1 2 3 2;1 1 2 1;3 1 2 2",
"output": "0 1 2 1;0 0 1 0;2 0 1 1"
},
{
"input": "1 0 0 1;2 1 1 3;0 3 3 1",
"output": "0 3 3 0;1 0 0 2;3 2 2 0"
},
{
"input": "2 2 3 3;0 2 2 2;2 0 1 0",
"output": "1 1 2 2;3 1 1 1;1 3 0 3"
}
] | 1 3 3 2;1 0 3 1;2 2 0 3 | 0 2 2 1;0 3 2 0;1 1 3 2 |
icgr-00833 | border+shift_rows | composed | Paint the outer border of the grid a fixed colour. Then, Cyclically shift every row right by a fixed amount. | 6 | 3 | 5 | 3 | [
{
"input": "2 4 1 5 2;5 3 5 3 1;3 0 4 5 4",
"output": "0 0 0 0 0;0 0 3 5 3;0 0 0 0 0"
},
{
"input": "3 0 2 3 5;3 1 5 4 3;1 1 5 1 0",
"output": "0 0 0 0 0;0 0 1 5 4;0 0 0 0 0"
},
{
"input": "1 3 2 5 2;0 5 5 4 1;2 2 0 0 0",
"output": "0 0 0 0 0;0 0 5 5 4;0 0 0 0 0"
}
] | 3 0 3 5 2;0 2 5 2 3;5 3 4 3 5 | 0 0 0 0 0;0 0 2 5 2;0 0 0 0 0 |
icgr-00105 | add_mod | atomic | Add a fixed constant to every cell, modulo the colour count. | 5 | 3 | 4 | 2 | [
{
"input": "1 3 2 0;3 3 2 1;0 3 2 4",
"output": "2 4 3 1;4 4 3 2;1 4 3 0"
},
{
"input": "0 3 3 4;4 3 4 4;0 1 3 2",
"output": "1 4 4 0;0 4 0 0;1 2 4 3"
}
] | 0 2 4 3;2 1 0 1;1 2 4 1 | 1 3 0 4;3 2 1 2;2 3 0 2 |
icgr-00252 | color_swap | atomic | Swap two colours everywhere they appear. | 6 | 5 | 4 | 3 | [
{
"input": "4 3 3 1;4 2 2 3;0 1 3 1;2 4 4 4;0 2 1 0",
"output": "4 3 3 1;4 2 2 3;0 1 3 1;2 4 4 4;0 2 1 0"
},
{
"input": "3 0 1 1;0 5 2 5;1 4 5 5;0 3 5 4;0 1 0 3",
"output": "3 0 1 1;0 5 2 5;1 4 5 5;0 3 5 4;0 1 0 3"
},
{
"input": "0 2 4 5;4 4 0 2;0 0 4 3;1 1 4 1;2 3 3 3",
"output": "0... | 2 3 2 4;0 5 2 3;3 0 5 0;0 0 0 4;0 1 3 2 | 2 3 2 4;0 5 2 3;3 0 5 0;0 0 0 4;0 1 3 2 |
icgr-00223 | border | atomic | Paint the outer border of the grid a fixed colour. | 6 | 5 | 3 | 4 | [
{
"input": "0 2 2;2 4 2;1 0 1;3 5 5;5 0 0",
"output": "1 1 1;1 4 1;1 0 1;1 5 1;1 1 1"
},
{
"input": "4 1 0;3 2 2;2 0 1;4 0 0;1 3 2",
"output": "1 1 1;1 2 1;1 0 1;1 0 1;1 1 1"
},
{
"input": "3 2 3;0 2 0;5 1 2;5 2 0;5 0 1",
"output": "1 1 1;1 2 1;1 1 1;1 2 1;1 1 1"
},
{
"input"... | 3 5 3;0 0 4;1 0 5;4 4 3;2 1 2 | 1 1 1;1 0 1;1 0 1;1 4 1;1 1 1 |
icgr-00588 | tile_h | atomic | Concatenate the grid with a copy of itself, side by side. | 4 | 4 | 4 | 4 | [
{
"input": "3 0 0 1;2 3 1 2;2 2 1 0;0 3 1 0",
"output": "3 0 0 1 3 0 0 1;2 3 1 2 2 3 1 2;2 2 1 0 2 2 1 0;0 3 1 0 0 3 1 0"
},
{
"input": "0 1 1 0;2 3 2 3;3 3 1 1;2 3 3 0",
"output": "0 1 1 0 0 1 1 0;2 3 2 3 2 3 2 3;3 3 1 1 3 3 1 1;2 3 3 0 2 3 3 0"
},
{
"input": "0 2 1 0;1 0 2 1;3 2 1 0;3 ... | 3 2 2 0;1 0 3 2;0 0 1 3;0 0 2 0 | 3 2 2 0 3 2 2 0;1 0 3 2 1 0 3 2;0 0 1 3 0 0 1 3;0 0 2 0 0 0 2 0 |
icgr-00784 | shift_rows+flip_v | composed | Cyclically shift every row right by a fixed amount. Then, Mirror the grid top-to-bottom. | 5 | 5 | 4 | 3 | [
{
"input": "2 0 3 1;4 0 2 0;3 4 3 1;0 3 4 0;4 2 1 3",
"output": "1 3 4 2;4 0 0 3;3 1 3 4;2 0 4 0;3 1 2 0"
},
{
"input": "1 0 4 4;4 0 0 0;0 1 1 0;0 0 4 0;2 1 0 3",
"output": "0 3 2 1;4 0 0 0;1 0 0 1;0 0 4 0;4 4 1 0"
},
{
"input": "4 4 1 2;1 4 2 0;2 4 3 2;3 1 0 0;3 2 4 4",
"output": "4... | 3 0 4 1;0 2 1 4;1 1 4 0;4 0 3 3;3 3 2 3 | 2 3 3 3;3 3 4 0;4 0 1 1;1 4 0 2;4 1 3 0 |
icgr-00514 | border | atomic | Paint the outer border of the grid a fixed colour. | 5 | 5 | 3 | 4 | [
{
"input": "2 0 3;3 4 2;0 3 2;0 1 3;3 2 2",
"output": "0 0 0;0 4 0;0 3 0;0 1 0;0 0 0"
},
{
"input": "3 0 0;4 2 2;0 2 3;3 2 0;1 1 2",
"output": "0 0 0;0 2 0;0 2 0;0 2 0;0 0 0"
},
{
"input": "1 1 3;1 3 0;0 0 0;0 0 4;2 4 3",
"output": "0 0 0;0 3 0;0 0 0;0 0 0;0 0 0"
},
{
"input"... | 3 0 3;2 4 1;0 0 0;0 2 1;3 3 3 | 0 0 0;0 4 0;0 0 0;0 2 0;0 0 0 |
icgr-00597 | add_mod+shift_rows | composed | Add a fixed constant to every cell, modulo the colour count. Then, Cyclically shift every row right by a fixed amount. | 5 | 4 | 5 | 2 | [
{
"input": "0 2 0 0 2;1 2 1 0 4;3 3 3 2 4;2 1 1 3 3",
"output": "4 2 4 2 2;1 3 4 3 2;1 0 0 0 4;0 4 3 3 0"
},
{
"input": "1 4 3 3 0;4 4 4 2 2;2 4 4 4 0;1 0 3 2 2",
"output": "2 3 1 0 0;4 1 1 1 4;2 4 1 1 1;4 3 2 0 4"
}
] | 4 0 4 1 0;1 3 2 2 1;0 1 3 1 4;2 4 4 0 2 | 2 1 2 1 3;3 3 0 4 4;1 2 3 0 3;4 4 1 1 2 |
icgr-00585 | tile_h | atomic | Concatenate the grid with a copy of itself, side by side. | 5 | 4 | 3 | 2 | [
{
"input": "1 2 0;1 1 1;2 0 2;3 0 1",
"output": "1 2 0 1 2 0;1 1 1 1 1 1;2 0 2 2 0 2;3 0 1 3 0 1"
},
{
"input": "2 4 0;4 2 4;0 3 4;2 3 2",
"output": "2 4 0 2 4 0;4 2 4 4 2 4;0 3 4 0 3 4;2 3 2 2 3 2"
}
] | 2 0 0;1 0 3;3 2 2;3 1 0 | 2 0 0 2 0 0;1 0 3 1 0 3;3 2 2 3 2 2;3 1 0 3 1 0 |
icgr-00846 | flip_h+flip_v | composed | Mirror the grid left-to-right. Then, Mirror the grid top-to-bottom. | 6 | 4 | 5 | 2 | [
{
"input": "3 5 1 1 0;4 4 4 1 0;5 3 4 3 4;5 0 1 2 1",
"output": "1 2 1 0 5;4 3 4 3 5;0 1 4 4 4;0 1 1 5 3"
},
{
"input": "4 3 4 0 1;5 1 1 4 4;0 2 0 2 0;1 4 5 5 5",
"output": "5 5 5 4 1;0 2 0 2 0;4 4 1 1 5;1 0 4 3 4"
}
] | 0 0 2 4 0;3 3 2 5 4;2 3 4 3 1;4 3 0 5 3 | 3 5 0 3 4;1 3 4 3 2;4 5 2 3 3;0 4 2 0 0 |
icgr-00350 | max_pool2 | atomic | Replace each non-overlapping 2x2 block with its maximum value. | 6 | 6 | 6 | 2 | [
{
"input": "2 1 2 5 4 3;3 4 5 0 3 3;4 4 2 4 2 3;1 0 0 3 1 2;0 3 0 3 3 5;4 0 5 0 0 1",
"output": "4 5 4;4 4 3;4 5 5"
},
{
"input": "0 1 3 5 3 3;4 5 2 0 4 3;0 2 2 0 5 4;2 4 3 3 0 1;0 4 5 0 1 1;3 2 3 0 1 5",
"output": "5 5 4;4 3 5;4 5 5"
}
] | 1 1 3 5 1 3;5 1 1 0 1 2;3 0 2 2 0 1;5 2 0 2 3 4;2 1 1 0 2 0;1 4 5 1 0 1 | 5 5 3;5 2 4;4 5 2 |
icgr-00016 | shift_rows+add_mod | composed | Cyclically shift every row right by a fixed amount. Then, Add a fixed constant to every cell, modulo the colour count. | 5 | 3 | 3 | 3 | [
{
"input": "0 1 2;2 3 2;4 4 1",
"output": "4 2 3;4 4 0;3 1 1"
},
{
"input": "3 0 0;0 0 1;1 1 1",
"output": "2 0 2;3 2 2;3 3 3"
},
{
"input": "4 4 1;1 3 4;2 2 4",
"output": "3 1 1;1 3 0;1 4 4"
}
] | 4 4 4;3 1 2;4 4 3 | 1 1 1;4 0 3;0 1 1 |
icgr-00058 | tile_h | atomic | Concatenate the grid with a copy of itself, side by side. | 6 | 5 | 5 | 2 | [
{
"input": "5 5 3 4 5;1 3 5 2 5;2 0 5 2 1;5 0 3 1 1;1 1 0 4 2",
"output": "5 5 3 4 5 5 5 3 4 5;1 3 5 2 5 1 3 5 2 5;2 0 5 2 1 2 0 5 2 1;5 0 3 1 1 5 0 3 1 1;1 1 0 4 2 1 1 0 4 2"
},
{
"input": "2 5 5 2 2;4 0 3 1 3;1 2 2 1 4;5 0 1 5 2;2 2 0 0 2",
"output": "2 5 5 2 2 2 5 5 2 2;4 0 3 1 3 4 0 3 1 3;1 ... | 3 1 5 3 3;1 2 4 5 0;0 2 3 3 5;2 2 1 0 0;2 2 5 4 2 | 3 1 5 3 3 3 1 5 3 3;1 2 4 5 0 1 2 4 5 0;0 2 3 3 5 0 2 3 3 5;2 2 1 0 0 2 2 1 0 0;2 2 5 4 2 2 2 5 4 2 |
icgr-00269 | tile_h | atomic | Concatenate the grid with a copy of itself, side by side. | 6 | 3 | 5 | 2 | [
{
"input": "2 1 5 1 4;1 1 3 2 3;1 0 0 5 4",
"output": "2 1 5 1 4 2 1 5 1 4;1 1 3 2 3 1 1 3 2 3;1 0 0 5 4 1 0 0 5 4"
},
{
"input": "4 5 5 0 5;0 4 0 1 2;2 4 3 2 2",
"output": "4 5 5 0 5 4 5 5 0 5;0 4 0 1 2 0 4 0 1 2;2 4 3 2 2 2 4 3 2 2"
}
] | 2 5 4 0 4;2 0 2 3 2;5 4 5 3 3 | 2 5 4 0 4 2 5 4 0 4;2 0 2 3 2 2 0 2 3 2;5 4 5 3 3 5 4 5 3 3 |
icgr-00619 | transpose | atomic | Swap rows and columns (transpose). | 5 | 4 | 4 | 2 | [
{
"input": "0 1 3 3;4 2 3 2;3 0 1 4;2 0 0 1",
"output": "0 4 3 2;1 2 0 0;3 3 1 0;3 2 4 1"
},
{
"input": "1 4 0 1;3 2 3 2;1 3 3 0;1 1 2 2",
"output": "1 3 1 1;4 2 3 1;0 3 3 2;1 2 0 2"
}
] | 2 2 3 2;4 3 1 0;1 2 1 0;3 2 0 0 | 2 4 1 3;2 3 2 2;3 1 1 0;2 0 0 0 |
icgr-00417 | flip_h | atomic | Mirror the grid left-to-right. | 5 | 5 | 5 | 2 | [
{
"input": "3 0 2 4 0;0 2 0 4 4;0 3 1 0 3;1 3 1 1 0;0 1 0 2 0",
"output": "0 4 2 0 3;4 4 0 2 0;3 0 1 3 0;0 1 1 3 1;0 2 0 1 0"
},
{
"input": "4 3 1 2 3;0 3 1 3 0;2 4 2 3 1;3 4 1 2 3;3 0 3 3 2",
"output": "3 2 1 3 4;0 3 1 3 0;1 3 2 4 2;3 2 1 4 3;2 3 3 0 3"
}
] | 2 2 2 2 1;0 2 4 3 3;0 1 1 2 1;3 0 4 2 3;1 4 2 3 2 | 1 2 2 2 2;3 3 4 2 0;1 2 1 1 0;3 2 4 0 3;2 3 2 4 1 |
icgr-00623 | rotate90 | atomic | Rotate the grid 90 degrees clockwise. | 5 | 3 | 5 | 3 | [
{
"input": "3 3 0 4 3;0 2 4 2 4;0 1 4 4 0",
"output": "0 0 3;1 2 3;4 4 0;4 2 4;0 4 3"
},
{
"input": "2 4 4 2 4;2 4 4 3 4;0 4 1 2 0",
"output": "0 2 2;4 4 4;1 4 4;2 3 2;0 4 4"
},
{
"input": "1 3 1 3 2;2 0 2 0 0;1 1 2 0 4",
"output": "1 2 1;1 0 3;2 2 1;0 0 3;4 0 2"
}
] | 2 2 4 2 3;1 4 2 3 2;0 4 0 3 0 | 0 1 2;4 4 2;0 2 4;3 3 2;0 2 3 |
icgr-00914 | add_mod | atomic | Add a fixed constant to every cell, modulo the colour count. | 6 | 3 | 4 | 2 | [
{
"input": "0 1 0 1;5 5 5 3;0 0 1 1",
"output": "2 3 2 3;1 1 1 5;2 2 3 3"
},
{
"input": "2 0 1 0;3 5 3 4;5 2 2 5",
"output": "4 2 3 2;5 1 5 0;1 4 4 1"
}
] | 1 5 4 0;4 0 1 5;5 2 2 5 | 3 1 0 2;0 2 3 1;1 4 4 1 |
icgr-00101 | add_mod | atomic | Add a fixed constant to every cell, modulo the colour count. | 4 | 3 | 4 | 4 | [
{
"input": "0 1 1 3;3 0 3 2;0 2 3 1",
"output": "3 0 0 2;2 3 2 1;3 1 2 0"
},
{
"input": "2 1 0 0;0 0 3 2;3 3 3 2",
"output": "1 0 3 3;3 3 2 1;2 2 2 1"
},
{
"input": "2 2 0 0;2 0 0 0;3 3 1 1",
"output": "1 1 3 3;1 3 3 3;2 2 0 0"
},
{
"input": "3 2 0 0;1 3 3 0;2 3 2 2",
"ou... | 2 1 0 3;1 0 0 3;1 0 0 2 | 1 0 3 2;0 3 3 2;0 3 3 1 |
icgr-00691 | tile_h | atomic | Concatenate the grid with a copy of itself, side by side. | 4 | 3 | 3 | 2 | [
{
"input": "0 1 3;0 3 0;2 0 1",
"output": "0 1 3 0 1 3;0 3 0 0 3 0;2 0 1 2 0 1"
},
{
"input": "0 0 0;2 0 0;3 2 3",
"output": "0 0 0 0 0 0;2 0 0 2 0 0;3 2 3 3 2 3"
}
] | 3 2 0;2 3 0;1 2 0 | 3 2 0 3 2 0;2 3 0 2 3 0;1 2 0 1 2 0 |
icgr-00519 | flip_v+flip_h | composed | Mirror the grid top-to-bottom. Then, Mirror the grid left-to-right. | 4 | 3 | 5 | 3 | [
{
"input": "1 2 2 1 0;0 2 0 1 0;2 2 0 2 1",
"output": "1 2 0 2 2;0 1 0 2 0;0 1 2 2 1"
},
{
"input": "3 2 1 0 1;2 3 1 1 3;0 0 0 2 2",
"output": "2 2 0 0 0;3 1 1 3 2;1 0 1 2 3"
},
{
"input": "0 2 3 0 0;3 2 3 1 3;3 0 3 1 1",
"output": "1 1 3 0 3;3 1 3 2 3;0 0 3 2 0"
}
] | 2 0 2 0 0;0 0 3 0 1;2 2 1 0 0 | 0 0 1 2 2;1 0 3 0 0;0 0 2 0 2 |
icgr-00777 | flip_v | atomic | Mirror the grid top-to-bottom. | 5 | 5 | 3 | 2 | [
{
"input": "4 1 0;2 2 4;3 2 3;1 4 3;0 4 4",
"output": "0 4 4;1 4 3;3 2 3;2 2 4;4 1 0"
},
{
"input": "3 4 0;2 2 4;4 3 1;1 1 0;0 2 3",
"output": "0 2 3;1 1 0;4 3 1;2 2 4;3 4 0"
}
] | 3 0 2;4 4 1;0 1 3;0 0 4;3 1 1 | 3 1 1;0 0 4;0 1 3;4 4 1;3 0 2 |
icgr-00182 | color_swap | atomic | Swap two colours everywhere they appear. | 4 | 5 | 5 | 4 | [
{
"input": "0 2 0 1 2;0 2 3 3 0;1 0 3 0 2;1 1 1 0 1;2 2 3 2 1",
"output": "0 2 0 3 2;0 2 1 1 0;3 0 1 0 2;3 3 3 0 3;2 2 1 2 3"
},
{
"input": "1 3 1 2 2;3 2 3 2 3;1 3 2 0 0;2 2 1 1 1;2 1 1 1 1",
"output": "3 1 3 2 2;1 2 1 2 1;3 1 2 0 0;2 2 3 3 3;2 3 3 3 3"
},
{
"input": "1 0 0 2 1;1 0 0 2 ... | 1 2 1 0 0;3 1 2 3 1;1 0 0 3 0;1 3 1 3 0;0 3 3 2 3 | 3 2 3 0 0;1 3 2 1 3;3 0 0 1 0;3 1 3 1 0;0 1 1 2 1 |
icgr-00792 | max_pool2 | atomic | Replace each non-overlapping 2x2 block with its maximum value. | 4 | 6 | 4 | 2 | [
{
"input": "1 2 1 2;3 1 2 2;1 3 3 0;2 2 3 2;0 0 1 2;2 3 2 1",
"output": "3 2;3 3;3 2"
},
{
"input": "0 2 3 1;1 3 1 0;1 0 2 3;3 1 2 1;0 2 3 3;1 3 2 1",
"output": "3 3;3 3;3 3"
}
] | 1 0 0 2;3 3 1 3;0 0 0 2;3 3 1 2;1 3 1 2;3 1 0 1 | 3 3;3 2;3 2 |
icgr-00294 | border | atomic | Paint the outer border of the grid a fixed colour. | 5 | 3 | 3 | 2 | [
{
"input": "3 3 1;1 2 3;0 3 2",
"output": "1 1 1;1 2 1;1 1 1"
},
{
"input": "0 4 4;4 2 3;0 0 1",
"output": "1 1 1;1 2 1;1 1 1"
}
] | 0 2 2;3 3 4;3 4 0 | 1 1 1;1 3 1;1 1 1 |
icgr-00399 | add_mod | atomic | Add a fixed constant to every cell, modulo the colour count. | 5 | 4 | 3 | 2 | [
{
"input": "1 2 1;4 2 0;4 0 0;4 0 3",
"output": "3 4 3;1 4 2;1 2 2;1 2 0"
},
{
"input": "3 2 1;3 4 3;2 1 4;2 3 2",
"output": "0 4 3;0 1 0;4 3 1;4 0 4"
}
] | 3 0 3;0 2 1;3 3 2;2 3 2 | 0 2 0;2 4 3;0 0 4;4 0 4 |
icgr-00649 | shift_rows | atomic | Cyclically shift every row right by a fixed amount. | 6 | 5 | 4 | 4 | [
{
"input": "2 5 5 0;5 4 4 3;5 3 1 5;3 1 3 0;3 5 1 0",
"output": "0 2 5 5;3 5 4 4;5 5 3 1;0 3 1 3;0 3 5 1"
},
{
"input": "4 3 5 4;1 0 1 5;2 0 2 3;5 0 2 3;1 5 3 5",
"output": "4 4 3 5;5 1 0 1;3 2 0 2;3 5 0 2;5 1 5 3"
},
{
"input": "0 0 1 1;5 3 0 3;2 3 0 1;3 0 2 0;1 2 2 2",
"output": "1... | 3 5 4 0;1 2 4 5;3 3 2 5;0 0 5 3;0 1 3 0 | 0 3 5 4;5 1 2 4;5 3 3 2;3 0 0 5;0 0 1 3 |
icgr-00671 | shift_rows+add_mod | composed | Cyclically shift every row right by a fixed amount. Then, Add a fixed constant to every cell, modulo the colour count. | 6 | 4 | 4 | 3 | [
{
"input": "1 5 1 0;3 5 3 4;5 3 4 1;3 3 3 1",
"output": "5 4 5 3;1 2 1 3;2 5 3 1;1 5 1 1"
},
{
"input": "5 0 5 0;3 4 1 5;3 3 0 4;1 1 2 3",
"output": "3 4 3 4;5 3 1 2;4 2 1 1;0 1 5 5"
},
{
"input": "4 4 5 2;2 5 0 1;4 2 3 2;3 3 0 4",
"output": "3 0 2 2;4 5 0 3;1 0 2 0;4 2 1 1"
}
] | 4 3 0 5;5 3 2 0;4 5 4 5;1 0 5 5 | 4 3 2 1;0 4 3 1;2 3 2 3;3 3 5 4 |
icgr-00713 | flip_v | atomic | Mirror the grid top-to-bottom. | 5 | 3 | 5 | 3 | [
{
"input": "2 3 2 1 0;0 3 4 3 2;1 4 1 3 2",
"output": "1 4 1 3 2;0 3 4 3 2;2 3 2 1 0"
},
{
"input": "3 4 4 3 4;0 4 4 1 4;4 4 3 0 1",
"output": "4 4 3 0 1;0 4 4 1 4;3 4 4 3 4"
},
{
"input": "2 1 1 1 4;2 0 1 0 2;1 1 3 2 0",
"output": "1 1 3 2 0;2 0 1 0 2;2 1 1 1 4"
}
] | 1 0 4 3 3;1 1 2 2 3;4 1 1 1 1 | 4 1 1 1 1;1 1 2 2 3;1 0 4 3 3 |
icgr-00834 | flip_v+border | composed | Mirror the grid top-to-bottom. Then, Paint the outer border of the grid a fixed colour. | 4 | 3 | 4 | 3 | [
{
"input": "0 2 2 2;0 0 1 2;3 1 1 0",
"output": "2 2 2 2;2 0 1 2;2 2 2 2"
},
{
"input": "1 1 0 1;1 0 2 1;3 0 2 2",
"output": "2 2 2 2;2 0 2 2;2 2 2 2"
},
{
"input": "3 2 2 0;1 3 3 3;2 3 1 0",
"output": "2 2 2 2;2 3 3 2;2 2 2 2"
}
] | 3 3 2 1;3 1 3 1;0 3 2 0 | 2 2 2 2;2 1 3 2;2 2 2 2 |
icgr-00463 | flip_h+shift_rows | composed | Mirror the grid left-to-right. Then, Cyclically shift every row right by a fixed amount. | 4 | 5 | 5 | 4 | [
{
"input": "3 1 2 1 0;2 3 1 1 0;1 2 0 1 1;3 2 3 0 3;0 3 3 3 1",
"output": "1 3 0 1 2;3 2 0 1 1;2 1 1 1 0;2 3 3 0 3;3 0 1 3 3"
},
{
"input": "3 2 2 3 0;1 2 2 2 0;1 1 3 1 1;1 2 2 2 0;3 1 0 2 3",
"output": "2 3 0 3 2;2 1 0 2 2;1 1 1 1 3;2 1 0 2 2;1 3 3 2 0"
},
{
"input": "1 0 2 2 0;3 0 3 3 ... | 3 0 0 3 1;0 2 2 0 0;0 3 2 3 1;3 0 3 1 1;2 1 2 1 2 | 0 3 1 3 0;2 0 0 0 2;3 0 1 3 2;0 3 1 1 3;1 2 2 1 2 |
icgr-00740 | color_swap+flip_h | composed | Swap two colours everywhere they appear. Then, Mirror the grid left-to-right. | 4 | 5 | 4 | 3 | [
{
"input": "0 2 3 1;0 0 1 2;1 2 0 3;0 0 0 2;0 1 2 1",
"output": "1 0 2 3;2 1 3 3;0 3 2 1;2 3 3 3;1 2 1 3"
},
{
"input": "0 1 0 3;3 1 2 0;1 0 3 3;1 2 2 3;1 3 0 2",
"output": "0 3 1 3;3 2 1 0;0 0 3 1;0 2 2 1;2 3 0 1"
},
{
"input": "2 3 3 2;1 3 3 0;2 1 2 1;0 3 3 2;1 3 3 2",
"output": "2... | 1 1 1 2;2 2 2 2;3 2 0 3;0 2 3 3;3 2 3 3 | 2 1 1 1;2 2 2 2;0 3 2 0;0 0 2 3;0 0 2 0 |
icgr-00214 | flip_v+color_swap | composed | Mirror the grid top-to-bottom. Then, Swap two colours everywhere they appear. | 4 | 4 | 3 | 2 | [
{
"input": "3 0 1;0 1 0;0 1 3;2 1 0",
"output": "0 1 2;2 1 3;2 1 2;3 2 1"
},
{
"input": "3 1 3;2 1 0;3 2 3;3 2 0",
"output": "3 0 2;3 0 3;0 1 2;3 1 3"
}
] | 3 2 3;3 1 1;1 3 0;1 0 0 | 1 2 2;1 3 2;3 1 1;3 0 3 |
icgr-00339 | transpose | atomic | Swap rows and columns (transpose). | 6 | 4 | 3 | 4 | [
{
"input": "3 0 1;0 1 0;4 4 0;2 1 5",
"output": "3 0 4 2;0 1 4 1;1 0 0 5"
},
{
"input": "1 4 5;5 5 4;2 4 3;3 5 4",
"output": "1 5 2 3;4 5 4 5;5 4 3 4"
},
{
"input": "4 5 2;0 5 1;3 0 3;0 2 4",
"output": "4 0 3 0;5 5 0 2;2 1 3 4"
},
{
"input": "3 2 3;5 4 5;2 5 1;5 4 3",
"ou... | 4 1 0;4 0 5;2 0 3;0 5 3 | 4 4 2 0;1 0 0 5;0 5 3 3 |
icgr-00328 | transpose | atomic | Swap rows and columns (transpose). | 5 | 5 | 4 | 2 | [
{
"input": "2 3 1 2;1 2 3 4;2 0 4 3;0 2 3 0;4 2 4 1",
"output": "2 1 2 0 4;3 2 0 2 2;1 3 4 3 4;2 4 3 0 1"
},
{
"input": "1 4 3 3;2 1 0 0;0 2 3 4;1 3 0 4;0 0 1 1",
"output": "1 2 0 1 0;4 1 2 3 0;3 0 3 0 1;3 0 4 4 1"
}
] | 4 0 2 0;1 3 4 3;0 0 3 2;2 0 0 1;0 0 3 2 | 4 1 0 2 0;0 3 0 0 0;2 4 3 0 3;0 3 2 1 2 |
icgr-00515 | flip_v | atomic | Mirror the grid top-to-bottom. | 4 | 5 | 5 | 4 | [
{
"input": "3 3 0 0 2;1 3 3 3 1;0 3 1 2 0;0 0 0 3 0;3 2 3 3 0",
"output": "3 2 3 3 0;0 0 0 3 0;0 3 1 2 0;1 3 3 3 1;3 3 0 0 2"
},
{
"input": "1 3 0 1 3;2 1 2 2 2;1 3 0 2 3;2 2 1 2 3;2 3 0 1 3",
"output": "2 3 0 1 3;2 2 1 2 3;1 3 0 2 3;2 1 2 2 2;1 3 0 1 3"
},
{
"input": "0 0 1 0 0;1 0 2 2 ... | 0 2 1 0 3;3 2 1 0 2;0 1 1 3 2;2 1 0 0 1;1 0 2 2 0 | 1 0 2 2 0;2 1 0 0 1;0 1 1 3 2;3 2 1 0 2;0 2 1 0 3 |
icgr-00037 | shift_rows+color_swap | composed | Cyclically shift every row right by a fixed amount. Then, Swap two colours everywhere they appear. | 5 | 4 | 3 | 3 | [
{
"input": "0 3 3;4 0 3;4 4 4;4 3 1",
"output": "0 3 0;0 4 3;4 4 4;1 4 0"
},
{
"input": "2 3 4;0 1 1;0 4 2;0 4 2",
"output": "4 2 0;1 3 1;2 3 4;2 3 4"
},
{
"input": "0 0 1;1 4 0;0 4 4;0 0 1",
"output": "1 3 3;3 1 4;4 3 4;1 3 3"
}
] | 1 4 0;2 2 2;0 0 4;1 4 1 | 3 1 4;2 2 2;4 3 3;1 1 4 |
icgr-00815 | rotate90 | atomic | Rotate the grid 90 degrees clockwise. | 6 | 4 | 5 | 2 | [
{
"input": "2 0 1 0 3;1 4 0 0 0;3 0 5 0 1;2 0 5 0 3",
"output": "2 3 1 2;0 0 4 0;5 5 0 1;0 0 0 0;3 1 0 3"
},
{
"input": "0 0 0 5 1;0 2 0 0 1;0 1 3 5 4;1 0 0 1 1",
"output": "1 0 0 0;0 1 2 0;0 3 0 0;1 5 0 5;1 4 1 1"
}
] | 3 0 1 2 2;5 3 0 1 3;3 5 2 2 1;2 3 0 4 1 | 2 3 5 3;3 5 3 0;0 2 0 1;4 2 1 2;1 1 3 2 |
icgr-00123 | shift_rows | atomic | Cyclically shift every row right by a fixed amount. | 6 | 3 | 3 | 3 | [
{
"input": "0 0 5;3 4 2;4 5 3",
"output": "0 5 0;4 2 3;5 3 4"
},
{
"input": "5 4 1;5 4 2;3 4 4",
"output": "4 1 5;4 2 5;4 4 3"
},
{
"input": "5 0 3;4 2 2;0 0 2",
"output": "0 3 5;2 2 4;0 2 0"
}
] | 1 3 0;2 5 3;3 5 3 | 3 0 1;5 3 2;5 3 3 |
icgr-00075 | tile_h | atomic | Concatenate the grid with a copy of itself, side by side. | 4 | 3 | 5 | 4 | [
{
"input": "2 1 3 2 2;1 2 2 1 2;0 1 3 3 2",
"output": "2 1 3 2 2 2 1 3 2 2;1 2 2 1 2 1 2 2 1 2;0 1 3 3 2 0 1 3 3 2"
},
{
"input": "3 1 2 2 3;0 3 3 1 1;2 3 3 2 2",
"output": "3 1 2 2 3 3 1 2 2 3;0 3 3 1 1 0 3 3 1 1;2 3 3 2 2 2 3 3 2 2"
},
{
"input": "2 0 3 2 3;3 2 2 0 0;1 0 2 0 2",
"o... | 0 1 0 0 3;2 3 3 1 2;1 1 3 3 0 | 0 1 0 0 3 0 1 0 0 3;2 3 3 1 2 2 3 3 1 2;1 1 3 3 0 1 1 3 3 0 |
icgr-00526 | flip_v | atomic | Mirror the grid top-to-bottom. | 5 | 5 | 5 | 2 | [
{
"input": "1 3 1 3 4;0 4 3 0 0;0 2 2 3 2;1 1 4 0 4;2 1 1 3 3",
"output": "2 1 1 3 3;1 1 4 0 4;0 2 2 3 2;0 4 3 0 0;1 3 1 3 4"
},
{
"input": "0 0 4 4 0;1 1 2 4 2;3 4 2 3 1;2 0 4 1 0;3 4 3 0 4",
"output": "3 4 3 0 4;2 0 4 1 0;3 4 2 3 1;1 1 2 4 2;0 0 4 4 0"
}
] | 2 2 3 1 1;2 1 1 1 4;4 1 3 4 2;4 0 2 4 4;3 2 1 2 1 | 3 2 1 2 1;4 0 2 4 4;4 1 3 4 2;2 1 1 1 4;2 2 3 1 1 |
icgr-00779 | tile_h | atomic | Concatenate the grid with a copy of itself, side by side. | 6 | 4 | 4 | 4 | [
{
"input": "5 1 2 5;0 1 4 4;0 0 4 3;1 0 2 0",
"output": "5 1 2 5 5 1 2 5;0 1 4 4 0 1 4 4;0 0 4 3 0 0 4 3;1 0 2 0 1 0 2 0"
},
{
"input": "5 1 1 2;4 4 4 0;1 2 3 5;0 5 3 0",
"output": "5 1 1 2 5 1 1 2;4 4 4 0 4 4 4 0;1 2 3 5 1 2 3 5;0 5 3 0 0 5 3 0"
},
{
"input": "2 2 5 2;3 1 0 4;2 5 4 2;0 ... | 3 2 4 2;1 2 0 5;2 1 5 4;2 5 0 4 | 3 2 4 2 3 2 4 2;1 2 0 5 1 2 0 5;2 1 5 4 2 1 5 4;2 5 0 4 2 5 0 4 |
icgr-00763 | flip_h | atomic | Mirror the grid left-to-right. | 5 | 3 | 5 | 3 | [
{
"input": "0 2 0 1 1;4 1 1 3 4;0 2 3 2 1",
"output": "1 1 0 2 0;4 3 1 1 4;1 2 3 2 0"
},
{
"input": "1 0 0 2 1;4 0 2 3 2;4 1 4 2 2",
"output": "1 2 0 0 1;2 3 2 0 4;2 2 4 1 4"
},
{
"input": "4 0 1 0 0;0 4 2 4 3;4 0 1 2 0",
"output": "0 0 1 0 4;3 4 2 4 0;0 2 1 0 4"
}
] | 4 2 0 3 3;4 4 2 3 3;2 0 0 4 3 | 3 3 0 2 4;3 3 2 4 4;3 4 0 0 2 |
icgr-00384 | border+color_swap | composed | Paint the outer border of the grid a fixed colour. Then, Swap two colours everywhere they appear. | 6 | 4 | 3 | 2 | [
{
"input": "3 3 0;2 5 4;5 0 5;0 0 1",
"output": "4 4 4;4 4 4;4 0 4;4 4 4"
},
{
"input": "4 3 2;5 1 0;5 2 0;2 4 0",
"output": "4 4 4;4 1 4;4 2 4;4 4 4"
}
] | 5 0 1;0 3 2;5 0 3;0 2 1 | 4 4 4;4 3 4;4 0 4;4 4 4 |
icgr-00660 | flip_v | atomic | Mirror the grid top-to-bottom. | 6 | 5 | 5 | 2 | [
{
"input": "4 4 2 0 1;5 2 2 0 5;4 1 5 0 5;3 2 1 1 1;5 2 0 0 5",
"output": "5 2 0 0 5;3 2 1 1 1;4 1 5 0 5;5 2 2 0 5;4 4 2 0 1"
},
{
"input": "0 0 4 5 3;4 4 2 4 4;1 5 5 1 4;1 3 3 3 1;3 5 3 1 1",
"output": "3 5 3 1 1;1 3 3 3 1;1 5 5 1 4;4 4 2 4 4;0 0 4 5 3"
}
] | 1 3 0 2 0;4 0 4 2 0;0 2 5 2 2;1 3 2 5 5;4 4 2 5 3 | 4 4 2 5 3;1 3 2 5 5;0 2 5 2 2;4 0 4 2 0;1 3 0 2 0 |
icgr-00491 | add_mod+shift_rows | composed | Add a fixed constant to every cell, modulo the colour count. Then, Cyclically shift every row right by a fixed amount. | 6 | 5 | 5 | 2 | [
{
"input": "1 3 2 2 2;2 0 2 3 1;1 1 1 3 5;1 5 5 2 0;2 5 2 5 0",
"output": "1 1 0 2 1;2 0 1 5 1;2 4 0 0 0;1 5 0 4 4;4 5 1 4 1"
},
{
"input": "0 3 1 5 5;3 3 3 3 5;4 1 3 3 5;5 5 0 5 1;1 1 4 1 4",
"output": "4 4 5 2 0;2 4 2 2 2;2 4 3 0 2;4 0 4 4 5;0 3 0 0 3"
}
] | 0 3 2 1 4;1 1 5 4 3;5 3 0 3 3;3 2 4 3 0;0 4 1 1 4 | 0 3 5 2 1;3 2 0 0 4;2 2 4 2 5;2 5 2 1 3;0 3 5 3 0 |
icgr-00012 | tile_h | atomic | Concatenate the grid with a copy of itself, side by side. | 5 | 3 | 5 | 2 | [
{
"input": "3 1 1 4 2;4 2 2 4 3;0 1 4 3 0",
"output": "3 1 1 4 2 3 1 1 4 2;4 2 2 4 3 4 2 2 4 3;0 1 4 3 0 0 1 4 3 0"
},
{
"input": "4 2 0 2 3;0 1 3 2 1;4 4 3 3 3",
"output": "4 2 0 2 3 4 2 0 2 3;0 1 3 2 1 0 1 3 2 1;4 4 3 3 3 4 4 3 3 3"
}
] | 4 4 1 2 4;3 0 2 2 3;2 2 1 2 0 | 4 4 1 2 4 4 4 1 2 4;3 0 2 2 3 3 0 2 2 3;2 2 1 2 0 2 2 1 2 0 |
icgr-00865 | add_mod+flip_v | composed | Add a fixed constant to every cell, modulo the colour count. Then, Mirror the grid top-to-bottom. | 5 | 3 | 4 | 3 | [
{
"input": "0 4 0 0;4 2 2 1;0 4 2 4",
"output": "1 0 3 0;0 3 3 2;1 0 1 1"
},
{
"input": "0 1 2 2;0 1 4 1;0 4 4 3",
"output": "1 0 0 4;1 2 0 2;1 2 3 3"
},
{
"input": "0 2 3 0;2 0 3 2;2 4 0 3",
"output": "3 0 1 4;3 1 4 3;1 3 4 1"
}
] | 0 0 2 0;4 0 0 2;0 0 2 2 | 1 1 3 3;0 1 1 3;1 1 3 1 |
icgr-00305 | color_swap | atomic | Swap two colours everywhere they appear. | 4 | 5 | 5 | 3 | [
{
"input": "2 0 3 2 3;1 3 3 1 0;3 1 0 3 1;1 0 3 1 3;1 3 0 3 1",
"output": "2 0 3 2 3;1 3 3 1 0;3 1 0 3 1;1 0 3 1 3;1 3 0 3 1"
},
{
"input": "0 3 1 3 2;1 0 1 1 2;1 2 1 3 3;3 0 1 3 1;1 2 1 0 2",
"output": "0 3 1 3 2;1 0 1 1 2;1 2 1 3 3;3 0 1 3 1;1 2 1 0 2"
},
{
"input": "1 3 0 3 0;2 1 2 3 ... | 3 3 1 0 1;0 2 2 0 1;3 2 0 2 1;3 2 3 0 1;0 2 3 0 2 | 3 3 1 0 1;0 2 2 0 1;3 2 0 2 1;3 2 3 0 1;0 2 3 0 2 |
icgr-00724 | border+shift_rows | composed | Paint the outer border of the grid a fixed colour. Then, Cyclically shift every row right by a fixed amount. | 6 | 5 | 4 | 2 | [
{
"input": "0 1 1 5;5 2 4 2;3 1 5 2;4 0 2 4;4 3 3 3",
"output": "0 0 0 0;0 0 2 4;0 0 1 5;0 0 0 2;0 0 0 0"
},
{
"input": "0 3 2 1;1 1 2 4;5 3 3 0;5 1 0 0;1 1 4 0",
"output": "0 0 0 0;0 0 1 2;0 0 3 3;0 0 1 0;0 0 0 0"
}
] | 5 5 2 4;1 2 1 5;0 1 0 3;3 1 2 5;3 3 2 3 | 0 0 0 0;0 0 2 1;0 0 1 0;0 0 1 2;0 0 0 0 |
icgr-00485 | color_swap | atomic | Swap two colours everywhere they appear. | 5 | 5 | 5 | 3 | [
{
"input": "2 3 4 2 1;1 3 2 3 2;4 2 3 4 3;4 3 4 4 4;2 3 2 2 2",
"output": "0 3 4 0 1;1 3 0 3 0;4 0 3 4 3;4 3 4 4 4;0 3 0 0 0"
},
{
"input": "3 3 1 3 3;1 0 1 4 4;3 0 0 3 0;0 1 3 4 0;3 4 4 1 3",
"output": "3 3 1 3 3;1 2 1 4 4;3 2 2 3 2;2 1 3 4 2;3 4 4 1 3"
},
{
"input": "2 2 1 3 2;4 3 1 2 ... | 2 1 3 0 3;3 0 2 3 3;4 0 2 3 1;1 1 2 0 0;1 4 3 2 4 | 0 1 3 2 3;3 2 0 3 3;4 2 0 3 1;1 1 0 2 2;1 4 3 0 4 |
icgr-00251 | tile_h | atomic | Concatenate the grid with a copy of itself, side by side. | 5 | 3 | 3 | 2 | [
{
"input": "4 2 2;1 1 1;0 0 3",
"output": "4 2 2 4 2 2;1 1 1 1 1 1;0 0 3 0 0 3"
},
{
"input": "0 4 1;3 2 1;1 2 2",
"output": "0 4 1 0 4 1;3 2 1 3 2 1;1 2 2 1 2 2"
}
] | 0 2 2;4 2 0;1 0 3 | 0 2 2 0 2 2;4 2 0 4 2 0;1 0 3 1 0 3 |
icgr-00669 | color_swap | atomic | Swap two colours everywhere they appear. | 6 | 5 | 3 | 4 | [
{
"input": "4 0 0;3 1 0;2 5 4;0 3 0;1 3 2",
"output": "4 0 0;2 1 0;3 5 4;0 2 0;1 2 3"
},
{
"input": "2 0 1;5 1 1;5 5 0;3 5 1;4 0 3",
"output": "3 0 1;5 1 1;5 5 0;2 5 1;4 0 2"
},
{
"input": "0 0 0;2 1 0;3 5 1;0 1 4;3 5 1",
"output": "0 0 0;3 1 0;2 5 1;0 1 4;2 5 1"
},
{
"input"... | 4 5 0;4 4 2;2 2 5;2 4 5;2 4 2 | 4 5 0;4 4 3;3 3 5;3 4 5;3 4 3 |
icgr-00149 | color_swap+shift_rows | composed | Swap two colours everywhere they appear. Then, Cyclically shift every row right by a fixed amount. | 6 | 3 | 5 | 4 | [
{
"input": "3 3 4 0 4;0 5 3 4 3;1 1 1 5 0",
"output": "2 3 3 2 0;3 0 5 3 2;0 1 1 1 5"
},
{
"input": "1 1 5 5 3;2 4 4 4 3;0 2 3 4 5",
"output": "3 1 1 5 5;3 4 2 2 2;5 0 4 3 2"
},
{
"input": "0 4 1 3 0;0 0 3 0 0;0 4 5 1 2",
"output": "0 0 2 1 3;0 0 0 3 0;4 0 2 5 1"
},
{
"input"... | 1 1 4 2 2;5 3 2 0 1;3 4 2 5 2 | 4 1 1 2 4;1 5 3 4 0;4 3 2 4 5 |
icgr-00996 | border+color_swap | composed | Paint the outer border of the grid a fixed colour. Then, Swap two colours everywhere they appear. | 5 | 4 | 5 | 3 | [
{
"input": "0 1 2 2 3;3 2 1 3 4;1 4 3 2 4;3 0 1 1 0",
"output": "1 1 1 1 1;1 2 1 0 1;1 4 0 2 1;1 1 1 1 1"
},
{
"input": "3 2 4 0 1;3 4 1 0 1;1 0 2 4 2;3 3 1 4 0",
"output": "1 1 1 1 1;1 4 1 3 1;1 3 2 4 1;1 1 1 1 1"
},
{
"input": "3 3 3 0 0;4 2 0 0 3;3 2 2 3 4;4 4 3 2 1",
"output": "1... | 3 3 2 2 0;4 1 3 3 1;2 2 3 4 4;3 0 4 4 2 | 1 1 1 1 1;1 1 0 0 1;1 2 0 4 1;1 1 1 1 1 |
icgr-00191 | transpose | atomic | Swap rows and columns (transpose). | 6 | 5 | 4 | 4 | [
{
"input": "1 3 1 4;3 4 3 5;5 3 0 4;3 2 5 3;4 1 0 4",
"output": "1 3 5 3 4;3 4 3 2 1;1 3 0 5 0;4 5 4 3 4"
},
{
"input": "1 1 4 2;5 2 0 2;1 0 0 4;0 3 1 5;2 2 5 1",
"output": "1 5 1 0 2;1 2 0 3 2;4 0 0 1 5;2 2 4 5 1"
},
{
"input": "1 2 4 4;1 0 5 1;5 0 4 5;2 1 5 5;0 0 1 4",
"output": "1... | 0 2 0 1;1 1 1 2;5 0 0 4;5 4 5 5;5 3 4 2 | 0 1 5 5 5;2 1 0 4 3;0 1 0 5 4;1 2 4 5 2 |
icgr-00447 | transpose | atomic | Swap rows and columns (transpose). | 6 | 4 | 3 | 2 | [
{
"input": "4 3 0;1 3 3;3 0 3;0 3 0",
"output": "4 1 3 0;3 3 0 3;0 3 3 0"
},
{
"input": "1 3 3;0 1 4;0 2 1;3 0 4",
"output": "1 0 0 3;3 1 2 0;3 4 1 4"
}
] | 3 3 1;2 0 1;2 0 1;0 5 2 | 3 2 2 0;3 0 0 5;1 1 1 2 |
icgr-00501 | border | atomic | Paint the outer border of the grid a fixed colour. | 5 | 4 | 3 | 4 | [
{
"input": "0 3 3;1 3 0;4 4 3;2 0 4",
"output": "1 1 1;1 3 1;1 4 1;1 1 1"
},
{
"input": "2 1 0;0 0 3;3 3 0;0 2 4",
"output": "1 1 1;1 0 1;1 3 1;1 1 1"
},
{
"input": "3 3 2;2 0 0;4 2 4;4 0 3",
"output": "1 1 1;1 0 1;1 2 1;1 1 1"
},
{
"input": "3 3 3;0 2 0;1 4 3;0 4 1",
"ou... | 4 2 4;1 1 2;4 4 1;4 1 4 | 1 1 1;1 1 1;1 4 1;1 1 1 |
icgr-00911 | flip_h+flip_v | composed | Mirror the grid left-to-right. Then, Mirror the grid top-to-bottom. | 6 | 3 | 5 | 3 | [
{
"input": "5 2 1 2 2;0 3 1 0 4;4 3 2 2 5",
"output": "5 2 2 3 4;4 0 1 3 0;2 2 1 2 5"
},
{
"input": "0 2 1 5 5;4 4 0 2 0;0 5 1 5 5",
"output": "5 5 1 5 0;0 2 0 4 4;5 5 1 2 0"
},
{
"input": "4 2 5 3 5;5 5 3 4 2;2 1 2 5 4",
"output": "4 5 2 1 2;2 4 3 5 5;5 3 5 2 4"
}
] | 4 1 3 4 2;1 4 4 4 4;1 3 4 3 5 | 5 3 4 3 1;4 4 4 4 1;2 4 3 1 4 |
icgr-00960 | tile_h | atomic | Concatenate the grid with a copy of itself, side by side. | 4 | 5 | 5 | 4 | [
{
"input": "1 1 1 2 3;1 1 2 0 1;2 0 2 0 2;3 0 3 0 0;3 0 3 3 0",
"output": "1 1 1 2 3 1 1 1 2 3;1 1 2 0 1 1 1 2 0 1;2 0 2 0 2 2 0 2 0 2;3 0 3 0 0 3 0 3 0 0;3 0 3 3 0 3 0 3 3 0"
},
{
"input": "0 3 1 0 1;3 1 1 2 2;0 0 2 3 1;0 1 1 3 3;3 2 0 2 1",
"output": "0 3 1 0 1 0 3 1 0 1;3 1 1 2 2 3 1 1 2 2;0 ... | 3 3 0 1 0;0 3 0 3 1;1 1 0 1 1;0 0 2 0 2;3 3 0 3 1 | 3 3 0 1 0 3 3 0 1 0;0 3 0 3 1 0 3 0 3 1;1 1 0 1 1 1 1 0 1 1;0 0 2 0 2 0 0 2 0 2;3 3 0 3 1 3 3 0 3 1 |
icgr-00457 | transpose | atomic | Swap rows and columns (transpose). | 6 | 5 | 3 | 4 | [
{
"input": "1 5 5;3 3 3;4 5 4;0 2 3;1 3 2",
"output": "1 3 4 0 1;5 3 5 2 3;5 3 4 3 2"
},
{
"input": "3 0 1;1 5 4;3 5 0;1 3 4;3 2 5",
"output": "3 1 3 1 3;0 5 5 3 2;1 4 0 4 5"
},
{
"input": "1 0 0;4 1 5;1 2 1;3 0 3;1 4 3",
"output": "1 4 1 3 1;0 1 2 0 4;0 5 1 3 3"
},
{
"input"... | 0 4 4;0 4 5;0 3 1;1 5 5;5 2 5 | 0 0 0 1 5;4 4 3 5 2;4 5 1 5 5 |
icgr-00385 | transpose | atomic | Swap rows and columns (transpose). | 6 | 5 | 5 | 2 | [
{
"input": "4 3 4 2 3;3 2 2 0 5;4 1 5 1 1;4 5 2 5 5;5 0 2 2 5",
"output": "4 3 4 4 5;3 2 1 5 0;4 2 5 2 2;2 0 1 5 2;3 5 1 5 5"
},
{
"input": "0 4 2 4 1;5 3 5 2 2;1 2 4 4 0;1 1 2 4 2;0 5 4 5 0",
"output": "0 5 1 1 0;4 3 2 1 5;2 5 4 2 4;4 2 4 4 5;1 2 0 2 0"
}
] | 2 0 0 2 1;0 4 1 1 0;4 1 3 0 4;5 2 0 0 2;3 5 5 0 0 | 2 0 4 5 3;0 4 1 2 5;0 1 3 0 5;2 1 0 0 0;1 0 4 2 0 |
icgr-00009 | flip_v+color_swap | composed | Mirror the grid top-to-bottom. Then, Swap two colours everywhere they appear. | 5 | 4 | 5 | 4 | [
{
"input": "0 4 2 1 4;1 2 2 2 4;3 0 0 3 0;1 4 3 1 0",
"output": "1 4 3 1 0;3 0 0 3 0;1 2 2 2 4;0 4 2 1 4"
},
{
"input": "1 2 0 4 3;3 2 1 2 4;0 4 2 2 4;2 3 4 3 1",
"output": "2 3 4 3 1;0 4 2 2 4;3 2 1 2 4;1 2 0 4 3"
},
{
"input": "2 3 3 0 1;1 1 1 2 4;3 3 1 2 2;3 0 4 3 3",
"output": "3... | 0 0 3 4 2;3 0 2 3 4;0 1 0 0 3;1 3 2 0 2 | 1 3 2 0 2;0 1 0 0 3;3 0 2 3 4;0 0 3 4 2 |
icgr-00430 | max_pool2 | atomic | Replace each non-overlapping 2x2 block with its maximum value. | 4 | 4 | 4 | 4 | [
{
"input": "0 0 3 1;1 3 2 0;3 0 2 0;3 3 1 2",
"output": "3 3;3 2"
},
{
"input": "1 0 0 3;2 3 1 0;2 1 2 3;2 0 2 2",
"output": "3 3;2 3"
},
{
"input": "3 2 1 1;1 2 2 1;3 3 3 1;2 1 0 3",
"output": "3 2;3 3"
},
{
"input": "1 1 0 2;2 3 3 2;0 2 0 1;0 3 0 1",
"output": "3 3;3 1"... | 3 0 2 1;2 1 1 3;0 2 2 2;1 0 3 3 | 3 3;2 3 |
icgr-00744 | border | atomic | Paint the outer border of the grid a fixed colour. | 6 | 4 | 5 | 2 | [
{
"input": "1 2 5 1 1;5 3 2 2 3;4 0 5 5 1;5 1 4 2 0",
"output": "5 5 5 5 5;5 3 2 2 5;5 0 5 5 5;5 5 5 5 5"
},
{
"input": "0 0 5 2 5;0 1 2 5 3;1 1 0 3 0;4 3 2 2 4",
"output": "5 5 5 5 5;5 1 2 5 5;5 1 0 3 5;5 5 5 5 5"
}
] | 5 4 2 3 4;0 0 0 5 0;3 3 2 1 5;3 1 3 1 3 | 5 5 5 5 5;5 0 0 5 5;5 3 2 1 5;5 5 5 5 5 |
icgr-00381 | add_mod+shift_rows | composed | Add a fixed constant to every cell, modulo the colour count. Then, Cyclically shift every row right by a fixed amount. | 4 | 3 | 3 | 2 | [
{
"input": "3 1 1;2 0 2;3 1 2",
"output": "2 0 2;3 3 1;3 0 2"
},
{
"input": "3 3 1;2 2 1;2 1 0",
"output": "2 0 0;2 3 3;1 3 2"
}
] | 1 1 0;0 0 0;2 1 0 | 1 2 2;1 1 1;1 3 2 |
icgr-00394 | shift_rows | atomic | Cyclically shift every row right by a fixed amount. | 6 | 4 | 5 | 4 | [
{
"input": "5 3 3 3 4;3 2 3 1 0;0 3 2 5 1;4 4 3 0 0",
"output": "4 5 3 3 3;0 3 2 3 1;1 0 3 2 5;0 4 4 3 0"
},
{
"input": "1 5 4 5 5;1 5 2 4 5;0 4 4 1 4;3 0 4 0 5",
"output": "5 1 5 4 5;5 1 5 2 4;4 0 4 4 1;5 3 0 4 0"
},
{
"input": "3 4 3 5 3;4 4 3 3 4;2 0 4 1 5;4 5 4 3 2",
"output": "3... | 1 5 4 5 4;3 2 4 2 1;5 5 0 5 3;3 4 1 1 4 | 4 1 5 4 5;1 3 2 4 2;3 5 5 0 5;4 3 4 1 1 |
icgr-00148 | border+flip_h | composed | Paint the outer border of the grid a fixed colour. Then, Mirror the grid left-to-right. | 5 | 3 | 3 | 3 | [
{
"input": "4 0 4;3 3 1;2 0 4",
"output": "3 3 3;3 3 3;3 3 3"
},
{
"input": "0 4 0;3 4 2;3 1 1",
"output": "3 3 3;3 4 3;3 3 3"
},
{
"input": "1 3 4;2 4 2;3 2 0",
"output": "3 3 3;3 4 3;3 3 3"
}
] | 2 2 3;1 3 2;4 3 0 | 3 3 3;3 3 3;3 3 3 |
icgr-00090 | border+flip_v | composed | Paint the outer border of the grid a fixed colour. Then, Mirror the grid top-to-bottom. | 6 | 5 | 5 | 4 | [
{
"input": "3 1 3 2 4;1 0 4 5 1;0 4 3 3 1;0 3 1 2 0;0 1 2 4 0",
"output": "4 4 4 4 4;4 3 1 2 4;4 4 3 3 4;4 0 4 5 4;4 4 4 4 4"
},
{
"input": "4 1 1 3 3;4 3 2 5 2;1 1 3 1 4;1 3 0 2 0;1 1 4 0 0",
"output": "4 4 4 4 4;4 3 0 2 4;4 1 3 1 4;4 3 2 5 4;4 4 4 4 4"
},
{
"input": "5 3 4 1 0;1 5 4 5 ... | 4 3 0 2 3;3 4 4 0 4;0 2 4 5 4;1 3 5 2 1;2 0 0 5 0 | 4 4 4 4 4;4 3 5 2 4;4 2 4 5 4;4 4 4 0 4;4 4 4 4 4 |
icgr-00863 | flip_v+flip_h | composed | Mirror the grid top-to-bottom. Then, Mirror the grid left-to-right. | 6 | 4 | 5 | 4 | [
{
"input": "3 1 4 0 5;1 3 5 0 3;2 5 2 0 2;2 3 1 3 3",
"output": "3 3 1 3 2;2 0 2 5 2;3 0 5 3 1;5 0 4 1 3"
},
{
"input": "0 1 3 0 3;3 0 4 3 4;0 4 0 0 5;3 3 1 0 5",
"output": "5 0 1 3 3;5 0 0 4 0;4 3 4 0 3;3 0 3 1 0"
},
{
"input": "3 5 1 5 0;4 5 3 1 3;0 5 0 0 1;0 5 5 5 4",
"output": "4... | 0 3 1 3 2;1 4 3 0 1;1 0 5 3 3;0 0 2 3 1 | 1 3 2 0 0;3 3 5 0 1;1 0 3 4 1;2 3 1 3 0 |
icgr-00789 | add_mod+color_swap | composed | Add a fixed constant to every cell, modulo the colour count. Then, Swap two colours everywhere they appear. | 4 | 4 | 5 | 4 | [
{
"input": "1 0 0 0 1;0 2 1 3 1;2 0 2 2 2;0 1 3 0 3",
"output": "2 1 1 1 2;1 3 2 0 2;3 1 3 3 3;1 2 0 1 0"
},
{
"input": "2 3 1 2 2;0 1 0 3 1;3 0 0 2 0;1 1 3 0 3",
"output": "3 0 2 3 3;1 2 1 0 2;0 1 1 3 1;2 2 0 1 0"
},
{
"input": "0 0 0 3 3;1 2 3 0 3;0 2 3 2 2;1 0 3 0 1",
"output": "1... | 0 0 0 1 3;1 3 2 2 1;3 3 2 1 0;0 0 2 1 3 | 1 1 1 2 0;2 0 3 3 2;0 0 3 2 1;1 1 3 2 0 |
icgr-00382 | transpose | atomic | Swap rows and columns (transpose). | 6 | 3 | 5 | 4 | [
{
"input": "0 3 3 2 2;3 4 2 5 1;4 5 2 2 4",
"output": "0 3 4;3 4 5;3 2 2;2 5 2;2 1 4"
},
{
"input": "4 2 3 4 5;4 2 5 3 4;4 4 0 0 0",
"output": "4 4 4;2 2 4;3 5 0;4 3 0;5 4 0"
},
{
"input": "2 0 4 4 4;2 3 5 3 0;3 0 0 3 1",
"output": "2 2 3;0 3 0;4 5 0;4 3 3;4 0 1"
},
{
"input"... | 3 5 4 5 5;1 1 3 2 2;3 4 2 4 4 | 3 1 3;5 1 4;4 3 2;5 2 4;5 2 4 |
icgr-00533 | shift_rows | atomic | Cyclically shift every row right by a fixed amount. | 5 | 3 | 5 | 3 | [
{
"input": "3 2 0 4 2;4 3 1 1 4;3 3 0 3 2",
"output": "2 3 2 0 4;4 4 3 1 1;2 3 3 0 3"
},
{
"input": "0 4 1 1 2;0 1 2 3 3;0 0 4 2 4",
"output": "2 0 4 1 1;3 0 1 2 3;4 0 0 4 2"
},
{
"input": "1 3 2 0 1;3 4 4 3 0;4 1 1 2 4",
"output": "1 1 3 2 0;0 3 4 4 3;4 4 1 1 2"
}
] | 0 1 0 0 4;4 3 2 2 4;4 2 2 0 1 | 4 0 1 0 0;4 4 3 2 2;1 4 2 2 0 |
icgr-00059 | shift_rows | atomic | Cyclically shift every row right by a fixed amount. | 6 | 3 | 4 | 3 | [
{
"input": "5 5 5 3;2 5 1 4;3 2 5 5",
"output": "5 3 5 5;1 4 2 5;5 5 3 2"
},
{
"input": "4 4 5 2;5 0 1 3;4 0 5 2",
"output": "5 2 4 4;1 3 5 0;5 2 4 0"
},
{
"input": "5 5 2 5;4 5 4 4;0 5 0 4",
"output": "2 5 5 5;4 4 4 5;0 4 0 5"
}
] | 3 0 0 0;2 4 4 5;3 0 3 3 | 0 0 3 0;4 5 2 4;3 3 3 0 |
icgr-00920 | flip_h | atomic | Mirror the grid left-to-right. | 6 | 5 | 4 | 4 | [
{
"input": "5 3 4 0;0 1 2 2;3 2 0 1;5 3 1 2;0 1 1 3",
"output": "0 4 3 5;2 2 1 0;1 0 2 3;2 1 3 5;3 1 1 0"
},
{
"input": "4 0 5 4;3 0 2 0;1 5 2 1;3 1 0 2;2 1 4 1",
"output": "4 5 0 4;0 2 0 3;1 2 5 1;2 0 1 3;1 4 1 2"
},
{
"input": "4 2 2 0;3 3 3 3;1 0 3 2;5 0 1 2;0 3 4 0",
"output": "0... | 4 2 4 3;3 0 0 1;4 2 0 4;0 2 1 0;4 0 4 4 | 3 4 2 4;1 0 0 3;4 0 2 4;0 1 2 0;4 4 0 4 |
icgr-00003 | border+flip_h | composed | Paint the outer border of the grid a fixed colour. Then, Mirror the grid left-to-right. | 4 | 5 | 5 | 4 | [
{
"input": "0 1 3 0 1;3 3 3 2 3;2 3 0 3 2;3 1 0 0 0;0 1 1 3 3",
"output": "2 2 2 2 2;2 2 3 3 2;2 3 0 3 2;2 0 0 1 2;2 2 2 2 2"
},
{
"input": "2 1 3 0 2;1 0 3 2 0;1 0 1 1 2;2 3 0 3 0;1 2 2 3 1",
"output": "2 2 2 2 2;2 2 3 0 2;2 1 1 0 2;2 3 0 3 2;2 2 2 2 2"
},
{
"input": "2 3 0 1 2;0 0 1 1 ... | 2 0 2 3 2;3 3 1 0 3;0 0 1 0 3;3 2 1 1 2;3 2 2 1 0 | 2 2 2 2 2;2 0 1 3 2;2 0 1 0 2;2 1 1 2 2;2 2 2 2 2 |
icgr-00979 | shift_rows+flip_h | composed | Cyclically shift every row right by a fixed amount. Then, Mirror the grid left-to-right. | 5 | 3 | 5 | 4 | [
{
"input": "2 3 1 3 1;4 0 4 3 2;1 4 1 3 1",
"output": "1 3 2 1 3;4 0 4 2 3;1 4 1 1 3"
},
{
"input": "1 1 3 1 2;4 0 3 3 1;0 2 1 2 2",
"output": "3 1 1 2 1;3 0 4 1 3;1 2 0 2 2"
},
{
"input": "0 4 2 3 1;4 2 3 4 3;1 2 2 1 0",
"output": "2 4 0 1 3;3 2 4 3 4;2 2 1 0 1"
},
{
"input"... | 4 2 3 4 1;2 2 3 3 0;3 3 3 2 2 | 3 2 4 1 4;3 2 2 0 3;3 3 3 2 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.