Dataset Viewer
messages
list | ground_truth
list | dataset
string | difficulty
string | id
string | problem_family
string | name
string |
|---|---|---|---|---|---|---|
[
{
"content": "# Manufactoria Solution DSL\n\nA Domain Specific Language for describing Manufactoria puzzle solutions in text format.\n\n## Overview\n\nManufactoria is a puzzle game where you build automated factories to sort robots based on their colored tape patterns. Robots enter your factory carrying sequences of colored tape, and you must route them to the correct destinations based on the given criteria.\n\n## Game Mechanics\n\n### Robots and Tape\n- **Robots**: Each robot carries a sequence of colored tapes\n- **Tape Colors**: Primary colors are Blue (B) and Red (R), with additional Yellow (Y) and Green (G) for advanced puzzles\n- **Tape Representation**: Sequences are represented as strings (e.g., `RBRR`, `BBR`, or empty string `\"\"`)\n\n### Operations\n- **Pull**: Remove tape from the front of the robot's sequence\n- **Paint**: Add colored tape to the end of the robot's sequence\n- **Route**: Direct robots through the factory based on their current tape state\n\n### Objective (output check)\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node and meets the puzzle's acceptance criteria\n- **Rejected**: Robot is routed to the NONE node, or caught in an infinite loop, or robot reaches the END node but fails to meet the puzzle's acceptance criteria \n\n## DSL Syntax\n\n### Program Structure\n\nEvery solution must start with a `START` directive and end with an `END` directive, wrapped in ```manufactoria ...```:\n\n```manufactoria\nSTART start:\n NEXT <next_node_id>\n\n# Factory logic goes here\n\nEND end\n```\n\n### Node Types\n\n#### 1. Puller Nodes\n\nPullers remove specific colors from the front of the robot's tape sequence and route based on the current front color.\n\n**Red/Blue Puller:**\n\n```manufactoria\nPULLER_RB <node_id>:\n [R] <next_node_id> # Route and remove color if front tape is Red\n [B] <next_node_id> # Route and remove color if front tape is Blue\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither red nor blue\n```\n\n**Yellow/Green Puller:**\n\n```manufactoria\nPULLER_YG <node_id>:\n [Y] <next_node_id> # Route and remove color if front tape is Yellow\n [G] <next_node_id> # Route and remove color if front tape is Green\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither yellow nor green\n```\n\n**Note**: Unspecified branches default to `NONE`, which rejects the robot.\n\n#### 2. Painter Nodes\n\nPainters add colored tape to the end of the robot's sequence and continue to the next node.\n\n```manufactoria\nPAINTER_RED <node_id>:\n NEXT <next_node_id>\n\nPAINTER_BLUE <node_id>:\n NEXT <next_node_id>\n\nPAINTER_YELLOW <node_id>:\n NEXT <next_node_id>\n\nPAINTER_GREEN <node_id>:\n NEXT <next_node_id>\n```\n\n## Syntax Rules\n\n1. **Node IDs**: Must be unique identifiers (alphanumeric characters and underscores only)\n2. **Comments**: Lines starting with `#` are comments (single-line only)\n3. **Indentation**: Use consistent spaces or tabs for route definitions\n4. **Case Sensitivity**: Colors must be uppercase (R, B, Y, G)\n5. **Termination**: \n - Robots routed to `NONE` are rejected\n - Robots routed to the END node are accepted if they meet the puzzle criteria, otherwise rejected\n6. **Code Blocks**: Final factory code should be wrapped in triple backticks with ``` markers\n\n## Example\n\nHere's a simple example that accepts robots with exactly one red tape (ending tape should be empty):\n\n```manufactoria\nSTART start:\n NEXT entry\n\nPULLER_RB entry:\n [R] end\n\nEND end\n```\n\n# Task \nYour task is to design a factory with code with following functionality:\n\nReplace patterns RR with RB, then put 'RRR' at the beginning of the tape. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": true,
"description": "Input '' β mutated: '' β output: 'RRR'",
"expected_accepted": true,
"expected_output": "RRR",
"input": ""
},
{
"check_output": true,
"description": "Input 'R' β mutated: 'R' β output: 'RRRR'",
"expected_accepted": true,
"expected_output": "RRRR",
"input": "R"
},
{
"check_output": true,
"description": "Input 'RB' β mutated: 'RB' β output: 'RRRRB'",
"expected_accepted": true,
"expected_output": "RRRRB",
"input": "RB"
},
{
"check_output": true,
"description": "Input 'BBR' β mutated: 'BBR' β output: 'RRRBBR'",
"expected_accepted": true,
"expected_output": "RRRBBR",
"input": "BBR"
},
{
"check_output": true,
"description": "Input 'RBR' β mutated: 'RBR' β output: 'RRRRBR'",
"expected_accepted": true,
"expected_output": "RRRRBR",
"input": "RBR"
},
{
"check_output": true,
"description": "Input 'RRB' β mutated: 'RBB' β output: 'RRRRBB'",
"expected_accepted": true,
"expected_output": "RRRRBB",
"input": "RRB"
},
{
"check_output": true,
"description": "Input 'RR' β mutated: 'RB' β output: 'RRRRB'",
"expected_accepted": true,
"expected_output": "RRRRB",
"input": "RR"
},
{
"check_output": true,
"description": "Input 'BR' β mutated: 'BR' β output: 'RRRBR'",
"expected_accepted": true,
"expected_output": "RRRBR",
"input": "BR"
},
{
"check_output": true,
"description": "Input 'BRB' β mutated: 'BRB' β output: 'RRRBRB'",
"expected_accepted": true,
"expected_output": "RRRBRB",
"input": "BRB"
},
{
"check_output": true,
"description": "Input 'BB' β mutated: 'BB' β output: 'RRRBB'",
"expected_accepted": true,
"expected_output": "RRRBB",
"input": "BB"
},
{
"check_output": true,
"description": "Input 'B' β mutated: 'B' β output: 'RRRB'",
"expected_accepted": true,
"expected_output": "RRRB",
"input": "B"
},
{
"check_output": true,
"description": "Input 'BRBR' β mutated: 'BRBR' β output: 'RRRBRBR'",
"expected_accepted": true,
"expected_output": "RRRBRBR",
"input": "BRBR"
},
{
"check_output": true,
"description": "Input 'BBB' β mutated: 'BBB' β output: 'RRRBBB'",
"expected_accepted": true,
"expected_output": "RRRBBB",
"input": "BBB"
},
{
"check_output": true,
"description": "Input 'RRR' β mutated: 'RBR' β output: 'RRRRBR'",
"expected_accepted": true,
"expected_output": "RRRRBR",
"input": "RRR"
},
{
"check_output": true,
"description": "Input 'RBRB' β mutated: 'RBRB' β output: 'RRRRBRB'",
"expected_accepted": true,
"expected_output": "RRRRBRB",
"input": "RBRB"
},
{
"check_output": true,
"description": "Input 'BRBRRRRB' β mutated: 'BRBRBRBB' β output: 'RRRBRBRBRBB'",
"expected_accepted": true,
"expected_output": "RRRBRBRBRBB",
"input": "BRBRRRRB"
},
{
"check_output": true,
"description": "Input 'RRRRRBRRRBBB' β mutated: 'RBRBRBRBRBBB' β output: 'RRRRBRBRBRBRBBB'",
"expected_accepted": true,
"expected_output": "RRRRBRBRBRBRBBB",
"input": "RRRRRBRRRBBB"
}
] |
manufactoria
|
hard
|
1b2fa0c2-677f-49a6-bd97-fa72092c22d6
|
prepend_sequence
|
Prepend RRR after Replace patterns RR with RB
|
[
{
"content": "# Manufactoria Solution DSL\n\nA Domain Specific Language for describing Manufactoria puzzle solutions in text format.\n\n## Overview\n\nManufactoria is a puzzle game where you build automated factories to sort robots based on their colored tape patterns. Robots enter your factory carrying sequences of colored tape, and you must route them to the correct destinations based on the given criteria.\n\n## Game Mechanics\n\n### Robots and Tape\n- **Robots**: Each robot carries a sequence of colored tapes\n- **Tape Colors**: Primary colors are Blue (B) and Red (R), with additional Yellow (Y) and Green (G) for advanced puzzles\n- **Tape Representation**: Sequences are represented as strings (e.g., `RBRR`, `BBR`, or empty string `\"\"`)\n\n### Operations\n- **Pull**: Remove tape from the front of the robot's sequence\n- **Paint**: Add colored tape to the end of the robot's sequence\n- **Route**: Direct robots through the factory based on their current tape state\n\n### Objective (output check)\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node and meets the puzzle's acceptance criteria\n- **Rejected**: Robot is routed to the NONE node, or caught in an infinite loop, or robot reaches the END node but fails to meet the puzzle's acceptance criteria \n\n## DSL Syntax\n\n### Program Structure\n\nEvery solution must start with a `START` directive and end with an `END` directive, wrapped in ```manufactoria ...```:\n\n```manufactoria\nSTART start:\n NEXT <next_node_id>\n\n# Factory logic goes here\n\nEND end\n```\n\n### Node Types\n\n#### 1. Puller Nodes\n\nPullers remove specific colors from the front of the robot's tape sequence and route based on the current front color.\n\n**Red/Blue Puller:**\n\n```manufactoria\nPULLER_RB <node_id>:\n [R] <next_node_id> # Route and remove color if front tape is Red\n [B] <next_node_id> # Route and remove color if front tape is Blue\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither red nor blue\n```\n\n**Yellow/Green Puller:**\n\n```manufactoria\nPULLER_YG <node_id>:\n [Y] <next_node_id> # Route and remove color if front tape is Yellow\n [G] <next_node_id> # Route and remove color if front tape is Green\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither yellow nor green\n```\n\n**Note**: Unspecified branches default to `NONE`, which rejects the robot.\n\n#### 2. Painter Nodes\n\nPainters add colored tape to the end of the robot's sequence and continue to the next node.\n\n```manufactoria\nPAINTER_RED <node_id>:\n NEXT <next_node_id>\n\nPAINTER_BLUE <node_id>:\n NEXT <next_node_id>\n\nPAINTER_YELLOW <node_id>:\n NEXT <next_node_id>\n\nPAINTER_GREEN <node_id>:\n NEXT <next_node_id>\n```\n\n## Syntax Rules\n\n1. **Node IDs**: Must be unique identifiers (alphanumeric characters and underscores only)\n2. **Comments**: Lines starting with `#` are comments (single-line only)\n3. **Indentation**: Use consistent spaces or tabs for route definitions\n4. **Case Sensitivity**: Colors must be uppercase (R, B, Y, G)\n5. **Termination**: \n - Robots routed to `NONE` are rejected\n - Robots routed to the END node are accepted if they meet the puzzle criteria, otherwise rejected\n6. **Code Blocks**: Final factory code should be wrapped in triple backticks with ``` markers\n\n## Example\n\nHere's a simple example that accepts robots with exactly one red tape (ending tape should be empty):\n\n```manufactoria\nSTART start:\n NEXT entry\n\nPULLER_RB entry:\n [R] end\n\nEND end\n```\n\n# Task \nYour task is to design a factory with code with following functionality:\n\nReplace patterns RR with BR, then put 'BBBR' at the beginning of the tape. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": true,
"description": "Input '' β mutated: '' β output: 'BBBR'",
"expected_accepted": true,
"expected_output": "BBBR",
"input": ""
},
{
"check_output": true,
"description": "Input 'R' β mutated: 'R' β output: 'BBBRR'",
"expected_accepted": true,
"expected_output": "BBBRR",
"input": "R"
},
{
"check_output": true,
"description": "Input 'RB' β mutated: 'RB' β output: 'BBBRRB'",
"expected_accepted": true,
"expected_output": "BBBRRB",
"input": "RB"
},
{
"check_output": true,
"description": "Input 'BBR' β mutated: 'BBR' β output: 'BBBRBBR'",
"expected_accepted": true,
"expected_output": "BBBRBBR",
"input": "BBR"
},
{
"check_output": true,
"description": "Input 'RBR' β mutated: 'RBR' β output: 'BBBRRBR'",
"expected_accepted": true,
"expected_output": "BBBRRBR",
"input": "RBR"
},
{
"check_output": true,
"description": "Input 'RRB' β mutated: 'BRB' β output: 'BBBRBRB'",
"expected_accepted": true,
"expected_output": "BBBRBRB",
"input": "RRB"
},
{
"check_output": true,
"description": "Input 'B' β mutated: 'B' β output: 'BBBRB'",
"expected_accepted": true,
"expected_output": "BBBRB",
"input": "B"
},
{
"check_output": true,
"description": "Input 'RR' β mutated: 'BR' β output: 'BBBRBR'",
"expected_accepted": true,
"expected_output": "BBBRBR",
"input": "RR"
},
{
"check_output": true,
"description": "Input 'BR' β mutated: 'BR' β output: 'BBBRBR'",
"expected_accepted": true,
"expected_output": "BBBRBR",
"input": "BR"
},
{
"check_output": true,
"description": "Input 'BRB' β mutated: 'BRB' β output: 'BBBRBRB'",
"expected_accepted": true,
"expected_output": "BBBRBRB",
"input": "BRB"
},
{
"check_output": true,
"description": "Input 'BB' β mutated: 'BB' β output: 'BBBRBB'",
"expected_accepted": true,
"expected_output": "BBBRBB",
"input": "BB"
},
{
"check_output": true,
"description": "Input 'BRBB' β mutated: 'BRBB' β output: 'BBBRBRBB'",
"expected_accepted": true,
"expected_output": "BBBRBRBB",
"input": "BRBB"
},
{
"check_output": true,
"description": "Input 'BBB' β mutated: 'BBB' β output: 'BBBRBBB'",
"expected_accepted": true,
"expected_output": "BBBRBBB",
"input": "BBB"
},
{
"check_output": true,
"description": "Input 'RRR' β mutated: 'BRR' β output: 'BBBRBRR'",
"expected_accepted": true,
"expected_output": "BBBRBRR",
"input": "RRR"
},
{
"check_output": true,
"description": "Input 'BRBR' β mutated: 'BRBR' β output: 'BBBRBRBR'",
"expected_accepted": true,
"expected_output": "BBBRBRBR",
"input": "BRBR"
},
{
"check_output": true,
"description": "Input 'RBRB' β mutated: 'RBRB' β output: 'BBBRRBRB'",
"expected_accepted": true,
"expected_output": "BBBRRBRB",
"input": "RBRB"
},
{
"check_output": true,
"description": "Input 'BBBRRBBR' β mutated: 'BBBBRBBR' β output: 'BBBRBBBBRBBR'",
"expected_accepted": true,
"expected_output": "BBBRBBBBRBBR",
"input": "BBBRRBBR"
},
{
"check_output": true,
"description": "Input 'BBBBRRBBBRRR' β mutated: 'BBBBBRBBBBRR' β output: 'BBBRBBBBBRBBBBRR'",
"expected_accepted": true,
"expected_output": "BBBRBBBBBRBBBBRR",
"input": "BBBBRRBBBRRR"
}
] |
manufactoria
|
hard
|
253bc09e-af7e-4ef9-88c1-9e959b48e471
|
prepend_sequence
|
Prepend BBBR after Replace patterns RR with BR
|
[
{
"content": "# Manufactoria Solution DSL\n\nA Domain Specific Language for describing Manufactoria puzzle solutions in text format.\n\n## Overview\n\nManufactoria is a puzzle game where you build automated factories to sort robots based on their colored tape patterns. Robots enter your factory carrying sequences of colored tape, and you must route them to the correct destinations based on the given criteria.\n\n## Game Mechanics\n\n### Robots and Tape\n- **Robots**: Each robot carries a sequence of colored tapes\n- **Tape Colors**: Primary colors are Blue (B) and Red (R), with additional Yellow (Y) and Green (G) for advanced puzzles\n- **Tape Representation**: Sequences are represented as strings (e.g., `RBRR`, `BBR`, or empty string `\"\"`)\n\n### Operations\n- **Pull**: Remove tape from the front of the robot's sequence\n- **Paint**: Add colored tape to the end of the robot's sequence\n- **Route**: Direct robots through the factory based on their current tape state\n\n### Objective (output check)\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node and meets the puzzle's acceptance criteria\n- **Rejected**: Robot is routed to the NONE node, or caught in an infinite loop, or robot reaches the END node but fails to meet the puzzle's acceptance criteria \n\n## DSL Syntax\n\n### Program Structure\n\nEvery solution must start with a `START` directive and end with an `END` directive, wrapped in ```manufactoria ...```:\n\n```manufactoria\nSTART start:\n NEXT <next_node_id>\n\n# Factory logic goes here\n\nEND end\n```\n\n### Node Types\n\n#### 1. Puller Nodes\n\nPullers remove specific colors from the front of the robot's tape sequence and route based on the current front color.\n\n**Red/Blue Puller:**\n\n```manufactoria\nPULLER_RB <node_id>:\n [R] <next_node_id> # Route and remove color if front tape is Red\n [B] <next_node_id> # Route and remove color if front tape is Blue\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither red nor blue\n```\n\n**Yellow/Green Puller:**\n\n```manufactoria\nPULLER_YG <node_id>:\n [Y] <next_node_id> # Route and remove color if front tape is Yellow\n [G] <next_node_id> # Route and remove color if front tape is Green\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither yellow nor green\n```\n\n**Note**: Unspecified branches default to `NONE`, which rejects the robot.\n\n#### 2. Painter Nodes\n\nPainters add colored tape to the end of the robot's sequence and continue to the next node.\n\n```manufactoria\nPAINTER_RED <node_id>:\n NEXT <next_node_id>\n\nPAINTER_BLUE <node_id>:\n NEXT <next_node_id>\n\nPAINTER_YELLOW <node_id>:\n NEXT <next_node_id>\n\nPAINTER_GREEN <node_id>:\n NEXT <next_node_id>\n```\n\n## Syntax Rules\n\n1. **Node IDs**: Must be unique identifiers (alphanumeric characters and underscores only)\n2. **Comments**: Lines starting with `#` are comments (single-line only)\n3. **Indentation**: Use consistent spaces or tabs for route definitions\n4. **Case Sensitivity**: Colors must be uppercase (R, B, Y, G)\n5. **Termination**: \n - Robots routed to `NONE` are rejected\n - Robots routed to the END node are accepted if they meet the puzzle criteria, otherwise rejected\n6. **Code Blocks**: Final factory code should be wrapped in triple backticks with ``` markers\n\n## Example\n\nHere's a simple example that accepts robots with exactly one red tape (ending tape should be empty):\n\n```manufactoria\nSTART start:\n NEXT entry\n\nPULLER_RB entry:\n [R] end\n\nEND end\n```\n\n# Task \nYour task is to design a factory with code with following functionality:\n\nRemove patterns BR, then put 'BRBB' at the beginning of the tape. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": true,
"description": "Input '' β mutated: '' β output: 'BRBB'",
"expected_accepted": true,
"expected_output": "BRBB",
"input": ""
},
{
"check_output": true,
"description": "Input 'R' β mutated: 'R' β output: 'BRBBR'",
"expected_accepted": true,
"expected_output": "BRBBR",
"input": "R"
},
{
"check_output": true,
"description": "Input 'RB' β mutated: 'RB' β output: 'BRBBRB'",
"expected_accepted": true,
"expected_output": "BRBBRB",
"input": "RB"
},
{
"check_output": true,
"description": "Input 'BBR' β mutated: 'B' β output: 'BRBBB'",
"expected_accepted": true,
"expected_output": "BRBBB",
"input": "BBR"
},
{
"check_output": true,
"description": "Input 'RBR' β mutated: 'R' β output: 'BRBBR'",
"expected_accepted": true,
"expected_output": "BRBBR",
"input": "RBR"
},
{
"check_output": true,
"description": "Input 'RRB' β mutated: 'RRB' β output: 'BRBBRRB'",
"expected_accepted": true,
"expected_output": "BRBBRRB",
"input": "RRB"
},
{
"check_output": true,
"description": "Input 'B' β mutated: 'B' β output: 'BRBBB'",
"expected_accepted": true,
"expected_output": "BRBBB",
"input": "B"
},
{
"check_output": true,
"description": "Input 'BRB' β mutated: 'B' β output: 'BRBBB'",
"expected_accepted": true,
"expected_output": "BRBBB",
"input": "BRB"
},
{
"check_output": true,
"description": "Input 'BR' β mutated: '' β output: 'BRBB'",
"expected_accepted": true,
"expected_output": "BRBB",
"input": "BR"
},
{
"check_output": true,
"description": "Input 'RR' β mutated: 'RR' β output: 'BRBBRR'",
"expected_accepted": true,
"expected_output": "BRBBRR",
"input": "RR"
},
{
"check_output": true,
"description": "Input 'BB' β mutated: 'BB' β output: 'BRBBBB'",
"expected_accepted": true,
"expected_output": "BRBBBB",
"input": "BB"
},
{
"check_output": true,
"description": "Input 'BRBR' β mutated: '' β output: 'BRBB'",
"expected_accepted": true,
"expected_output": "BRBB",
"input": "BRBR"
},
{
"check_output": true,
"description": "Input 'BBB' β mutated: 'BBB' β output: 'BRBBBBB'",
"expected_accepted": true,
"expected_output": "BRBBBBB",
"input": "BBB"
},
{
"check_output": true,
"description": "Input 'RRR' β mutated: 'RRR' β output: 'BRBBRRR'",
"expected_accepted": true,
"expected_output": "BRBBRRR",
"input": "RRR"
},
{
"check_output": true,
"description": "Input 'RBRB' β mutated: 'RB' β output: 'BRBBRB'",
"expected_accepted": true,
"expected_output": "BRBBRB",
"input": "RBRB"
},
{
"check_output": true,
"description": "Input 'BBRRRRBB' β mutated: 'BRRRBB' β output: 'BRBBBRRRBB'",
"expected_accepted": true,
"expected_output": "BRBBBRRRBB",
"input": "BBRRRRBB"
},
{
"check_output": true,
"description": "Input 'BRBBBBBBRBRR' β mutated: 'BBBBBR' β output: 'BRBBBBBBBR'",
"expected_accepted": true,
"expected_output": "BRBBBBBBBR",
"input": "BRBBBBBBRBRR"
}
] |
manufactoria
|
hard
|
d20b52c0-c38b-4f0f-ba90-f2bd651cedb0
|
prepend_sequence
|
Prepend BRBB after Remove patterns BR
|
[
{
"content": "# Manufactoria Solution DSL\n\nA Domain Specific Language for describing Manufactoria puzzle solutions in text format.\n\n## Overview\n\nManufactoria is a puzzle game where you build automated factories to sort robots based on their colored tape patterns. Robots enter your factory carrying sequences of colored tape, and you must route them to the correct destinations based on the given criteria.\n\n## Game Mechanics\n\n### Robots and Tape\n- **Robots**: Each robot carries a sequence of colored tapes\n- **Tape Colors**: Primary colors are Blue (B) and Red (R), with additional Yellow (Y) and Green (G) for advanced puzzles\n- **Tape Representation**: Sequences are represented as strings (e.g., `RBRR`, `BBR`, or empty string `\"\"`)\n\n### Operations\n- **Pull**: Remove tape from the front of the robot's sequence\n- **Paint**: Add colored tape to the end of the robot's sequence\n- **Route**: Direct robots through the factory based on their current tape state\n\n### Objective (output check)\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node and meets the puzzle's acceptance criteria\n- **Rejected**: Robot is routed to the NONE node, or caught in an infinite loop, or robot reaches the END node but fails to meet the puzzle's acceptance criteria \n\n## DSL Syntax\n\n### Program Structure\n\nEvery solution must start with a `START` directive and end with an `END` directive, wrapped in ```manufactoria ...```:\n\n```manufactoria\nSTART start:\n NEXT <next_node_id>\n\n# Factory logic goes here\n\nEND end\n```\n\n### Node Types\n\n#### 1. Puller Nodes\n\nPullers remove specific colors from the front of the robot's tape sequence and route based on the current front color.\n\n**Red/Blue Puller:**\n\n```manufactoria\nPULLER_RB <node_id>:\n [R] <next_node_id> # Route and remove color if front tape is Red\n [B] <next_node_id> # Route and remove color if front tape is Blue\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither red nor blue\n```\n\n**Yellow/Green Puller:**\n\n```manufactoria\nPULLER_YG <node_id>:\n [Y] <next_node_id> # Route and remove color if front tape is Yellow\n [G] <next_node_id> # Route and remove color if front tape is Green\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither yellow nor green\n```\n\n**Note**: Unspecified branches default to `NONE`, which rejects the robot.\n\n#### 2. Painter Nodes\n\nPainters add colored tape to the end of the robot's sequence and continue to the next node.\n\n```manufactoria\nPAINTER_RED <node_id>:\n NEXT <next_node_id>\n\nPAINTER_BLUE <node_id>:\n NEXT <next_node_id>\n\nPAINTER_YELLOW <node_id>:\n NEXT <next_node_id>\n\nPAINTER_GREEN <node_id>:\n NEXT <next_node_id>\n```\n\n## Syntax Rules\n\n1. **Node IDs**: Must be unique identifiers (alphanumeric characters and underscores only)\n2. **Comments**: Lines starting with `#` are comments (single-line only)\n3. **Indentation**: Use consistent spaces or tabs for route definitions\n4. **Case Sensitivity**: Colors must be uppercase (R, B, Y, G)\n5. **Termination**: \n - Robots routed to `NONE` are rejected\n - Robots routed to the END node are accepted if they meet the puzzle criteria, otherwise rejected\n6. **Code Blocks**: Final factory code should be wrapped in triple backticks with ``` markers\n\n## Example\n\nHere's a simple example that accepts robots with exactly one red tape (ending tape should be empty):\n\n```manufactoria\nSTART start:\n NEXT entry\n\nPULLER_RB entry:\n [R] end\n\nEND end\n```\n\n# Task \nYour task is to design a factory with code with following functionality:\n\nReplace patterns RB with RR, then put 'RRRR' at the beginning of the tape. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": true,
"description": "Input '' β mutated: '' β output: 'RRRR'",
"expected_accepted": true,
"expected_output": "RRRR",
"input": ""
},
{
"check_output": true,
"description": "Input 'R' β mutated: 'R' β output: 'RRRRR'",
"expected_accepted": true,
"expected_output": "RRRRR",
"input": "R"
},
{
"check_output": true,
"description": "Input 'RB' β mutated: 'RR' β output: 'RRRRRR'",
"expected_accepted": true,
"expected_output": "RRRRRR",
"input": "RB"
},
{
"check_output": true,
"description": "Input 'BBR' β mutated: 'BBR' β output: 'RRRRBBR'",
"expected_accepted": true,
"expected_output": "RRRRBBR",
"input": "BBR"
},
{
"check_output": true,
"description": "Input 'RBR' β mutated: 'RRR' β output: 'RRRRRRR'",
"expected_accepted": true,
"expected_output": "RRRRRRR",
"input": "RBR"
},
{
"check_output": true,
"description": "Input 'RRB' β mutated: 'RRR' β output: 'RRRRRRR'",
"expected_accepted": true,
"expected_output": "RRRRRRR",
"input": "RRB"
},
{
"check_output": true,
"description": "Input 'B' β mutated: 'B' β output: 'RRRRB'",
"expected_accepted": true,
"expected_output": "RRRRB",
"input": "B"
},
{
"check_output": true,
"description": "Input 'BRB' β mutated: 'BRR' β output: 'RRRRBRR'",
"expected_accepted": true,
"expected_output": "RRRRBRR",
"input": "BRB"
},
{
"check_output": true,
"description": "Input 'BR' β mutated: 'BR' β output: 'RRRRBR'",
"expected_accepted": true,
"expected_output": "RRRRBR",
"input": "BR"
},
{
"check_output": true,
"description": "Input 'BB' β mutated: 'BB' β output: 'RRRRBB'",
"expected_accepted": true,
"expected_output": "RRRRBB",
"input": "BB"
},
{
"check_output": true,
"description": "Input 'RR' β mutated: 'RR' β output: 'RRRRRR'",
"expected_accepted": true,
"expected_output": "RRRRRR",
"input": "RR"
},
{
"check_output": true,
"description": "Input 'BRRR' β mutated: 'BRRR' β output: 'RRRRBRRR'",
"expected_accepted": true,
"expected_output": "RRRRBRRR",
"input": "BRRR"
},
{
"check_output": true,
"description": "Input 'BBB' β mutated: 'BBB' β output: 'RRRRBBB'",
"expected_accepted": true,
"expected_output": "RRRRBBB",
"input": "BBB"
},
{
"check_output": true,
"description": "Input 'RRR' β mutated: 'RRR' β output: 'RRRRRRR'",
"expected_accepted": true,
"expected_output": "RRRRRRR",
"input": "RRR"
},
{
"check_output": true,
"description": "Input 'BRBR' β mutated: 'BRRR' β output: 'RRRRBRRR'",
"expected_accepted": true,
"expected_output": "RRRRBRRR",
"input": "BRBR"
},
{
"check_output": true,
"description": "Input 'RBRB' β mutated: 'RRRR' β output: 'RRRRRRRR'",
"expected_accepted": true,
"expected_output": "RRRRRRRR",
"input": "RBRB"
},
{
"check_output": true,
"description": "Input 'RBBBRBRR' β mutated: 'RRBBRRRR' β output: 'RRRRRRBBRRRR'",
"expected_accepted": true,
"expected_output": "RRRRRRBBRRRR",
"input": "RBBBRBRR"
},
{
"check_output": true,
"description": "Input 'RRBRRBRBBBBB' β mutated: 'RRRRRRRRBBBB' β output: 'RRRRRRRRRRRRBBBB'",
"expected_accepted": true,
"expected_output": "RRRRRRRRRRRRBBBB",
"input": "RRBRRBRBBBBB"
}
] |
manufactoria
|
hard
|
b71dffb7-68ae-4edb-9af9-860e4bd23347
|
prepend_sequence
|
Prepend RRRR after Replace patterns RB with RR
|
[
{
"content": "# Manufactoria Solution DSL\n\nA Domain Specific Language for describing Manufactoria puzzle solutions in text format.\n\n## Overview\n\nManufactoria is a puzzle game where you build automated factories to sort robots based on their colored tape patterns. Robots enter your factory carrying sequences of colored tape, and you must route them to the correct destinations based on the given criteria.\n\n## Game Mechanics\n\n### Robots and Tape\n- **Robots**: Each robot carries a sequence of colored tapes\n- **Tape Colors**: Primary colors are Blue (B) and Red (R), with additional Yellow (Y) and Green (G) for advanced puzzles\n- **Tape Representation**: Sequences are represented as strings (e.g., `RBRR`, `BBR`, or empty string `\"\"`)\n\n### Operations\n- **Pull**: Remove tape from the front of the robot's sequence\n- **Paint**: Add colored tape to the end of the robot's sequence\n- **Route**: Direct robots through the factory based on their current tape state\n\n### Objective (output check)\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node and meets the puzzle's acceptance criteria\n- **Rejected**: Robot is routed to the NONE node, or caught in an infinite loop, or robot reaches the END node but fails to meet the puzzle's acceptance criteria \n\n## DSL Syntax\n\n### Program Structure\n\nEvery solution must start with a `START` directive and end with an `END` directive, wrapped in ```manufactoria ...```:\n\n```manufactoria\nSTART start:\n NEXT <next_node_id>\n\n# Factory logic goes here\n\nEND end\n```\n\n### Node Types\n\n#### 1. Puller Nodes\n\nPullers remove specific colors from the front of the robot's tape sequence and route based on the current front color.\n\n**Red/Blue Puller:**\n\n```manufactoria\nPULLER_RB <node_id>:\n [R] <next_node_id> # Route and remove color if front tape is Red\n [B] <next_node_id> # Route and remove color if front tape is Blue\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither red nor blue\n```\n\n**Yellow/Green Puller:**\n\n```manufactoria\nPULLER_YG <node_id>:\n [Y] <next_node_id> # Route and remove color if front tape is Yellow\n [G] <next_node_id> # Route and remove color if front tape is Green\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither yellow nor green\n```\n\n**Note**: Unspecified branches default to `NONE`, which rejects the robot.\n\n#### 2. Painter Nodes\n\nPainters add colored tape to the end of the robot's sequence and continue to the next node.\n\n```manufactoria\nPAINTER_RED <node_id>:\n NEXT <next_node_id>\n\nPAINTER_BLUE <node_id>:\n NEXT <next_node_id>\n\nPAINTER_YELLOW <node_id>:\n NEXT <next_node_id>\n\nPAINTER_GREEN <node_id>:\n NEXT <next_node_id>\n```\n\n## Syntax Rules\n\n1. **Node IDs**: Must be unique identifiers (alphanumeric characters and underscores only)\n2. **Comments**: Lines starting with `#` are comments (single-line only)\n3. **Indentation**: Use consistent spaces or tabs for route definitions\n4. **Case Sensitivity**: Colors must be uppercase (R, B, Y, G)\n5. **Termination**: \n - Robots routed to `NONE` are rejected\n - Robots routed to the END node are accepted if they meet the puzzle criteria, otherwise rejected\n6. **Code Blocks**: Final factory code should be wrapped in triple backticks with ``` markers\n\n## Example\n\nHere's a simple example that accepts robots with exactly one red tape (ending tape should be empty):\n\n```manufactoria\nSTART start:\n NEXT entry\n\nPULLER_RB entry:\n [R] end\n\nEND end\n```\n\n# Task \nYour task is to design a factory with code with following functionality:\n\nReplace patterns BR with BB, then put 'RBR' at the beginning of the tape. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": true,
"description": "Input '' β mutated: '' β output: 'RBR'",
"expected_accepted": true,
"expected_output": "RBR",
"input": ""
},
{
"check_output": true,
"description": "Input 'R' β mutated: 'R' β output: 'RBRR'",
"expected_accepted": true,
"expected_output": "RBRR",
"input": "R"
},
{
"check_output": true,
"description": "Input 'RB' β mutated: 'RB' β output: 'RBRRB'",
"expected_accepted": true,
"expected_output": "RBRRB",
"input": "RB"
},
{
"check_output": true,
"description": "Input 'BBR' β mutated: 'BBB' β output: 'RBRBBB'",
"expected_accepted": true,
"expected_output": "RBRBBB",
"input": "BBR"
},
{
"check_output": true,
"description": "Input 'RBR' β mutated: 'RBB' β output: 'RBRRBB'",
"expected_accepted": true,
"expected_output": "RBRRBB",
"input": "RBR"
},
{
"check_output": true,
"description": "Input 'RRB' β mutated: 'RRB' β output: 'RBRRRB'",
"expected_accepted": true,
"expected_output": "RBRRRB",
"input": "RRB"
},
{
"check_output": true,
"description": "Input 'RR' β mutated: 'RR' β output: 'RBRRR'",
"expected_accepted": true,
"expected_output": "RBRRR",
"input": "RR"
},
{
"check_output": true,
"description": "Input 'BR' β mutated: 'BB' β output: 'RBRBB'",
"expected_accepted": true,
"expected_output": "RBRBB",
"input": "BR"
},
{
"check_output": true,
"description": "Input 'BRB' β mutated: 'BBB' β output: 'RBRBBB'",
"expected_accepted": true,
"expected_output": "RBRBBB",
"input": "BRB"
},
{
"check_output": true,
"description": "Input 'BB' β mutated: 'BB' β output: 'RBRBB'",
"expected_accepted": true,
"expected_output": "RBRBB",
"input": "BB"
},
{
"check_output": true,
"description": "Input 'B' β mutated: 'B' β output: 'RBRB'",
"expected_accepted": true,
"expected_output": "RBRB",
"input": "B"
},
{
"check_output": true,
"description": "Input 'RBRB' β mutated: 'RBBB' β output: 'RBRRBBB'",
"expected_accepted": true,
"expected_output": "RBRRBBB",
"input": "RBRB"
},
{
"check_output": true,
"description": "Input 'BBB' β mutated: 'BBB' β output: 'RBRBBB'",
"expected_accepted": true,
"expected_output": "RBRBBB",
"input": "BBB"
},
{
"check_output": true,
"description": "Input 'RRR' β mutated: 'RRR' β output: 'RBRRRR'",
"expected_accepted": true,
"expected_output": "RBRRRR",
"input": "RRR"
},
{
"check_output": true,
"description": "Input 'BRBR' β mutated: 'BBBB' β output: 'RBRBBBB'",
"expected_accepted": true,
"expected_output": "RBRBBBB",
"input": "BRBR"
},
{
"check_output": true,
"description": "Input 'BRBBBBRB' β mutated: 'BBBBBBBB' β output: 'RBRBBBBBBBB'",
"expected_accepted": true,
"expected_output": "RBRBBBBBBBB",
"input": "BRBBBBRB"
},
{
"check_output": true,
"description": "Input 'RRRRRBBRRBRR' β mutated: 'RRRRRBBBRBBR' β output: 'RBRRRRRRBBBRBBR'",
"expected_accepted": true,
"expected_output": "RBRRRRRRBBBRBBR",
"input": "RRRRRBBRRBRR"
}
] |
manufactoria
|
hard
|
86e0aa06-e2cc-4328-a122-5eaa03fb73cd
|
prepend_sequence
|
Prepend RBR after Replace patterns BR with BB
|
[
{
"content": "# Manufactoria Solution DSL\n\nA Domain Specific Language for describing Manufactoria puzzle solutions in text format.\n\n## Overview\n\nManufactoria is a puzzle game where you build automated factories to sort robots based on their colored tape patterns. Robots enter your factory carrying sequences of colored tape, and you must route them to the correct destinations based on the given criteria.\n\n## Game Mechanics\n\n### Robots and Tape\n- **Robots**: Each robot carries a sequence of colored tapes\n- **Tape Colors**: Primary colors are Blue (B) and Red (R), with additional Yellow (Y) and Green (G) for advanced puzzles\n- **Tape Representation**: Sequences are represented as strings (e.g., `RBRR`, `BBR`, or empty string `\"\"`)\n\n### Operations\n- **Pull**: Remove tape from the front of the robot's sequence\n- **Paint**: Add colored tape to the end of the robot's sequence\n- **Route**: Direct robots through the factory based on their current tape state\n\n### Objective (output check)\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node and meets the puzzle's acceptance criteria\n- **Rejected**: Robot is routed to the NONE node, or caught in an infinite loop, or robot reaches the END node but fails to meet the puzzle's acceptance criteria \n\n## DSL Syntax\n\n### Program Structure\n\nEvery solution must start with a `START` directive and end with an `END` directive, wrapped in ```manufactoria ...```:\n\n```manufactoria\nSTART start:\n NEXT <next_node_id>\n\n# Factory logic goes here\n\nEND end\n```\n\n### Node Types\n\n#### 1. Puller Nodes\n\nPullers remove specific colors from the front of the robot's tape sequence and route based on the current front color.\n\n**Red/Blue Puller:**\n\n```manufactoria\nPULLER_RB <node_id>:\n [R] <next_node_id> # Route and remove color if front tape is Red\n [B] <next_node_id> # Route and remove color if front tape is Blue\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither red nor blue\n```\n\n**Yellow/Green Puller:**\n\n```manufactoria\nPULLER_YG <node_id>:\n [Y] <next_node_id> # Route and remove color if front tape is Yellow\n [G] <next_node_id> # Route and remove color if front tape is Green\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither yellow nor green\n```\n\n**Note**: Unspecified branches default to `NONE`, which rejects the robot.\n\n#### 2. Painter Nodes\n\nPainters add colored tape to the end of the robot's sequence and continue to the next node.\n\n```manufactoria\nPAINTER_RED <node_id>:\n NEXT <next_node_id>\n\nPAINTER_BLUE <node_id>:\n NEXT <next_node_id>\n\nPAINTER_YELLOW <node_id>:\n NEXT <next_node_id>\n\nPAINTER_GREEN <node_id>:\n NEXT <next_node_id>\n```\n\n## Syntax Rules\n\n1. **Node IDs**: Must be unique identifiers (alphanumeric characters and underscores only)\n2. **Comments**: Lines starting with `#` are comments (single-line only)\n3. **Indentation**: Use consistent spaces or tabs for route definitions\n4. **Case Sensitivity**: Colors must be uppercase (R, B, Y, G)\n5. **Termination**: \n - Robots routed to `NONE` are rejected\n - Robots routed to the END node are accepted if they meet the puzzle criteria, otherwise rejected\n6. **Code Blocks**: Final factory code should be wrapped in triple backticks with ``` markers\n\n## Example\n\nHere's a simple example that accepts robots with exactly one red tape (ending tape should be empty):\n\n```manufactoria\nSTART start:\n NEXT entry\n\nPULLER_RB entry:\n [R] end\n\nEND end\n```\n\n# Task \nYour task is to design a factory with code with following functionality:\n\nReplace patterns RR with BR, then put 'BBB' at the beginning of the tape. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": true,
"description": "Input '' β mutated: '' β output: 'BBB'",
"expected_accepted": true,
"expected_output": "BBB",
"input": ""
},
{
"check_output": true,
"description": "Input 'R' β mutated: 'R' β output: 'BBBR'",
"expected_accepted": true,
"expected_output": "BBBR",
"input": "R"
},
{
"check_output": true,
"description": "Input 'RB' β mutated: 'RB' β output: 'BBBRB'",
"expected_accepted": true,
"expected_output": "BBBRB",
"input": "RB"
},
{
"check_output": true,
"description": "Input 'BBR' β mutated: 'BBR' β output: 'BBBBBR'",
"expected_accepted": true,
"expected_output": "BBBBBR",
"input": "BBR"
},
{
"check_output": true,
"description": "Input 'RBR' β mutated: 'RBR' β output: 'BBBRBR'",
"expected_accepted": true,
"expected_output": "BBBRBR",
"input": "RBR"
},
{
"check_output": true,
"description": "Input 'RRB' β mutated: 'BRB' β output: 'BBBBRB'",
"expected_accepted": true,
"expected_output": "BBBBRB",
"input": "RRB"
},
{
"check_output": true,
"description": "Input 'B' β mutated: 'B' β output: 'BBBB'",
"expected_accepted": true,
"expected_output": "BBBB",
"input": "B"
},
{
"check_output": true,
"description": "Input 'RR' β mutated: 'BR' β output: 'BBBBR'",
"expected_accepted": true,
"expected_output": "BBBBR",
"input": "RR"
},
{
"check_output": true,
"description": "Input 'BR' β mutated: 'BR' β output: 'BBBBR'",
"expected_accepted": true,
"expected_output": "BBBBR",
"input": "BR"
},
{
"check_output": true,
"description": "Input 'BRB' β mutated: 'BRB' β output: 'BBBBRB'",
"expected_accepted": true,
"expected_output": "BBBBRB",
"input": "BRB"
},
{
"check_output": true,
"description": "Input 'BB' β mutated: 'BB' β output: 'BBBBB'",
"expected_accepted": true,
"expected_output": "BBBBB",
"input": "BB"
},
{
"check_output": true,
"description": "Input 'BRBR' β mutated: 'BRBR' β output: 'BBBBRBR'",
"expected_accepted": true,
"expected_output": "BBBBRBR",
"input": "BRBR"
},
{
"check_output": true,
"description": "Input 'BBB' β mutated: 'BBB' β output: 'BBBBBB'",
"expected_accepted": true,
"expected_output": "BBBBBB",
"input": "BBB"
},
{
"check_output": true,
"description": "Input 'RRR' β mutated: 'BRR' β output: 'BBBBRR'",
"expected_accepted": true,
"expected_output": "BBBBRR",
"input": "RRR"
},
{
"check_output": true,
"description": "Input 'RBRB' β mutated: 'RBRB' β output: 'BBBRBRB'",
"expected_accepted": true,
"expected_output": "BBBRBRB",
"input": "RBRB"
},
{
"check_output": true,
"description": "Input 'RBRRRBRR' β mutated: 'RBBRRBBR' β output: 'BBBRBBRRBBR'",
"expected_accepted": true,
"expected_output": "BBBRBBRRBBR",
"input": "RBRRRBRR"
},
{
"check_output": true,
"description": "Input 'RRBRBRBBBBBB' β mutated: 'BRBRBRBBBBBB' β output: 'BBBBRBRBRBBBBBB'",
"expected_accepted": true,
"expected_output": "BBBBRBRBRBBBBBB",
"input": "RRBRBRBBBBBB"
}
] |
manufactoria
|
hard
|
fdb519af-b487-4805-872f-e174ee509c8d
|
prepend_sequence
|
Prepend BBB after Replace patterns RR with BR
|
[
{
"content": "# Manufactoria Solution DSL\n\nA Domain Specific Language for describing Manufactoria puzzle solutions in text format.\n\n## Overview\n\nManufactoria is a puzzle game where you build automated factories to sort robots based on their colored tape patterns. Robots enter your factory carrying sequences of colored tape, and you must route them to the correct destinations based on the given criteria.\n\n## Game Mechanics\n\n### Robots and Tape\n- **Robots**: Each robot carries a sequence of colored tapes\n- **Tape Colors**: Primary colors are Blue (B) and Red (R), with additional Yellow (Y) and Green (G) for advanced puzzles\n- **Tape Representation**: Sequences are represented as strings (e.g., `RBRR`, `BBR`, or empty string `\"\"`)\n\n### Operations\n- **Pull**: Remove tape from the front of the robot's sequence\n- **Paint**: Add colored tape to the end of the robot's sequence\n- **Route**: Direct robots through the factory based on their current tape state\n\n### Objective (output check)\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node and meets the puzzle's acceptance criteria\n- **Rejected**: Robot is routed to the NONE node, or caught in an infinite loop, or robot reaches the END node but fails to meet the puzzle's acceptance criteria \n\n## DSL Syntax\n\n### Program Structure\n\nEvery solution must start with a `START` directive and end with an `END` directive, wrapped in ```manufactoria ...```:\n\n```manufactoria\nSTART start:\n NEXT <next_node_id>\n\n# Factory logic goes here\n\nEND end\n```\n\n### Node Types\n\n#### 1. Puller Nodes\n\nPullers remove specific colors from the front of the robot's tape sequence and route based on the current front color.\n\n**Red/Blue Puller:**\n\n```manufactoria\nPULLER_RB <node_id>:\n [R] <next_node_id> # Route and remove color if front tape is Red\n [B] <next_node_id> # Route and remove color if front tape is Blue\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither red nor blue\n```\n\n**Yellow/Green Puller:**\n\n```manufactoria\nPULLER_YG <node_id>:\n [Y] <next_node_id> # Route and remove color if front tape is Yellow\n [G] <next_node_id> # Route and remove color if front tape is Green\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither yellow nor green\n```\n\n**Note**: Unspecified branches default to `NONE`, which rejects the robot.\n\n#### 2. Painter Nodes\n\nPainters add colored tape to the end of the robot's sequence and continue to the next node.\n\n```manufactoria\nPAINTER_RED <node_id>:\n NEXT <next_node_id>\n\nPAINTER_BLUE <node_id>:\n NEXT <next_node_id>\n\nPAINTER_YELLOW <node_id>:\n NEXT <next_node_id>\n\nPAINTER_GREEN <node_id>:\n NEXT <next_node_id>\n```\n\n## Syntax Rules\n\n1. **Node IDs**: Must be unique identifiers (alphanumeric characters and underscores only)\n2. **Comments**: Lines starting with `#` are comments (single-line only)\n3. **Indentation**: Use consistent spaces or tabs for route definitions\n4. **Case Sensitivity**: Colors must be uppercase (R, B, Y, G)\n5. **Termination**: \n - Robots routed to `NONE` are rejected\n - Robots routed to the END node are accepted if they meet the puzzle criteria, otherwise rejected\n6. **Code Blocks**: Final factory code should be wrapped in triple backticks with ``` markers\n\n## Example\n\nHere's a simple example that accepts robots with exactly one red tape (ending tape should be empty):\n\n```manufactoria\nSTART start:\n NEXT entry\n\nPULLER_RB entry:\n [R] end\n\nEND end\n```\n\n# Task \nYour task is to design a factory with code with following functionality:\n\nReplace patterns RR with B, then put 'RR' at the beginning of the tape. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": true,
"description": "Input '' β mutated: '' β output: 'RR'",
"expected_accepted": true,
"expected_output": "RR",
"input": ""
},
{
"check_output": true,
"description": "Input 'R' β mutated: 'R' β output: 'RRR'",
"expected_accepted": true,
"expected_output": "RRR",
"input": "R"
},
{
"check_output": true,
"description": "Input 'RB' β mutated: 'RB' β output: 'RRRB'",
"expected_accepted": true,
"expected_output": "RRRB",
"input": "RB"
},
{
"check_output": true,
"description": "Input 'BBR' β mutated: 'BBR' β output: 'RRBBR'",
"expected_accepted": true,
"expected_output": "RRBBR",
"input": "BBR"
},
{
"check_output": true,
"description": "Input 'RBR' β mutated: 'RBR' β output: 'RRRBR'",
"expected_accepted": true,
"expected_output": "RRRBR",
"input": "RBR"
},
{
"check_output": true,
"description": "Input 'RRB' β mutated: 'BB' β output: 'RRBB'",
"expected_accepted": true,
"expected_output": "RRBB",
"input": "RRB"
},
{
"check_output": true,
"description": "Input 'RR' β mutated: 'B' β output: 'RRB'",
"expected_accepted": true,
"expected_output": "RRB",
"input": "RR"
},
{
"check_output": true,
"description": "Input 'BR' β mutated: 'BR' β output: 'RRBR'",
"expected_accepted": true,
"expected_output": "RRBR",
"input": "BR"
},
{
"check_output": true,
"description": "Input 'BRB' β mutated: 'BRB' β output: 'RRBRB'",
"expected_accepted": true,
"expected_output": "RRBRB",
"input": "BRB"
},
{
"check_output": true,
"description": "Input 'BB' β mutated: 'BB' β output: 'RRBB'",
"expected_accepted": true,
"expected_output": "RRBB",
"input": "BB"
},
{
"check_output": true,
"description": "Input 'B' β mutated: 'B' β output: 'RRB'",
"expected_accepted": true,
"expected_output": "RRB",
"input": "B"
},
{
"check_output": true,
"description": "Input 'BRRB' β mutated: 'BBB' β output: 'RRBBB'",
"expected_accepted": true,
"expected_output": "RRBBB",
"input": "BRRB"
},
{
"check_output": true,
"description": "Input 'BBB' β mutated: 'BBB' β output: 'RRBBB'",
"expected_accepted": true,
"expected_output": "RRBBB",
"input": "BBB"
},
{
"check_output": true,
"description": "Input 'RRR' β mutated: 'BR' β output: 'RRBR'",
"expected_accepted": true,
"expected_output": "RRBR",
"input": "RRR"
},
{
"check_output": true,
"description": "Input 'BRBR' β mutated: 'BRBR' β output: 'RRBRBR'",
"expected_accepted": true,
"expected_output": "RRBRBR",
"input": "BRBR"
},
{
"check_output": true,
"description": "Input 'RBRB' β mutated: 'RBRB' β output: 'RRRBRB'",
"expected_accepted": true,
"expected_output": "RRRBRB",
"input": "RBRB"
},
{
"check_output": true,
"description": "Input 'RBRBBRBB' β mutated: 'RBRBBRBB' β output: 'RRRBRBBRBB'",
"expected_accepted": true,
"expected_output": "RRRBRBBRBB",
"input": "RBRBBRBB"
},
{
"check_output": true,
"description": "Input 'RBBBRRRRBRRR' β mutated: 'RBBBBBBBR' β output: 'RRRBBBBBBBR'",
"expected_accepted": true,
"expected_output": "RRRBBBBBBBR",
"input": "RBBBRRRRBRRR"
}
] |
manufactoria
|
hard
|
dc8a5f1c-7639-4b67-be4b-d055b13dc791
|
prepend_sequence
|
Prepend RR after Replace patterns RR with B
|
[
{
"content": "# Manufactoria Solution DSL\n\nA Domain Specific Language for describing Manufactoria puzzle solutions in text format.\n\n## Overview\n\nManufactoria is a puzzle game where you build automated factories to sort robots based on their colored tape patterns. Robots enter your factory carrying sequences of colored tape, and you must route them to the correct destinations based on the given criteria.\n\n## Game Mechanics\n\n### Robots and Tape\n- **Robots**: Each robot carries a sequence of colored tapes\n- **Tape Colors**: Primary colors are Blue (B) and Red (R), with additional Yellow (Y) and Green (G) for advanced puzzles\n- **Tape Representation**: Sequences are represented as strings (e.g., `RBRR`, `BBR`, or empty string `\"\"`)\n\n### Operations\n- **Pull**: Remove tape from the front of the robot's sequence\n- **Paint**: Add colored tape to the end of the robot's sequence\n- **Route**: Direct robots through the factory based on their current tape state\n\n### Objective (output check)\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node and meets the puzzle's acceptance criteria\n- **Rejected**: Robot is routed to the NONE node, or caught in an infinite loop, or robot reaches the END node but fails to meet the puzzle's acceptance criteria \n\n## DSL Syntax\n\n### Program Structure\n\nEvery solution must start with a `START` directive and end with an `END` directive, wrapped in ```manufactoria ...```:\n\n```manufactoria\nSTART start:\n NEXT <next_node_id>\n\n# Factory logic goes here\n\nEND end\n```\n\n### Node Types\n\n#### 1. Puller Nodes\n\nPullers remove specific colors from the front of the robot's tape sequence and route based on the current front color.\n\n**Red/Blue Puller:**\n\n```manufactoria\nPULLER_RB <node_id>:\n [R] <next_node_id> # Route and remove color if front tape is Red\n [B] <next_node_id> # Route and remove color if front tape is Blue\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither red nor blue\n```\n\n**Yellow/Green Puller:**\n\n```manufactoria\nPULLER_YG <node_id>:\n [Y] <next_node_id> # Route and remove color if front tape is Yellow\n [G] <next_node_id> # Route and remove color if front tape is Green\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither yellow nor green\n```\n\n**Note**: Unspecified branches default to `NONE`, which rejects the robot.\n\n#### 2. Painter Nodes\n\nPainters add colored tape to the end of the robot's sequence and continue to the next node.\n\n```manufactoria\nPAINTER_RED <node_id>:\n NEXT <next_node_id>\n\nPAINTER_BLUE <node_id>:\n NEXT <next_node_id>\n\nPAINTER_YELLOW <node_id>:\n NEXT <next_node_id>\n\nPAINTER_GREEN <node_id>:\n NEXT <next_node_id>\n```\n\n## Syntax Rules\n\n1. **Node IDs**: Must be unique identifiers (alphanumeric characters and underscores only)\n2. **Comments**: Lines starting with `#` are comments (single-line only)\n3. **Indentation**: Use consistent spaces or tabs for route definitions\n4. **Case Sensitivity**: Colors must be uppercase (R, B, Y, G)\n5. **Termination**: \n - Robots routed to `NONE` are rejected\n - Robots routed to the END node are accepted if they meet the puzzle criteria, otherwise rejected\n6. **Code Blocks**: Final factory code should be wrapped in triple backticks with ``` markers\n\n## Example\n\nHere's a simple example that accepts robots with exactly one red tape (ending tape should be empty):\n\n```manufactoria\nSTART start:\n NEXT entry\n\nPULLER_RB entry:\n [R] end\n\nEND end\n```\n\n# Task \nYour task is to design a factory with code with following functionality:\n\nReplace patterns RB with BB, then put 'BBR' at the beginning of the tape. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": true,
"description": "Input '' β mutated: '' β output: 'BBR'",
"expected_accepted": true,
"expected_output": "BBR",
"input": ""
},
{
"check_output": true,
"description": "Input 'R' β mutated: 'R' β output: 'BBRR'",
"expected_accepted": true,
"expected_output": "BBRR",
"input": "R"
},
{
"check_output": true,
"description": "Input 'RB' β mutated: 'BB' β output: 'BBRBB'",
"expected_accepted": true,
"expected_output": "BBRBB",
"input": "RB"
},
{
"check_output": true,
"description": "Input 'BBR' β mutated: 'BBR' β output: 'BBRBBR'",
"expected_accepted": true,
"expected_output": "BBRBBR",
"input": "BBR"
},
{
"check_output": true,
"description": "Input 'RBR' β mutated: 'BBR' β output: 'BBRBBR'",
"expected_accepted": true,
"expected_output": "BBRBBR",
"input": "RBR"
},
{
"check_output": true,
"description": "Input 'RRB' β mutated: 'RBB' β output: 'BBRRBB'",
"expected_accepted": true,
"expected_output": "BBRRBB",
"input": "RRB"
},
{
"check_output": true,
"description": "Input 'BRB' β mutated: 'BBB' β output: 'BBRBBB'",
"expected_accepted": true,
"expected_output": "BBRBBB",
"input": "BRB"
},
{
"check_output": true,
"description": "Input 'BR' β mutated: 'BR' β output: 'BBRBR'",
"expected_accepted": true,
"expected_output": "BBRBR",
"input": "BR"
},
{
"check_output": true,
"description": "Input 'BB' β mutated: 'BB' β output: 'BBRBB'",
"expected_accepted": true,
"expected_output": "BBRBB",
"input": "BB"
},
{
"check_output": true,
"description": "Input 'B' β mutated: 'B' β output: 'BBRB'",
"expected_accepted": true,
"expected_output": "BBRB",
"input": "B"
},
{
"check_output": true,
"description": "Input 'RR' β mutated: 'RR' β output: 'BBRRR'",
"expected_accepted": true,
"expected_output": "BBRRR",
"input": "RR"
},
{
"check_output": true,
"description": "Input 'RBBB' β mutated: 'BBBB' β output: 'BBRBBBB'",
"expected_accepted": true,
"expected_output": "BBRBBBB",
"input": "RBBB"
},
{
"check_output": true,
"description": "Input 'BBB' β mutated: 'BBB' β output: 'BBRBBB'",
"expected_accepted": true,
"expected_output": "BBRBBB",
"input": "BBB"
},
{
"check_output": true,
"description": "Input 'RRR' β mutated: 'RRR' β output: 'BBRRRR'",
"expected_accepted": true,
"expected_output": "BBRRRR",
"input": "RRR"
},
{
"check_output": true,
"description": "Input 'BRBR' β mutated: 'BBBR' β output: 'BBRBBBR'",
"expected_accepted": true,
"expected_output": "BBRBBBR",
"input": "BRBR"
},
{
"check_output": true,
"description": "Input 'RBRB' β mutated: 'BBBB' β output: 'BBRBBBB'",
"expected_accepted": true,
"expected_output": "BBRBBBB",
"input": "RBRB"
},
{
"check_output": true,
"description": "Input 'RBRBRRRB' β mutated: 'BBBBRRBB' β output: 'BBRBBBBRRBB'",
"expected_accepted": true,
"expected_output": "BBRBBBBRRBB",
"input": "RBRBRRRB"
},
{
"check_output": true,
"description": "Input 'RRBRRBRRRBRR' β mutated: 'RBBRBBRRBBRR' β output: 'BBRRBBRBBRRBBRR'",
"expected_accepted": true,
"expected_output": "BBRRBBRBBRRBBRR",
"input": "RRBRRBRRRBRR"
}
] |
manufactoria
|
hard
|
a9ce6b5c-70e5-4ef9-b669-7a62dbeafe74
|
prepend_sequence
|
Prepend BBR after Replace patterns RB with BB
|
[
{
"content": "# Manufactoria Solution DSL\n\nA Domain Specific Language for describing Manufactoria puzzle solutions in text format.\n\n## Overview\n\nManufactoria is a puzzle game where you build automated factories to sort robots based on their colored tape patterns. Robots enter your factory carrying sequences of colored tape, and you must route them to the correct destinations based on the given criteria.\n\n## Game Mechanics\n\n### Robots and Tape\n- **Robots**: Each robot carries a sequence of colored tapes\n- **Tape Colors**: Primary colors are Blue (B) and Red (R), with additional Yellow (Y) and Green (G) for advanced puzzles\n- **Tape Representation**: Sequences are represented as strings (e.g., `RBRR`, `BBR`, or empty string `\"\"`)\n\n### Operations\n- **Pull**: Remove tape from the front of the robot's sequence\n- **Paint**: Add colored tape to the end of the robot's sequence\n- **Route**: Direct robots through the factory based on their current tape state\n\n### Objective (output check)\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node and meets the puzzle's acceptance criteria\n- **Rejected**: Robot is routed to the NONE node, or caught in an infinite loop, or robot reaches the END node but fails to meet the puzzle's acceptance criteria \n\n## DSL Syntax\n\n### Program Structure\n\nEvery solution must start with a `START` directive and end with an `END` directive, wrapped in ```manufactoria ...```:\n\n```manufactoria\nSTART start:\n NEXT <next_node_id>\n\n# Factory logic goes here\n\nEND end\n```\n\n### Node Types\n\n#### 1. Puller Nodes\n\nPullers remove specific colors from the front of the robot's tape sequence and route based on the current front color.\n\n**Red/Blue Puller:**\n\n```manufactoria\nPULLER_RB <node_id>:\n [R] <next_node_id> # Route and remove color if front tape is Red\n [B] <next_node_id> # Route and remove color if front tape is Blue\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither red nor blue\n```\n\n**Yellow/Green Puller:**\n\n```manufactoria\nPULLER_YG <node_id>:\n [Y] <next_node_id> # Route and remove color if front tape is Yellow\n [G] <next_node_id> # Route and remove color if front tape is Green\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither yellow nor green\n```\n\n**Note**: Unspecified branches default to `NONE`, which rejects the robot.\n\n#### 2. Painter Nodes\n\nPainters add colored tape to the end of the robot's sequence and continue to the next node.\n\n```manufactoria\nPAINTER_RED <node_id>:\n NEXT <next_node_id>\n\nPAINTER_BLUE <node_id>:\n NEXT <next_node_id>\n\nPAINTER_YELLOW <node_id>:\n NEXT <next_node_id>\n\nPAINTER_GREEN <node_id>:\n NEXT <next_node_id>\n```\n\n## Syntax Rules\n\n1. **Node IDs**: Must be unique identifiers (alphanumeric characters and underscores only)\n2. **Comments**: Lines starting with `#` are comments (single-line only)\n3. **Indentation**: Use consistent spaces or tabs for route definitions\n4. **Case Sensitivity**: Colors must be uppercase (R, B, Y, G)\n5. **Termination**: \n - Robots routed to `NONE` are rejected\n - Robots routed to the END node are accepted if they meet the puzzle criteria, otherwise rejected\n6. **Code Blocks**: Final factory code should be wrapped in triple backticks with ``` markers\n\n## Example\n\nHere's a simple example that accepts robots with exactly one red tape (ending tape should be empty):\n\n```manufactoria\nSTART start:\n NEXT entry\n\nPULLER_RB entry:\n [R] end\n\nEND end\n```\n\n# Task \nYour task is to design a factory with code with following functionality:\n\nRemove patterns RR, then put 'RBB' at the beginning of the tape. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": true,
"description": "Input '' β mutated: '' β output: 'RBB'",
"expected_accepted": true,
"expected_output": "RBB",
"input": ""
},
{
"check_output": true,
"description": "Input 'R' β mutated: 'R' β output: 'RBBR'",
"expected_accepted": true,
"expected_output": "RBBR",
"input": "R"
},
{
"check_output": true,
"description": "Input 'RB' β mutated: 'RB' β output: 'RBBRB'",
"expected_accepted": true,
"expected_output": "RBBRB",
"input": "RB"
},
{
"check_output": true,
"description": "Input 'BBR' β mutated: 'BBR' β output: 'RBBBBR'",
"expected_accepted": true,
"expected_output": "RBBBBR",
"input": "BBR"
},
{
"check_output": true,
"description": "Input 'RBR' β mutated: 'RBR' β output: 'RBBRBR'",
"expected_accepted": true,
"expected_output": "RBBRBR",
"input": "RBR"
},
{
"check_output": true,
"description": "Input 'RRB' β mutated: 'B' β output: 'RBBB'",
"expected_accepted": true,
"expected_output": "RBBB",
"input": "RRB"
},
{
"check_output": true,
"description": "Input 'RR' β mutated: '' β output: 'RBB'",
"expected_accepted": true,
"expected_output": "RBB",
"input": "RR"
},
{
"check_output": true,
"description": "Input 'BR' β mutated: 'BR' β output: 'RBBBR'",
"expected_accepted": true,
"expected_output": "RBBBR",
"input": "BR"
},
{
"check_output": true,
"description": "Input 'BRB' β mutated: 'BRB' β output: 'RBBBRB'",
"expected_accepted": true,
"expected_output": "RBBBRB",
"input": "BRB"
},
{
"check_output": true,
"description": "Input 'B' β mutated: 'B' β output: 'RBBB'",
"expected_accepted": true,
"expected_output": "RBBB",
"input": "B"
},
{
"check_output": true,
"description": "Input 'BB' β mutated: 'BB' β output: 'RBBBB'",
"expected_accepted": true,
"expected_output": "RBBBB",
"input": "BB"
},
{
"check_output": true,
"description": "Input 'BBRB' β mutated: 'BBRB' β output: 'RBBBBRB'",
"expected_accepted": true,
"expected_output": "RBBBBRB",
"input": "BBRB"
},
{
"check_output": true,
"description": "Input 'BBB' β mutated: 'BBB' β output: 'RBBBBB'",
"expected_accepted": true,
"expected_output": "RBBBBB",
"input": "BBB"
},
{
"check_output": true,
"description": "Input 'RRR' β mutated: 'R' β output: 'RBBR'",
"expected_accepted": true,
"expected_output": "RBBR",
"input": "RRR"
},
{
"check_output": true,
"description": "Input 'BRBR' β mutated: 'BRBR' β output: 'RBBBRBR'",
"expected_accepted": true,
"expected_output": "RBBBRBR",
"input": "BRBR"
},
{
"check_output": true,
"description": "Input 'RBRB' β mutated: 'RBRB' β output: 'RBBRBRB'",
"expected_accepted": true,
"expected_output": "RBBRBRB",
"input": "RBRB"
},
{
"check_output": true,
"description": "Input 'RRRBRBBB' β mutated: 'RBRBBB' β output: 'RBBRBRBBB'",
"expected_accepted": true,
"expected_output": "RBBRBRBBB",
"input": "RRRBRBBB"
},
{
"check_output": true,
"description": "Input 'BBRBRBRBRRRR' β mutated: 'BBRBRBRB' β output: 'RBBBBRBRBRB'",
"expected_accepted": true,
"expected_output": "RBBBBRBRBRB",
"input": "BBRBRBRBRRRR"
}
] |
manufactoria
|
hard
|
557df39a-1394-4e69-9da3-53c92311686e
|
prepend_sequence
|
Prepend RBB after Remove patterns RR
|
[
{
"content": "# Manufactoria Solution DSL\n\nA Domain Specific Language for describing Manufactoria puzzle solutions in text format.\n\n## Overview\n\nManufactoria is a puzzle game where you build automated factories to sort robots based on their colored tape patterns. Robots enter your factory carrying sequences of colored tape, and you must route them to the correct destinations based on the given criteria.\n\n## Game Mechanics\n\n### Robots and Tape\n- **Robots**: Each robot carries a sequence of colored tapes\n- **Tape Colors**: Primary colors are Blue (B) and Red (R), with additional Yellow (Y) and Green (G) for advanced puzzles\n- **Tape Representation**: Sequences are represented as strings (e.g., `RBRR`, `BBR`, or empty string `\"\"`)\n\n### Operations\n- **Pull**: Remove tape from the front of the robot's sequence\n- **Paint**: Add colored tape to the end of the robot's sequence\n- **Route**: Direct robots through the factory based on their current tape state\n\n### Objective (output check)\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node and meets the puzzle's acceptance criteria\n- **Rejected**: Robot is routed to the NONE node, or caught in an infinite loop, or robot reaches the END node but fails to meet the puzzle's acceptance criteria \n\n## DSL Syntax\n\n### Program Structure\n\nEvery solution must start with a `START` directive and end with an `END` directive, wrapped in ```manufactoria ...```:\n\n```manufactoria\nSTART start:\n NEXT <next_node_id>\n\n# Factory logic goes here\n\nEND end\n```\n\n### Node Types\n\n#### 1. Puller Nodes\n\nPullers remove specific colors from the front of the robot's tape sequence and route based on the current front color.\n\n**Red/Blue Puller:**\n\n```manufactoria\nPULLER_RB <node_id>:\n [R] <next_node_id> # Route and remove color if front tape is Red\n [B] <next_node_id> # Route and remove color if front tape is Blue\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither red nor blue\n```\n\n**Yellow/Green Puller:**\n\n```manufactoria\nPULLER_YG <node_id>:\n [Y] <next_node_id> # Route and remove color if front tape is Yellow\n [G] <next_node_id> # Route and remove color if front tape is Green\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither yellow nor green\n```\n\n**Note**: Unspecified branches default to `NONE`, which rejects the robot.\n\n#### 2. Painter Nodes\n\nPainters add colored tape to the end of the robot's sequence and continue to the next node.\n\n```manufactoria\nPAINTER_RED <node_id>:\n NEXT <next_node_id>\n\nPAINTER_BLUE <node_id>:\n NEXT <next_node_id>\n\nPAINTER_YELLOW <node_id>:\n NEXT <next_node_id>\n\nPAINTER_GREEN <node_id>:\n NEXT <next_node_id>\n```\n\n## Syntax Rules\n\n1. **Node IDs**: Must be unique identifiers (alphanumeric characters and underscores only)\n2. **Comments**: Lines starting with `#` are comments (single-line only)\n3. **Indentation**: Use consistent spaces or tabs for route definitions\n4. **Case Sensitivity**: Colors must be uppercase (R, B, Y, G)\n5. **Termination**: \n - Robots routed to `NONE` are rejected\n - Robots routed to the END node are accepted if they meet the puzzle criteria, otherwise rejected\n6. **Code Blocks**: Final factory code should be wrapped in triple backticks with ``` markers\n\n## Example\n\nHere's a simple example that accepts robots with exactly one red tape (ending tape should be empty):\n\n```manufactoria\nSTART start:\n NEXT entry\n\nPULLER_RB entry:\n [R] end\n\nEND end\n```\n\n# Task \nYour task is to design a factory with code with following functionality:\n\nReplace patterns BB with RB, then put 'RBB' at the beginning of the tape. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": true,
"description": "Input '' β mutated: '' β output: 'RBB'",
"expected_accepted": true,
"expected_output": "RBB",
"input": ""
},
{
"check_output": true,
"description": "Input 'R' β mutated: 'R' β output: 'RBBR'",
"expected_accepted": true,
"expected_output": "RBBR",
"input": "R"
},
{
"check_output": true,
"description": "Input 'RB' β mutated: 'RB' β output: 'RBBRB'",
"expected_accepted": true,
"expected_output": "RBBRB",
"input": "RB"
},
{
"check_output": true,
"description": "Input 'BBR' β mutated: 'RBR' β output: 'RBBRBR'",
"expected_accepted": true,
"expected_output": "RBBRBR",
"input": "BBR"
},
{
"check_output": true,
"description": "Input 'RBR' β mutated: 'RBR' β output: 'RBBRBR'",
"expected_accepted": true,
"expected_output": "RBBRBR",
"input": "RBR"
},
{
"check_output": true,
"description": "Input 'RRB' β mutated: 'RRB' β output: 'RBBRRB'",
"expected_accepted": true,
"expected_output": "RBBRRB",
"input": "RRB"
},
{
"check_output": true,
"description": "Input 'RR' β mutated: 'RR' β output: 'RBBRR'",
"expected_accepted": true,
"expected_output": "RBBRR",
"input": "RR"
},
{
"check_output": true,
"description": "Input 'BR' β mutated: 'BR' β output: 'RBBBR'",
"expected_accepted": true,
"expected_output": "RBBBR",
"input": "BR"
},
{
"check_output": true,
"description": "Input 'BRB' β mutated: 'BRB' β output: 'RBBBRB'",
"expected_accepted": true,
"expected_output": "RBBBRB",
"input": "BRB"
},
{
"check_output": true,
"description": "Input 'BB' β mutated: 'RB' β output: 'RBBRB'",
"expected_accepted": true,
"expected_output": "RBBRB",
"input": "BB"
},
{
"check_output": true,
"description": "Input 'B' β mutated: 'B' β output: 'RBBB'",
"expected_accepted": true,
"expected_output": "RBBB",
"input": "B"
},
{
"check_output": true,
"description": "Input 'RRRB' β mutated: 'RRRB' β output: 'RBBRRRB'",
"expected_accepted": true,
"expected_output": "RBBRRRB",
"input": "RRRB"
},
{
"check_output": true,
"description": "Input 'BBB' β mutated: 'RBB' β output: 'RBBRBB'",
"expected_accepted": true,
"expected_output": "RBBRBB",
"input": "BBB"
},
{
"check_output": true,
"description": "Input 'RRR' β mutated: 'RRR' β output: 'RBBRRR'",
"expected_accepted": true,
"expected_output": "RBBRRR",
"input": "RRR"
},
{
"check_output": true,
"description": "Input 'BRBR' β mutated: 'BRBR' β output: 'RBBBRBR'",
"expected_accepted": true,
"expected_output": "RBBBRBR",
"input": "BRBR"
},
{
"check_output": true,
"description": "Input 'RBRB' β mutated: 'RBRB' β output: 'RBBRBRB'",
"expected_accepted": true,
"expected_output": "RBBRBRB",
"input": "RBRB"
},
{
"check_output": true,
"description": "Input 'RBRBRBBB' β mutated: 'RBRBRRBB' β output: 'RBBRBRBRRBB'",
"expected_accepted": true,
"expected_output": "RBBRBRBRRBB",
"input": "RBRBRBBB"
},
{
"check_output": true,
"description": "Input 'BRRRBBRRBRBB' β mutated: 'BRRRRBRRBRRB' β output: 'RBBBRRRRBRRBRRB'",
"expected_accepted": true,
"expected_output": "RBBBRRRRBRRBRRB",
"input": "BRRRBBRRBRBB"
}
] |
manufactoria
|
hard
|
995e5fe2-f8f0-4dfe-a814-00399eae71c6
|
prepend_sequence
|
Prepend RBB after Replace patterns BB with RB
|
[
{
"content": "# Manufactoria Solution DSL\n\nA Domain Specific Language for describing Manufactoria puzzle solutions in text format.\n\n## Overview\n\nManufactoria is a puzzle game where you build automated factories to sort robots based on their colored tape patterns. Robots enter your factory carrying sequences of colored tape, and you must route them to the correct destinations based on the given criteria.\n\n## Game Mechanics\n\n### Robots and Tape\n- **Robots**: Each robot carries a sequence of colored tapes\n- **Tape Colors**: Primary colors are Blue (B) and Red (R), with additional Yellow (Y) and Green (G) for advanced puzzles\n- **Tape Representation**: Sequences are represented as strings (e.g., `RBRR`, `BBR`, or empty string `\"\"`)\n\n### Operations\n- **Pull**: Remove tape from the front of the robot's sequence\n- **Paint**: Add colored tape to the end of the robot's sequence\n- **Route**: Direct robots through the factory based on their current tape state\n\n### Objective (output check)\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node and meets the puzzle's acceptance criteria\n- **Rejected**: Robot is routed to the NONE node, or caught in an infinite loop, or robot reaches the END node but fails to meet the puzzle's acceptance criteria \n\n## DSL Syntax\n\n### Program Structure\n\nEvery solution must start with a `START` directive and end with an `END` directive, wrapped in ```manufactoria ...```:\n\n```manufactoria\nSTART start:\n NEXT <next_node_id>\n\n# Factory logic goes here\n\nEND end\n```\n\n### Node Types\n\n#### 1. Puller Nodes\n\nPullers remove specific colors from the front of the robot's tape sequence and route based on the current front color.\n\n**Red/Blue Puller:**\n\n```manufactoria\nPULLER_RB <node_id>:\n [R] <next_node_id> # Route and remove color if front tape is Red\n [B] <next_node_id> # Route and remove color if front tape is Blue\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither red nor blue\n```\n\n**Yellow/Green Puller:**\n\n```manufactoria\nPULLER_YG <node_id>:\n [Y] <next_node_id> # Route and remove color if front tape is Yellow\n [G] <next_node_id> # Route and remove color if front tape is Green\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither yellow nor green\n```\n\n**Note**: Unspecified branches default to `NONE`, which rejects the robot.\n\n#### 2. Painter Nodes\n\nPainters add colored tape to the end of the robot's sequence and continue to the next node.\n\n```manufactoria\nPAINTER_RED <node_id>:\n NEXT <next_node_id>\n\nPAINTER_BLUE <node_id>:\n NEXT <next_node_id>\n\nPAINTER_YELLOW <node_id>:\n NEXT <next_node_id>\n\nPAINTER_GREEN <node_id>:\n NEXT <next_node_id>\n```\n\n## Syntax Rules\n\n1. **Node IDs**: Must be unique identifiers (alphanumeric characters and underscores only)\n2. **Comments**: Lines starting with `#` are comments (single-line only)\n3. **Indentation**: Use consistent spaces or tabs for route definitions\n4. **Case Sensitivity**: Colors must be uppercase (R, B, Y, G)\n5. **Termination**: \n - Robots routed to `NONE` are rejected\n - Robots routed to the END node are accepted if they meet the puzzle criteria, otherwise rejected\n6. **Code Blocks**: Final factory code should be wrapped in triple backticks with ``` markers\n\n## Example\n\nHere's a simple example that accepts robots with exactly one red tape (ending tape should be empty):\n\n```manufactoria\nSTART start:\n NEXT entry\n\nPULLER_RB entry:\n [R] end\n\nEND end\n```\n\n# Task \nYour task is to design a factory with code with following functionality:\n\nReplace patterns BB with BR, then put 'BRR' at the beginning of the tape. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": true,
"description": "Input '' β mutated: '' β output: 'BRR'",
"expected_accepted": true,
"expected_output": "BRR",
"input": ""
},
{
"check_output": true,
"description": "Input 'R' β mutated: 'R' β output: 'BRRR'",
"expected_accepted": true,
"expected_output": "BRRR",
"input": "R"
},
{
"check_output": true,
"description": "Input 'RB' β mutated: 'RB' β output: 'BRRRB'",
"expected_accepted": true,
"expected_output": "BRRRB",
"input": "RB"
},
{
"check_output": true,
"description": "Input 'BBR' β mutated: 'BRR' β output: 'BRRBRR'",
"expected_accepted": true,
"expected_output": "BRRBRR",
"input": "BBR"
},
{
"check_output": true,
"description": "Input 'RBR' β mutated: 'RBR' β output: 'BRRRBR'",
"expected_accepted": true,
"expected_output": "BRRRBR",
"input": "RBR"
},
{
"check_output": true,
"description": "Input 'RRB' β mutated: 'RRB' β output: 'BRRRRB'",
"expected_accepted": true,
"expected_output": "BRRRRB",
"input": "RRB"
},
{
"check_output": true,
"description": "Input 'B' β mutated: 'B' β output: 'BRRB'",
"expected_accepted": true,
"expected_output": "BRRB",
"input": "B"
},
{
"check_output": true,
"description": "Input 'BRB' β mutated: 'BRB' β output: 'BRRBRB'",
"expected_accepted": true,
"expected_output": "BRRBRB",
"input": "BRB"
},
{
"check_output": true,
"description": "Input 'BR' β mutated: 'BR' β output: 'BRRBR'",
"expected_accepted": true,
"expected_output": "BRRBR",
"input": "BR"
},
{
"check_output": true,
"description": "Input 'RR' β mutated: 'RR' β output: 'BRRRR'",
"expected_accepted": true,
"expected_output": "BRRRR",
"input": "RR"
},
{
"check_output": true,
"description": "Input 'BB' β mutated: 'BR' β output: 'BRRBR'",
"expected_accepted": true,
"expected_output": "BRRBR",
"input": "BB"
},
{
"check_output": true,
"description": "Input 'RBBB' β mutated: 'RBRB' β output: 'BRRRBRB'",
"expected_accepted": true,
"expected_output": "BRRRBRB",
"input": "RBBB"
},
{
"check_output": true,
"description": "Input 'BBB' β mutated: 'BRB' β output: 'BRRBRB'",
"expected_accepted": true,
"expected_output": "BRRBRB",
"input": "BBB"
},
{
"check_output": true,
"description": "Input 'RRR' β mutated: 'RRR' β output: 'BRRRRR'",
"expected_accepted": true,
"expected_output": "BRRRRR",
"input": "RRR"
},
{
"check_output": true,
"description": "Input 'BRBR' β mutated: 'BRBR' β output: 'BRRBRBR'",
"expected_accepted": true,
"expected_output": "BRRBRBR",
"input": "BRBR"
},
{
"check_output": true,
"description": "Input 'RBRB' β mutated: 'RBRB' β output: 'BRRRBRB'",
"expected_accepted": true,
"expected_output": "BRRRBRB",
"input": "RBRB"
},
{
"check_output": true,
"description": "Input 'BBRBRRRR' β mutated: 'BRRBRRRR' β output: 'BRRBRRBRRRR'",
"expected_accepted": true,
"expected_output": "BRRBRRBRRRR",
"input": "BBRBRRRR"
},
{
"check_output": true,
"description": "Input 'BRRBRBRBBRRB' β mutated: 'BRRBRBRBRRRB' β output: 'BRRBRRBRBRBRRRB'",
"expected_accepted": true,
"expected_output": "BRRBRRBRBRBRRRB",
"input": "BRRBRBRBBRRB"
}
] |
manufactoria
|
hard
|
8ebae0f9-fa16-496f-8ee4-4604c4130907
|
prepend_sequence
|
Prepend BRR after Replace patterns BB with BR
|
[
{
"content": "# Manufactoria Solution DSL\n\nA Domain Specific Language for describing Manufactoria puzzle solutions in text format.\n\n## Overview\n\nManufactoria is a puzzle game where you build automated factories to sort robots based on their colored tape patterns. Robots enter your factory carrying sequences of colored tape, and you must route them to the correct destinations based on the given criteria.\n\n## Game Mechanics\n\n### Robots and Tape\n- **Robots**: Each robot carries a sequence of colored tapes\n- **Tape Colors**: Primary colors are Blue (B) and Red (R), with additional Yellow (Y) and Green (G) for advanced puzzles\n- **Tape Representation**: Sequences are represented as strings (e.g., `RBRR`, `BBR`, or empty string `\"\"`)\n\n### Operations\n- **Pull**: Remove tape from the front of the robot's sequence\n- **Paint**: Add colored tape to the end of the robot's sequence\n- **Route**: Direct robots through the factory based on their current tape state\n\n### Objective (output check)\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node and meets the puzzle's acceptance criteria\n- **Rejected**: Robot is routed to the NONE node, or caught in an infinite loop, or robot reaches the END node but fails to meet the puzzle's acceptance criteria \n\n## DSL Syntax\n\n### Program Structure\n\nEvery solution must start with a `START` directive and end with an `END` directive, wrapped in ```manufactoria ...```:\n\n```manufactoria\nSTART start:\n NEXT <next_node_id>\n\n# Factory logic goes here\n\nEND end\n```\n\n### Node Types\n\n#### 1. Puller Nodes\n\nPullers remove specific colors from the front of the robot's tape sequence and route based on the current front color.\n\n**Red/Blue Puller:**\n\n```manufactoria\nPULLER_RB <node_id>:\n [R] <next_node_id> # Route and remove color if front tape is Red\n [B] <next_node_id> # Route and remove color if front tape is Blue\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither red nor blue\n```\n\n**Yellow/Green Puller:**\n\n```manufactoria\nPULLER_YG <node_id>:\n [Y] <next_node_id> # Route and remove color if front tape is Yellow\n [G] <next_node_id> # Route and remove color if front tape is Green\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither yellow nor green\n```\n\n**Note**: Unspecified branches default to `NONE`, which rejects the robot.\n\n#### 2. Painter Nodes\n\nPainters add colored tape to the end of the robot's sequence and continue to the next node.\n\n```manufactoria\nPAINTER_RED <node_id>:\n NEXT <next_node_id>\n\nPAINTER_BLUE <node_id>:\n NEXT <next_node_id>\n\nPAINTER_YELLOW <node_id>:\n NEXT <next_node_id>\n\nPAINTER_GREEN <node_id>:\n NEXT <next_node_id>\n```\n\n## Syntax Rules\n\n1. **Node IDs**: Must be unique identifiers (alphanumeric characters and underscores only)\n2. **Comments**: Lines starting with `#` are comments (single-line only)\n3. **Indentation**: Use consistent spaces or tabs for route definitions\n4. **Case Sensitivity**: Colors must be uppercase (R, B, Y, G)\n5. **Termination**: \n - Robots routed to `NONE` are rejected\n - Robots routed to the END node are accepted if they meet the puzzle criteria, otherwise rejected\n6. **Code Blocks**: Final factory code should be wrapped in triple backticks with ``` markers\n\n## Example\n\nHere's a simple example that accepts robots with exactly one red tape (ending tape should be empty):\n\n```manufactoria\nSTART start:\n NEXT entry\n\nPULLER_RB entry:\n [R] end\n\nEND end\n```\n\n# Task \nYour task is to design a factory with code with following functionality:\n\nReplace patterns BR with BB, then put 'R' at the beginning of the tape. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": true,
"description": "Input '' β mutated: '' β output: 'R'",
"expected_accepted": true,
"expected_output": "R",
"input": ""
},
{
"check_output": true,
"description": "Input 'R' β mutated: 'R' β output: 'RR'",
"expected_accepted": true,
"expected_output": "RR",
"input": "R"
},
{
"check_output": true,
"description": "Input 'RB' β mutated: 'RB' β output: 'RRB'",
"expected_accepted": true,
"expected_output": "RRB",
"input": "RB"
},
{
"check_output": true,
"description": "Input 'BBR' β mutated: 'BBB' β output: 'RBBB'",
"expected_accepted": true,
"expected_output": "RBBB",
"input": "BBR"
},
{
"check_output": true,
"description": "Input 'RBR' β mutated: 'RBB' β output: 'RRBB'",
"expected_accepted": true,
"expected_output": "RRBB",
"input": "RBR"
},
{
"check_output": true,
"description": "Input 'RRB' β mutated: 'RRB' β output: 'RRRB'",
"expected_accepted": true,
"expected_output": "RRRB",
"input": "RRB"
},
{
"check_output": true,
"description": "Input 'RR' β mutated: 'RR' β output: 'RRR'",
"expected_accepted": true,
"expected_output": "RRR",
"input": "RR"
},
{
"check_output": true,
"description": "Input 'BR' β mutated: 'BB' β output: 'RBB'",
"expected_accepted": true,
"expected_output": "RBB",
"input": "BR"
},
{
"check_output": true,
"description": "Input 'BRB' β mutated: 'BBB' β output: 'RBBB'",
"expected_accepted": true,
"expected_output": "RBBB",
"input": "BRB"
},
{
"check_output": true,
"description": "Input 'BB' β mutated: 'BB' β output: 'RBB'",
"expected_accepted": true,
"expected_output": "RBB",
"input": "BB"
},
{
"check_output": true,
"description": "Input 'B' β mutated: 'B' β output: 'RB'",
"expected_accepted": true,
"expected_output": "RB",
"input": "B"
},
{
"check_output": true,
"description": "Input 'RBBB' β mutated: 'RBBB' β output: 'RRBBB'",
"expected_accepted": true,
"expected_output": "RRBBB",
"input": "RBBB"
},
{
"check_output": true,
"description": "Input 'BBB' β mutated: 'BBB' β output: 'RBBB'",
"expected_accepted": true,
"expected_output": "RBBB",
"input": "BBB"
},
{
"check_output": true,
"description": "Input 'RRR' β mutated: 'RRR' β output: 'RRRR'",
"expected_accepted": true,
"expected_output": "RRRR",
"input": "RRR"
},
{
"check_output": true,
"description": "Input 'BRBR' β mutated: 'BBBB' β output: 'RBBBB'",
"expected_accepted": true,
"expected_output": "RBBBB",
"input": "BRBR"
},
{
"check_output": true,
"description": "Input 'RBRB' β mutated: 'RBBB' β output: 'RRBBB'",
"expected_accepted": true,
"expected_output": "RRBBB",
"input": "RBRB"
},
{
"check_output": true,
"description": "Input 'RBRRRRRR' β mutated: 'RBBRRRRR' β output: 'RRBBRRRRR'",
"expected_accepted": true,
"expected_output": "RRBBRRRRR",
"input": "RBRRRRRR"
},
{
"check_output": true,
"description": "Input 'BRRBBRBBRRRR' β mutated: 'BBRBBBBBBRRR' β output: 'RBBRBBBBBBRRR'",
"expected_accepted": true,
"expected_output": "RBBRBBBBBBRRR",
"input": "BRRBBRBBRRRR"
}
] |
manufactoria
|
hard
|
4f67bc8e-3622-4341-b333-5431fa97af6e
|
prepend_sequence
|
Prepend R after Replace patterns BR with BB
|
[
{
"content": "# Manufactoria Solution DSL\n\nA Domain Specific Language for describing Manufactoria puzzle solutions in text format.\n\n## Overview\n\nManufactoria is a puzzle game where you build automated factories to sort robots based on their colored tape patterns. Robots enter your factory carrying sequences of colored tape, and you must route them to the correct destinations based on the given criteria.\n\n## Game Mechanics\n\n### Robots and Tape\n- **Robots**: Each robot carries a sequence of colored tapes\n- **Tape Colors**: Primary colors are Blue (B) and Red (R), with additional Yellow (Y) and Green (G) for advanced puzzles\n- **Tape Representation**: Sequences are represented as strings (e.g., `RBRR`, `BBR`, or empty string `\"\"`)\n\n### Operations\n- **Pull**: Remove tape from the front of the robot's sequence\n- **Paint**: Add colored tape to the end of the robot's sequence\n- **Route**: Direct robots through the factory based on their current tape state\n\n### Objective (output check)\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node and meets the puzzle's acceptance criteria\n- **Rejected**: Robot is routed to the NONE node, or caught in an infinite loop, or robot reaches the END node but fails to meet the puzzle's acceptance criteria \n\n## DSL Syntax\n\n### Program Structure\n\nEvery solution must start with a `START` directive and end with an `END` directive, wrapped in ```manufactoria ...```:\n\n```manufactoria\nSTART start:\n NEXT <next_node_id>\n\n# Factory logic goes here\n\nEND end\n```\n\n### Node Types\n\n#### 1. Puller Nodes\n\nPullers remove specific colors from the front of the robot's tape sequence and route based on the current front color.\n\n**Red/Blue Puller:**\n\n```manufactoria\nPULLER_RB <node_id>:\n [R] <next_node_id> # Route and remove color if front tape is Red\n [B] <next_node_id> # Route and remove color if front tape is Blue\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither red nor blue\n```\n\n**Yellow/Green Puller:**\n\n```manufactoria\nPULLER_YG <node_id>:\n [Y] <next_node_id> # Route and remove color if front tape is Yellow\n [G] <next_node_id> # Route and remove color if front tape is Green\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither yellow nor green\n```\n\n**Note**: Unspecified branches default to `NONE`, which rejects the robot.\n\n#### 2. Painter Nodes\n\nPainters add colored tape to the end of the robot's sequence and continue to the next node.\n\n```manufactoria\nPAINTER_RED <node_id>:\n NEXT <next_node_id>\n\nPAINTER_BLUE <node_id>:\n NEXT <next_node_id>\n\nPAINTER_YELLOW <node_id>:\n NEXT <next_node_id>\n\nPAINTER_GREEN <node_id>:\n NEXT <next_node_id>\n```\n\n## Syntax Rules\n\n1. **Node IDs**: Must be unique identifiers (alphanumeric characters and underscores only)\n2. **Comments**: Lines starting with `#` are comments (single-line only)\n3. **Indentation**: Use consistent spaces or tabs for route definitions\n4. **Case Sensitivity**: Colors must be uppercase (R, B, Y, G)\n5. **Termination**: \n - Robots routed to `NONE` are rejected\n - Robots routed to the END node are accepted if they meet the puzzle criteria, otherwise rejected\n6. **Code Blocks**: Final factory code should be wrapped in triple backticks with ``` markers\n\n## Example\n\nHere's a simple example that accepts robots with exactly one red tape (ending tape should be empty):\n\n```manufactoria\nSTART start:\n NEXT entry\n\nPULLER_RB entry:\n [R] end\n\nEND end\n```\n\n# Task \nYour task is to design a factory with code with following functionality:\n\nRemove patterns BR, then put 'BRBR' at the beginning of the tape. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": true,
"description": "Input '' β mutated: '' β output: 'BRBR'",
"expected_accepted": true,
"expected_output": "BRBR",
"input": ""
},
{
"check_output": true,
"description": "Input 'R' β mutated: 'R' β output: 'BRBRR'",
"expected_accepted": true,
"expected_output": "BRBRR",
"input": "R"
},
{
"check_output": true,
"description": "Input 'RB' β mutated: 'RB' β output: 'BRBRRB'",
"expected_accepted": true,
"expected_output": "BRBRRB",
"input": "RB"
},
{
"check_output": true,
"description": "Input 'BBR' β mutated: 'B' β output: 'BRBRB'",
"expected_accepted": true,
"expected_output": "BRBRB",
"input": "BBR"
},
{
"check_output": true,
"description": "Input 'RBR' β mutated: 'R' β output: 'BRBRR'",
"expected_accepted": true,
"expected_output": "BRBRR",
"input": "RBR"
},
{
"check_output": true,
"description": "Input 'RRB' β mutated: 'RRB' β output: 'BRBRRRB'",
"expected_accepted": true,
"expected_output": "BRBRRRB",
"input": "RRB"
},
{
"check_output": true,
"description": "Input 'B' β mutated: 'B' β output: 'BRBRB'",
"expected_accepted": true,
"expected_output": "BRBRB",
"input": "B"
},
{
"check_output": true,
"description": "Input 'RR' β mutated: 'RR' β output: 'BRBRRR'",
"expected_accepted": true,
"expected_output": "BRBRRR",
"input": "RR"
},
{
"check_output": true,
"description": "Input 'BR' β mutated: '' β output: 'BRBR'",
"expected_accepted": true,
"expected_output": "BRBR",
"input": "BR"
},
{
"check_output": true,
"description": "Input 'BRB' β mutated: 'B' β output: 'BRBRB'",
"expected_accepted": true,
"expected_output": "BRBRB",
"input": "BRB"
},
{
"check_output": true,
"description": "Input 'BB' β mutated: 'BB' β output: 'BRBRBB'",
"expected_accepted": true,
"expected_output": "BRBRBB",
"input": "BB"
},
{
"check_output": true,
"description": "Input 'BBBB' β mutated: 'BBBB' β output: 'BRBRBBBB'",
"expected_accepted": true,
"expected_output": "BRBRBBBB",
"input": "BBBB"
},
{
"check_output": true,
"description": "Input 'BBB' β mutated: 'BBB' β output: 'BRBRBBB'",
"expected_accepted": true,
"expected_output": "BRBRBBB",
"input": "BBB"
},
{
"check_output": true,
"description": "Input 'RRR' β mutated: 'RRR' β output: 'BRBRRRR'",
"expected_accepted": true,
"expected_output": "BRBRRRR",
"input": "RRR"
},
{
"check_output": true,
"description": "Input 'BRBR' β mutated: '' β output: 'BRBR'",
"expected_accepted": true,
"expected_output": "BRBR",
"input": "BRBR"
},
{
"check_output": true,
"description": "Input 'RBRB' β mutated: 'RB' β output: 'BRBRRB'",
"expected_accepted": true,
"expected_output": "BRBRRB",
"input": "RBRB"
},
{
"check_output": true,
"description": "Input 'BBBBRRRB' β mutated: 'BBBRRB' β output: 'BRBRBBBRRB'",
"expected_accepted": true,
"expected_output": "BRBRBBBRRB",
"input": "BBBBRRRB"
},
{
"check_output": true,
"description": "Input 'BBRBBBRRRBBB' β mutated: 'BBBRRBBB' β output: 'BRBRBBBRRBBB'",
"expected_accepted": true,
"expected_output": "BRBRBBBRRBBB",
"input": "BBRBBBRRRBBB"
}
] |
manufactoria
|
hard
|
f804d699-bdb0-42b4-8d98-d443064fccb0
|
prepend_sequence
|
Prepend BRBR after Remove patterns BR
|
[
{
"content": "# Manufactoria Solution DSL\n\nA Domain Specific Language for describing Manufactoria puzzle solutions in text format.\n\n## Overview\n\nManufactoria is a puzzle game where you build automated factories to sort robots based on their colored tape patterns. Robots enter your factory carrying sequences of colored tape, and you must route them to the correct destinations based on the given criteria.\n\n## Game Mechanics\n\n### Robots and Tape\n- **Robots**: Each robot carries a sequence of colored tapes\n- **Tape Colors**: Primary colors are Blue (B) and Red (R), with additional Yellow (Y) and Green (G) for advanced puzzles\n- **Tape Representation**: Sequences are represented as strings (e.g., `RBRR`, `BBR`, or empty string `\"\"`)\n\n### Operations\n- **Pull**: Remove tape from the front of the robot's sequence\n- **Paint**: Add colored tape to the end of the robot's sequence\n- **Route**: Direct robots through the factory based on their current tape state\n\n### Objective (output check)\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node and meets the puzzle's acceptance criteria\n- **Rejected**: Robot is routed to the NONE node, or caught in an infinite loop, or robot reaches the END node but fails to meet the puzzle's acceptance criteria \n\n## DSL Syntax\n\n### Program Structure\n\nEvery solution must start with a `START` directive and end with an `END` directive, wrapped in ```manufactoria ...```:\n\n```manufactoria\nSTART start:\n NEXT <next_node_id>\n\n# Factory logic goes here\n\nEND end\n```\n\n### Node Types\n\n#### 1. Puller Nodes\n\nPullers remove specific colors from the front of the robot's tape sequence and route based on the current front color.\n\n**Red/Blue Puller:**\n\n```manufactoria\nPULLER_RB <node_id>:\n [R] <next_node_id> # Route and remove color if front tape is Red\n [B] <next_node_id> # Route and remove color if front tape is Blue\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither red nor blue\n```\n\n**Yellow/Green Puller:**\n\n```manufactoria\nPULLER_YG <node_id>:\n [Y] <next_node_id> # Route and remove color if front tape is Yellow\n [G] <next_node_id> # Route and remove color if front tape is Green\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither yellow nor green\n```\n\n**Note**: Unspecified branches default to `NONE`, which rejects the robot.\n\n#### 2. Painter Nodes\n\nPainters add colored tape to the end of the robot's sequence and continue to the next node.\n\n```manufactoria\nPAINTER_RED <node_id>:\n NEXT <next_node_id>\n\nPAINTER_BLUE <node_id>:\n NEXT <next_node_id>\n\nPAINTER_YELLOW <node_id>:\n NEXT <next_node_id>\n\nPAINTER_GREEN <node_id>:\n NEXT <next_node_id>\n```\n\n## Syntax Rules\n\n1. **Node IDs**: Must be unique identifiers (alphanumeric characters and underscores only)\n2. **Comments**: Lines starting with `#` are comments (single-line only)\n3. **Indentation**: Use consistent spaces or tabs for route definitions\n4. **Case Sensitivity**: Colors must be uppercase (R, B, Y, G)\n5. **Termination**: \n - Robots routed to `NONE` are rejected\n - Robots routed to the END node are accepted if they meet the puzzle criteria, otherwise rejected\n6. **Code Blocks**: Final factory code should be wrapped in triple backticks with ``` markers\n\n## Example\n\nHere's a simple example that accepts robots with exactly one red tape (ending tape should be empty):\n\n```manufactoria\nSTART start:\n NEXT entry\n\nPULLER_RB entry:\n [R] end\n\nEND end\n```\n\n# Task \nYour task is to design a factory with code with following functionality:\n\nReplace patterns BR with RB, then put 'RBRB' at the beginning of the tape. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": true,
"description": "Input '' β mutated: '' β output: 'RBRB'",
"expected_accepted": true,
"expected_output": "RBRB",
"input": ""
},
{
"check_output": true,
"description": "Input 'R' β mutated: 'R' β output: 'RBRBR'",
"expected_accepted": true,
"expected_output": "RBRBR",
"input": "R"
},
{
"check_output": true,
"description": "Input 'RB' β mutated: 'RB' β output: 'RBRBRB'",
"expected_accepted": true,
"expected_output": "RBRBRB",
"input": "RB"
},
{
"check_output": true,
"description": "Input 'BBR' β mutated: 'BRB' β output: 'RBRBBRB'",
"expected_accepted": true,
"expected_output": "RBRBBRB",
"input": "BBR"
},
{
"check_output": true,
"description": "Input 'RBR' β mutated: 'RRB' β output: 'RBRBRRB'",
"expected_accepted": true,
"expected_output": "RBRBRRB",
"input": "RBR"
},
{
"check_output": true,
"description": "Input 'RRB' β mutated: 'RRB' β output: 'RBRBRRB'",
"expected_accepted": true,
"expected_output": "RBRBRRB",
"input": "RRB"
},
{
"check_output": true,
"description": "Input 'B' β mutated: 'B' β output: 'RBRBB'",
"expected_accepted": true,
"expected_output": "RBRBB",
"input": "B"
},
{
"check_output": true,
"description": "Input 'RR' β mutated: 'RR' β output: 'RBRBRR'",
"expected_accepted": true,
"expected_output": "RBRBRR",
"input": "RR"
},
{
"check_output": true,
"description": "Input 'BR' β mutated: 'RB' β output: 'RBRBRB'",
"expected_accepted": true,
"expected_output": "RBRBRB",
"input": "BR"
},
{
"check_output": true,
"description": "Input 'BRB' β mutated: 'RBB' β output: 'RBRBRBB'",
"expected_accepted": true,
"expected_output": "RBRBRBB",
"input": "BRB"
},
{
"check_output": true,
"description": "Input 'BB' β mutated: 'BB' β output: 'RBRBBB'",
"expected_accepted": true,
"expected_output": "RBRBBB",
"input": "BB"
},
{
"check_output": true,
"description": "Input 'RRRR' β mutated: 'RRRR' β output: 'RBRBRRRR'",
"expected_accepted": true,
"expected_output": "RBRBRRRR",
"input": "RRRR"
},
{
"check_output": true,
"description": "Input 'BBB' β mutated: 'BBB' β output: 'RBRBBBB'",
"expected_accepted": true,
"expected_output": "RBRBBBB",
"input": "BBB"
},
{
"check_output": true,
"description": "Input 'RRR' β mutated: 'RRR' β output: 'RBRBRRR'",
"expected_accepted": true,
"expected_output": "RBRBRRR",
"input": "RRR"
},
{
"check_output": true,
"description": "Input 'BRBR' β mutated: 'RBRB' β output: 'RBRBRBRB'",
"expected_accepted": true,
"expected_output": "RBRBRBRB",
"input": "BRBR"
},
{
"check_output": true,
"description": "Input 'RBRB' β mutated: 'RRBB' β output: 'RBRBRRBB'",
"expected_accepted": true,
"expected_output": "RBRBRRBB",
"input": "RBRB"
},
{
"check_output": true,
"description": "Input 'BBBBRRRR' β mutated: 'BBBRBRRR' β output: 'RBRBBBBRBRRR'",
"expected_accepted": true,
"expected_output": "RBRBBBBRBRRR",
"input": "BBBBRRRR"
},
{
"check_output": true,
"description": "Input 'RRBBBBBRBRBB' β mutated: 'RRBBBBRBRBBB' β output: 'RBRBRRBBBBRBRBBB'",
"expected_accepted": true,
"expected_output": "RBRBRRBBBBRBRBBB",
"input": "RRBBBBBRBRBB"
}
] |
manufactoria
|
hard
|
6f4147ed-ce1d-495a-b708-b1e8a1789bc2
|
prepend_sequence
|
Prepend RBRB after Replace patterns BR with RB
|
[
{
"content": "# Manufactoria Solution DSL\n\nA Domain Specific Language for describing Manufactoria puzzle solutions in text format.\n\n## Overview\n\nManufactoria is a puzzle game where you build automated factories to sort robots based on their colored tape patterns. Robots enter your factory carrying sequences of colored tape, and you must route them to the correct destinations based on the given criteria.\n\n## Game Mechanics\n\n### Robots and Tape\n- **Robots**: Each robot carries a sequence of colored tapes\n- **Tape Colors**: Primary colors are Blue (B) and Red (R), with additional Yellow (Y) and Green (G) for advanced puzzles\n- **Tape Representation**: Sequences are represented as strings (e.g., `RBRR`, `BBR`, or empty string `\"\"`)\n\n### Operations\n- **Pull**: Remove tape from the front of the robot's sequence\n- **Paint**: Add colored tape to the end of the robot's sequence\n- **Route**: Direct robots through the factory based on their current tape state\n\n### Objective (output check)\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node and meets the puzzle's acceptance criteria\n- **Rejected**: Robot is routed to the NONE node, or caught in an infinite loop, or robot reaches the END node but fails to meet the puzzle's acceptance criteria \n\n## DSL Syntax\n\n### Program Structure\n\nEvery solution must start with a `START` directive and end with an `END` directive, wrapped in ```manufactoria ...```:\n\n```manufactoria\nSTART start:\n NEXT <next_node_id>\n\n# Factory logic goes here\n\nEND end\n```\n\n### Node Types\n\n#### 1. Puller Nodes\n\nPullers remove specific colors from the front of the robot's tape sequence and route based on the current front color.\n\n**Red/Blue Puller:**\n\n```manufactoria\nPULLER_RB <node_id>:\n [R] <next_node_id> # Route and remove color if front tape is Red\n [B] <next_node_id> # Route and remove color if front tape is Blue\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither red nor blue\n```\n\n**Yellow/Green Puller:**\n\n```manufactoria\nPULLER_YG <node_id>:\n [Y] <next_node_id> # Route and remove color if front tape is Yellow\n [G] <next_node_id> # Route and remove color if front tape is Green\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither yellow nor green\n```\n\n**Note**: Unspecified branches default to `NONE`, which rejects the robot.\n\n#### 2. Painter Nodes\n\nPainters add colored tape to the end of the robot's sequence and continue to the next node.\n\n```manufactoria\nPAINTER_RED <node_id>:\n NEXT <next_node_id>\n\nPAINTER_BLUE <node_id>:\n NEXT <next_node_id>\n\nPAINTER_YELLOW <node_id>:\n NEXT <next_node_id>\n\nPAINTER_GREEN <node_id>:\n NEXT <next_node_id>\n```\n\n## Syntax Rules\n\n1. **Node IDs**: Must be unique identifiers (alphanumeric characters and underscores only)\n2. **Comments**: Lines starting with `#` are comments (single-line only)\n3. **Indentation**: Use consistent spaces or tabs for route definitions\n4. **Case Sensitivity**: Colors must be uppercase (R, B, Y, G)\n5. **Termination**: \n - Robots routed to `NONE` are rejected\n - Robots routed to the END node are accepted if they meet the puzzle criteria, otherwise rejected\n6. **Code Blocks**: Final factory code should be wrapped in triple backticks with ``` markers\n\n## Example\n\nHere's a simple example that accepts robots with exactly one red tape (ending tape should be empty):\n\n```manufactoria\nSTART start:\n NEXT entry\n\nPULLER_RB entry:\n [R] end\n\nEND end\n```\n\n# Task \nYour task is to design a factory with code with following functionality:\n\nReplace patterns RR with R, then put 'BRBR' at the beginning of the tape. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": true,
"description": "Input '' β mutated: '' β output: 'BRBR'",
"expected_accepted": true,
"expected_output": "BRBR",
"input": ""
},
{
"check_output": true,
"description": "Input 'R' β mutated: 'R' β output: 'BRBRR'",
"expected_accepted": true,
"expected_output": "BRBRR",
"input": "R"
},
{
"check_output": true,
"description": "Input 'RB' β mutated: 'RB' β output: 'BRBRRB'",
"expected_accepted": true,
"expected_output": "BRBRRB",
"input": "RB"
},
{
"check_output": true,
"description": "Input 'BBR' β mutated: 'BBR' β output: 'BRBRBBR'",
"expected_accepted": true,
"expected_output": "BRBRBBR",
"input": "BBR"
},
{
"check_output": true,
"description": "Input 'RBR' β mutated: 'RBR' β output: 'BRBRRBR'",
"expected_accepted": true,
"expected_output": "BRBRRBR",
"input": "RBR"
},
{
"check_output": true,
"description": "Input 'RRB' β mutated: 'RB' β output: 'BRBRRB'",
"expected_accepted": true,
"expected_output": "BRBRRB",
"input": "RRB"
},
{
"check_output": true,
"description": "Input 'RR' β mutated: 'R' β output: 'BRBRR'",
"expected_accepted": true,
"expected_output": "BRBRR",
"input": "RR"
},
{
"check_output": true,
"description": "Input 'BR' β mutated: 'BR' β output: 'BRBRBR'",
"expected_accepted": true,
"expected_output": "BRBRBR",
"input": "BR"
},
{
"check_output": true,
"description": "Input 'BRB' β mutated: 'BRB' β output: 'BRBRBRB'",
"expected_accepted": true,
"expected_output": "BRBRBRB",
"input": "BRB"
},
{
"check_output": true,
"description": "Input 'B' β mutated: 'B' β output: 'BRBRB'",
"expected_accepted": true,
"expected_output": "BRBRB",
"input": "B"
},
{
"check_output": true,
"description": "Input 'BB' β mutated: 'BB' β output: 'BRBRBB'",
"expected_accepted": true,
"expected_output": "BRBRBB",
"input": "BB"
},
{
"check_output": true,
"description": "Input 'RBRB' β mutated: 'RBRB' β output: 'BRBRRBRB'",
"expected_accepted": true,
"expected_output": "BRBRRBRB",
"input": "RBRB"
},
{
"check_output": true,
"description": "Input 'BBB' β mutated: 'BBB' β output: 'BRBRBBB'",
"expected_accepted": true,
"expected_output": "BRBRBBB",
"input": "BBB"
},
{
"check_output": true,
"description": "Input 'RRR' β mutated: 'RR' β output: 'BRBRRR'",
"expected_accepted": true,
"expected_output": "BRBRRR",
"input": "RRR"
},
{
"check_output": true,
"description": "Input 'BRBR' β mutated: 'BRBR' β output: 'BRBRBRBR'",
"expected_accepted": true,
"expected_output": "BRBRBRBR",
"input": "BRBR"
},
{
"check_output": true,
"description": "Input 'BRRBRBBB' β mutated: 'BRBRBBB' β output: 'BRBRBRBRBBB'",
"expected_accepted": true,
"expected_output": "BRBRBRBRBBB",
"input": "BRRBRBBB"
},
{
"check_output": true,
"description": "Input 'BRBBRRBRBRRB' β mutated: 'BRBBRBRBRB' β output: 'BRBRBRBBRBRBRB'",
"expected_accepted": true,
"expected_output": "BRBRBRBBRBRBRB",
"input": "BRBBRRBRBRRB"
}
] |
manufactoria
|
hard
|
6255f7c5-030d-435e-92df-696a478fb55d
|
prepend_sequence
|
Prepend BRBR after Replace patterns RR with R
|
[
{
"content": "# Manufactoria Solution DSL\n\nA Domain Specific Language for describing Manufactoria puzzle solutions in text format.\n\n## Overview\n\nManufactoria is a puzzle game where you build automated factories to sort robots based on their colored tape patterns. Robots enter your factory carrying sequences of colored tape, and you must route them to the correct destinations based on the given criteria.\n\n## Game Mechanics\n\n### Robots and Tape\n- **Robots**: Each robot carries a sequence of colored tapes\n- **Tape Colors**: Primary colors are Blue (B) and Red (R), with additional Yellow (Y) and Green (G) for advanced puzzles\n- **Tape Representation**: Sequences are represented as strings (e.g., `RBRR`, `BBR`, or empty string `\"\"`)\n\n### Operations\n- **Pull**: Remove tape from the front of the robot's sequence\n- **Paint**: Add colored tape to the end of the robot's sequence\n- **Route**: Direct robots through the factory based on their current tape state\n\n### Objective (output check)\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node and meets the puzzle's acceptance criteria\n- **Rejected**: Robot is routed to the NONE node, or caught in an infinite loop, or robot reaches the END node but fails to meet the puzzle's acceptance criteria \n\n## DSL Syntax\n\n### Program Structure\n\nEvery solution must start with a `START` directive and end with an `END` directive, wrapped in ```manufactoria ...```:\n\n```manufactoria\nSTART start:\n NEXT <next_node_id>\n\n# Factory logic goes here\n\nEND end\n```\n\n### Node Types\n\n#### 1. Puller Nodes\n\nPullers remove specific colors from the front of the robot's tape sequence and route based on the current front color.\n\n**Red/Blue Puller:**\n\n```manufactoria\nPULLER_RB <node_id>:\n [R] <next_node_id> # Route and remove color if front tape is Red\n [B] <next_node_id> # Route and remove color if front tape is Blue\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither red nor blue\n```\n\n**Yellow/Green Puller:**\n\n```manufactoria\nPULLER_YG <node_id>:\n [Y] <next_node_id> # Route and remove color if front tape is Yellow\n [G] <next_node_id> # Route and remove color if front tape is Green\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither yellow nor green\n```\n\n**Note**: Unspecified branches default to `NONE`, which rejects the robot.\n\n#### 2. Painter Nodes\n\nPainters add colored tape to the end of the robot's sequence and continue to the next node.\n\n```manufactoria\nPAINTER_RED <node_id>:\n NEXT <next_node_id>\n\nPAINTER_BLUE <node_id>:\n NEXT <next_node_id>\n\nPAINTER_YELLOW <node_id>:\n NEXT <next_node_id>\n\nPAINTER_GREEN <node_id>:\n NEXT <next_node_id>\n```\n\n## Syntax Rules\n\n1. **Node IDs**: Must be unique identifiers (alphanumeric characters and underscores only)\n2. **Comments**: Lines starting with `#` are comments (single-line only)\n3. **Indentation**: Use consistent spaces or tabs for route definitions\n4. **Case Sensitivity**: Colors must be uppercase (R, B, Y, G)\n5. **Termination**: \n - Robots routed to `NONE` are rejected\n - Robots routed to the END node are accepted if they meet the puzzle criteria, otherwise rejected\n6. **Code Blocks**: Final factory code should be wrapped in triple backticks with ``` markers\n\n## Example\n\nHere's a simple example that accepts robots with exactly one red tape (ending tape should be empty):\n\n```manufactoria\nSTART start:\n NEXT entry\n\nPULLER_RB entry:\n [R] end\n\nEND end\n```\n\n# Task \nYour task is to design a factory with code with following functionality:\n\nReplace patterns BB with RB, then put 'RBRB' at the beginning of the tape. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": true,
"description": "Input '' β mutated: '' β output: 'RBRB'",
"expected_accepted": true,
"expected_output": "RBRB",
"input": ""
},
{
"check_output": true,
"description": "Input 'R' β mutated: 'R' β output: 'RBRBR'",
"expected_accepted": true,
"expected_output": "RBRBR",
"input": "R"
},
{
"check_output": true,
"description": "Input 'RB' β mutated: 'RB' β output: 'RBRBRB'",
"expected_accepted": true,
"expected_output": "RBRBRB",
"input": "RB"
},
{
"check_output": true,
"description": "Input 'BBR' β mutated: 'RBR' β output: 'RBRBRBR'",
"expected_accepted": true,
"expected_output": "RBRBRBR",
"input": "BBR"
},
{
"check_output": true,
"description": "Input 'RBR' β mutated: 'RBR' β output: 'RBRBRBR'",
"expected_accepted": true,
"expected_output": "RBRBRBR",
"input": "RBR"
},
{
"check_output": true,
"description": "Input 'RRB' β mutated: 'RRB' β output: 'RBRBRRB'",
"expected_accepted": true,
"expected_output": "RBRBRRB",
"input": "RRB"
},
{
"check_output": true,
"description": "Input 'BRB' β mutated: 'BRB' β output: 'RBRBBRB'",
"expected_accepted": true,
"expected_output": "RBRBBRB",
"input": "BRB"
},
{
"check_output": true,
"description": "Input 'BR' β mutated: 'BR' β output: 'RBRBBR'",
"expected_accepted": true,
"expected_output": "RBRBBR",
"input": "BR"
},
{
"check_output": true,
"description": "Input 'B' β mutated: 'B' β output: 'RBRBB'",
"expected_accepted": true,
"expected_output": "RBRBB",
"input": "B"
},
{
"check_output": true,
"description": "Input 'RR' β mutated: 'RR' β output: 'RBRBRR'",
"expected_accepted": true,
"expected_output": "RBRBRR",
"input": "RR"
},
{
"check_output": true,
"description": "Input 'BB' β mutated: 'RB' β output: 'RBRBRB'",
"expected_accepted": true,
"expected_output": "RBRBRB",
"input": "BB"
},
{
"check_output": true,
"description": "Input 'BRBB' β mutated: 'BRRB' β output: 'RBRBBRRB'",
"expected_accepted": true,
"expected_output": "RBRBBRRB",
"input": "BRBB"
},
{
"check_output": true,
"description": "Input 'BBB' β mutated: 'RBB' β output: 'RBRBRBB'",
"expected_accepted": true,
"expected_output": "RBRBRBB",
"input": "BBB"
},
{
"check_output": true,
"description": "Input 'RRR' β mutated: 'RRR' β output: 'RBRBRRR'",
"expected_accepted": true,
"expected_output": "RBRBRRR",
"input": "RRR"
},
{
"check_output": true,
"description": "Input 'BRBR' β mutated: 'BRBR' β output: 'RBRBBRBR'",
"expected_accepted": true,
"expected_output": "RBRBBRBR",
"input": "BRBR"
},
{
"check_output": true,
"description": "Input 'RBRB' β mutated: 'RBRB' β output: 'RBRBRBRB'",
"expected_accepted": true,
"expected_output": "RBRBRBRB",
"input": "RBRB"
},
{
"check_output": true,
"description": "Input 'RBBRBRBR' β mutated: 'RRBRBRBR' β output: 'RBRBRRBRBRBR'",
"expected_accepted": true,
"expected_output": "RBRBRRBRBRBR",
"input": "RBBRBRBR"
},
{
"check_output": true,
"description": "Input 'BBBBBBBRRBBR' β mutated: 'RBRBRBBRRRBR' β output: 'RBRBRBRBRBBRRRBR'",
"expected_accepted": true,
"expected_output": "RBRBRBRBRBBRRRBR",
"input": "BBBBBBBRRBBR"
}
] |
manufactoria
|
hard
|
b3c4d577-a760-4fca-b637-a1dc64c18a58
|
prepend_sequence
|
Prepend RBRB after Replace patterns BB with RB
|
[
{
"content": "# Manufactoria Solution DSL\n\nA Domain Specific Language for describing Manufactoria puzzle solutions in text format.\n\n## Overview\n\nManufactoria is a puzzle game where you build automated factories to sort robots based on their colored tape patterns. Robots enter your factory carrying sequences of colored tape, and you must route them to the correct destinations based on the given criteria.\n\n## Game Mechanics\n\n### Robots and Tape\n- **Robots**: Each robot carries a sequence of colored tapes\n- **Tape Colors**: Primary colors are Blue (B) and Red (R), with additional Yellow (Y) and Green (G) for advanced puzzles\n- **Tape Representation**: Sequences are represented as strings (e.g., `RBRR`, `BBR`, or empty string `\"\"`)\n\n### Operations\n- **Pull**: Remove tape from the front of the robot's sequence\n- **Paint**: Add colored tape to the end of the robot's sequence\n- **Route**: Direct robots through the factory based on their current tape state\n\n### Objective (output check)\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node and meets the puzzle's acceptance criteria\n- **Rejected**: Robot is routed to the NONE node, or caught in an infinite loop, or robot reaches the END node but fails to meet the puzzle's acceptance criteria \n\n## DSL Syntax\n\n### Program Structure\n\nEvery solution must start with a `START` directive and end with an `END` directive, wrapped in ```manufactoria ...```:\n\n```manufactoria\nSTART start:\n NEXT <next_node_id>\n\n# Factory logic goes here\n\nEND end\n```\n\n### Node Types\n\n#### 1. Puller Nodes\n\nPullers remove specific colors from the front of the robot's tape sequence and route based on the current front color.\n\n**Red/Blue Puller:**\n\n```manufactoria\nPULLER_RB <node_id>:\n [R] <next_node_id> # Route and remove color if front tape is Red\n [B] <next_node_id> # Route and remove color if front tape is Blue\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither red nor blue\n```\n\n**Yellow/Green Puller:**\n\n```manufactoria\nPULLER_YG <node_id>:\n [Y] <next_node_id> # Route and remove color if front tape is Yellow\n [G] <next_node_id> # Route and remove color if front tape is Green\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither yellow nor green\n```\n\n**Note**: Unspecified branches default to `NONE`, which rejects the robot.\n\n#### 2. Painter Nodes\n\nPainters add colored tape to the end of the robot's sequence and continue to the next node.\n\n```manufactoria\nPAINTER_RED <node_id>:\n NEXT <next_node_id>\n\nPAINTER_BLUE <node_id>:\n NEXT <next_node_id>\n\nPAINTER_YELLOW <node_id>:\n NEXT <next_node_id>\n\nPAINTER_GREEN <node_id>:\n NEXT <next_node_id>\n```\n\n## Syntax Rules\n\n1. **Node IDs**: Must be unique identifiers (alphanumeric characters and underscores only)\n2. **Comments**: Lines starting with `#` are comments (single-line only)\n3. **Indentation**: Use consistent spaces or tabs for route definitions\n4. **Case Sensitivity**: Colors must be uppercase (R, B, Y, G)\n5. **Termination**: \n - Robots routed to `NONE` are rejected\n - Robots routed to the END node are accepted if they meet the puzzle criteria, otherwise rejected\n6. **Code Blocks**: Final factory code should be wrapped in triple backticks with ``` markers\n\n## Example\n\nHere's a simple example that accepts robots with exactly one red tape (ending tape should be empty):\n\n```manufactoria\nSTART start:\n NEXT entry\n\nPULLER_RB entry:\n [R] end\n\nEND end\n```\n\n# Task \nYour task is to design a factory with code with following functionality:\n\nRemove patterns RR, then put 'RBBB' at the beginning of the tape. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": true,
"description": "Input '' β mutated: '' β output: 'RBBB'",
"expected_accepted": true,
"expected_output": "RBBB",
"input": ""
},
{
"check_output": true,
"description": "Input 'R' β mutated: 'R' β output: 'RBBBR'",
"expected_accepted": true,
"expected_output": "RBBBR",
"input": "R"
},
{
"check_output": true,
"description": "Input 'RB' β mutated: 'RB' β output: 'RBBBRB'",
"expected_accepted": true,
"expected_output": "RBBBRB",
"input": "RB"
},
{
"check_output": true,
"description": "Input 'BBR' β mutated: 'BBR' β output: 'RBBBBBR'",
"expected_accepted": true,
"expected_output": "RBBBBBR",
"input": "BBR"
},
{
"check_output": true,
"description": "Input 'RBR' β mutated: 'RBR' β output: 'RBBBRBR'",
"expected_accepted": true,
"expected_output": "RBBBRBR",
"input": "RBR"
},
{
"check_output": true,
"description": "Input 'RRB' β mutated: 'B' β output: 'RBBBB'",
"expected_accepted": true,
"expected_output": "RBBBB",
"input": "RRB"
},
{
"check_output": true,
"description": "Input 'RR' β mutated: '' β output: 'RBBB'",
"expected_accepted": true,
"expected_output": "RBBB",
"input": "RR"
},
{
"check_output": true,
"description": "Input 'BR' β mutated: 'BR' β output: 'RBBBBR'",
"expected_accepted": true,
"expected_output": "RBBBBR",
"input": "BR"
},
{
"check_output": true,
"description": "Input 'BRB' β mutated: 'BRB' β output: 'RBBBBRB'",
"expected_accepted": true,
"expected_output": "RBBBBRB",
"input": "BRB"
},
{
"check_output": true,
"description": "Input 'B' β mutated: 'B' β output: 'RBBBB'",
"expected_accepted": true,
"expected_output": "RBBBB",
"input": "B"
},
{
"check_output": true,
"description": "Input 'BB' β mutated: 'BB' β output: 'RBBBBB'",
"expected_accepted": true,
"expected_output": "RBBBBB",
"input": "BB"
},
{
"check_output": true,
"description": "Input 'BRBB' β mutated: 'BRBB' β output: 'RBBBBRBB'",
"expected_accepted": true,
"expected_output": "RBBBBRBB",
"input": "BRBB"
},
{
"check_output": true,
"description": "Input 'BBB' β mutated: 'BBB' β output: 'RBBBBBB'",
"expected_accepted": true,
"expected_output": "RBBBBBB",
"input": "BBB"
},
{
"check_output": true,
"description": "Input 'RRR' β mutated: 'R' β output: 'RBBBR'",
"expected_accepted": true,
"expected_output": "RBBBR",
"input": "RRR"
},
{
"check_output": true,
"description": "Input 'BRBR' β mutated: 'BRBR' β output: 'RBBBBRBR'",
"expected_accepted": true,
"expected_output": "RBBBBRBR",
"input": "BRBR"
},
{
"check_output": true,
"description": "Input 'RBRB' β mutated: 'RBRB' β output: 'RBBBRBRB'",
"expected_accepted": true,
"expected_output": "RBBBRBRB",
"input": "RBRB"
},
{
"check_output": true,
"description": "Input 'RBBBRBBR' β mutated: 'RBBBRBBR' β output: 'RBBBRBBBRBBR'",
"expected_accepted": true,
"expected_output": "RBBBRBBBRBBR",
"input": "RBBBRBBR"
},
{
"check_output": true,
"description": "Input 'BBRRBBBRRRBB' β mutated: 'BBBBBRBB' β output: 'RBBBBBBBBRBB'",
"expected_accepted": true,
"expected_output": "RBBBBBBBBRBB",
"input": "BBRRBBBRRRBB"
}
] |
manufactoria
|
hard
|
6b66c8d8-2120-429d-a90f-2ce9add47f24
|
prepend_sequence
|
Prepend RBBB after Remove patterns RR
|
[
{
"content": "# Manufactoria Solution DSL\n\nA Domain Specific Language for describing Manufactoria puzzle solutions in text format.\n\n## Overview\n\nManufactoria is a puzzle game where you build automated factories to sort robots based on their colored tape patterns. Robots enter your factory carrying sequences of colored tape, and you must route them to the correct destinations based on the given criteria.\n\n## Game Mechanics\n\n### Robots and Tape\n- **Robots**: Each robot carries a sequence of colored tapes\n- **Tape Colors**: Primary colors are Blue (B) and Red (R), with additional Yellow (Y) and Green (G) for advanced puzzles\n- **Tape Representation**: Sequences are represented as strings (e.g., `RBRR`, `BBR`, or empty string `\"\"`)\n\n### Operations\n- **Pull**: Remove tape from the front of the robot's sequence\n- **Paint**: Add colored tape to the end of the robot's sequence\n- **Route**: Direct robots through the factory based on their current tape state\n\n### Objective (output check)\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node and meets the puzzle's acceptance criteria\n- **Rejected**: Robot is routed to the NONE node, or caught in an infinite loop, or robot reaches the END node but fails to meet the puzzle's acceptance criteria \n\n## DSL Syntax\n\n### Program Structure\n\nEvery solution must start with a `START` directive and end with an `END` directive, wrapped in ```manufactoria ...```:\n\n```manufactoria\nSTART start:\n NEXT <next_node_id>\n\n# Factory logic goes here\n\nEND end\n```\n\n### Node Types\n\n#### 1. Puller Nodes\n\nPullers remove specific colors from the front of the robot's tape sequence and route based on the current front color.\n\n**Red/Blue Puller:**\n\n```manufactoria\nPULLER_RB <node_id>:\n [R] <next_node_id> # Route and remove color if front tape is Red\n [B] <next_node_id> # Route and remove color if front tape is Blue\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither red nor blue\n```\n\n**Yellow/Green Puller:**\n\n```manufactoria\nPULLER_YG <node_id>:\n [Y] <next_node_id> # Route and remove color if front tape is Yellow\n [G] <next_node_id> # Route and remove color if front tape is Green\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither yellow nor green\n```\n\n**Note**: Unspecified branches default to `NONE`, which rejects the robot.\n\n#### 2. Painter Nodes\n\nPainters add colored tape to the end of the robot's sequence and continue to the next node.\n\n```manufactoria\nPAINTER_RED <node_id>:\n NEXT <next_node_id>\n\nPAINTER_BLUE <node_id>:\n NEXT <next_node_id>\n\nPAINTER_YELLOW <node_id>:\n NEXT <next_node_id>\n\nPAINTER_GREEN <node_id>:\n NEXT <next_node_id>\n```\n\n## Syntax Rules\n\n1. **Node IDs**: Must be unique identifiers (alphanumeric characters and underscores only)\n2. **Comments**: Lines starting with `#` are comments (single-line only)\n3. **Indentation**: Use consistent spaces or tabs for route definitions\n4. **Case Sensitivity**: Colors must be uppercase (R, B, Y, G)\n5. **Termination**: \n - Robots routed to `NONE` are rejected\n - Robots routed to the END node are accepted if they meet the puzzle criteria, otherwise rejected\n6. **Code Blocks**: Final factory code should be wrapped in triple backticks with ``` markers\n\n## Example\n\nHere's a simple example that accepts robots with exactly one red tape (ending tape should be empty):\n\n```manufactoria\nSTART start:\n NEXT entry\n\nPULLER_RB entry:\n [R] end\n\nEND end\n```\n\n# Task \nYour task is to design a factory with code with following functionality:\n\nReplace patterns BR with B, then put 'B' at the beginning of the tape. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": true,
"description": "Input '' β mutated: '' β output: 'B'",
"expected_accepted": true,
"expected_output": "B",
"input": ""
},
{
"check_output": true,
"description": "Input 'R' β mutated: 'R' β output: 'BR'",
"expected_accepted": true,
"expected_output": "BR",
"input": "R"
},
{
"check_output": true,
"description": "Input 'RB' β mutated: 'RB' β output: 'BRB'",
"expected_accepted": true,
"expected_output": "BRB",
"input": "RB"
},
{
"check_output": true,
"description": "Input 'BBR' β mutated: 'BB' β output: 'BBB'",
"expected_accepted": true,
"expected_output": "BBB",
"input": "BBR"
},
{
"check_output": true,
"description": "Input 'RBR' β mutated: 'RB' β output: 'BRB'",
"expected_accepted": true,
"expected_output": "BRB",
"input": "RBR"
},
{
"check_output": true,
"description": "Input 'RRB' β mutated: 'RRB' β output: 'BRRB'",
"expected_accepted": true,
"expected_output": "BRRB",
"input": "RRB"
},
{
"check_output": true,
"description": "Input 'B' β mutated: 'B' β output: 'BB'",
"expected_accepted": true,
"expected_output": "BB",
"input": "B"
},
{
"check_output": true,
"description": "Input 'BRB' β mutated: 'BB' β output: 'BBB'",
"expected_accepted": true,
"expected_output": "BBB",
"input": "BRB"
},
{
"check_output": true,
"description": "Input 'BR' β mutated: 'B' β output: 'BB'",
"expected_accepted": true,
"expected_output": "BB",
"input": "BR"
},
{
"check_output": true,
"description": "Input 'BB' β mutated: 'BB' β output: 'BBB'",
"expected_accepted": true,
"expected_output": "BBB",
"input": "BB"
},
{
"check_output": true,
"description": "Input 'RR' β mutated: 'RR' β output: 'BRR'",
"expected_accepted": true,
"expected_output": "BRR",
"input": "RR"
},
{
"check_output": true,
"description": "Input 'BBRB' β mutated: 'BBB' β output: 'BBBB'",
"expected_accepted": true,
"expected_output": "BBBB",
"input": "BBRB"
},
{
"check_output": true,
"description": "Input 'BBB' β mutated: 'BBB' β output: 'BBBB'",
"expected_accepted": true,
"expected_output": "BBBB",
"input": "BBB"
},
{
"check_output": true,
"description": "Input 'RRR' β mutated: 'RRR' β output: 'BRRR'",
"expected_accepted": true,
"expected_output": "BRRR",
"input": "RRR"
},
{
"check_output": true,
"description": "Input 'BRBR' β mutated: 'BB' β output: 'BBB'",
"expected_accepted": true,
"expected_output": "BBB",
"input": "BRBR"
},
{
"check_output": true,
"description": "Input 'RBRB' β mutated: 'RBB' β output: 'BRBB'",
"expected_accepted": true,
"expected_output": "BRBB",
"input": "RBRB"
},
{
"check_output": true,
"description": "Input 'BBRBBRBR' β mutated: 'BBBBB' β output: 'BBBBBB'",
"expected_accepted": true,
"expected_output": "BBBBBB",
"input": "BBRBBRBR"
},
{
"check_output": true,
"description": "Input 'RBBBRBRRBRBB' β mutated: 'RBBBBRBBB' β output: 'BRBBBBRBBB'",
"expected_accepted": true,
"expected_output": "BRBBBBRBBB",
"input": "RBBBRBRRBRBB"
}
] |
manufactoria
|
hard
|
398d0698-c38d-4f31-8780-92e5d510fd33
|
prepend_sequence
|
Prepend B after Replace patterns BR with B
|
[
{
"content": "# Manufactoria Solution DSL\n\nA Domain Specific Language for describing Manufactoria puzzle solutions in text format.\n\n## Overview\n\nManufactoria is a puzzle game where you build automated factories to sort robots based on their colored tape patterns. Robots enter your factory carrying sequences of colored tape, and you must route them to the correct destinations based on the given criteria.\n\n## Game Mechanics\n\n### Robots and Tape\n- **Robots**: Each robot carries a sequence of colored tapes\n- **Tape Colors**: Primary colors are Blue (B) and Red (R), with additional Yellow (Y) and Green (G) for advanced puzzles\n- **Tape Representation**: Sequences are represented as strings (e.g., `RBRR`, `BBR`, or empty string `\"\"`)\n\n### Operations\n- **Pull**: Remove tape from the front of the robot's sequence\n- **Paint**: Add colored tape to the end of the robot's sequence\n- **Route**: Direct robots through the factory based on their current tape state\n\n### Objective (output check)\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node and meets the puzzle's acceptance criteria\n- **Rejected**: Robot is routed to the NONE node, or caught in an infinite loop, or robot reaches the END node but fails to meet the puzzle's acceptance criteria \n\n## DSL Syntax\n\n### Program Structure\n\nEvery solution must start with a `START` directive and end with an `END` directive, wrapped in ```manufactoria ...```:\n\n```manufactoria\nSTART start:\n NEXT <next_node_id>\n\n# Factory logic goes here\n\nEND end\n```\n\n### Node Types\n\n#### 1. Puller Nodes\n\nPullers remove specific colors from the front of the robot's tape sequence and route based on the current front color.\n\n**Red/Blue Puller:**\n\n```manufactoria\nPULLER_RB <node_id>:\n [R] <next_node_id> # Route and remove color if front tape is Red\n [B] <next_node_id> # Route and remove color if front tape is Blue\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither red nor blue\n```\n\n**Yellow/Green Puller:**\n\n```manufactoria\nPULLER_YG <node_id>:\n [Y] <next_node_id> # Route and remove color if front tape is Yellow\n [G] <next_node_id> # Route and remove color if front tape is Green\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither yellow nor green\n```\n\n**Note**: Unspecified branches default to `NONE`, which rejects the robot.\n\n#### 2. Painter Nodes\n\nPainters add colored tape to the end of the robot's sequence and continue to the next node.\n\n```manufactoria\nPAINTER_RED <node_id>:\n NEXT <next_node_id>\n\nPAINTER_BLUE <node_id>:\n NEXT <next_node_id>\n\nPAINTER_YELLOW <node_id>:\n NEXT <next_node_id>\n\nPAINTER_GREEN <node_id>:\n NEXT <next_node_id>\n```\n\n## Syntax Rules\n\n1. **Node IDs**: Must be unique identifiers (alphanumeric characters and underscores only)\n2. **Comments**: Lines starting with `#` are comments (single-line only)\n3. **Indentation**: Use consistent spaces or tabs for route definitions\n4. **Case Sensitivity**: Colors must be uppercase (R, B, Y, G)\n5. **Termination**: \n - Robots routed to `NONE` are rejected\n - Robots routed to the END node are accepted if they meet the puzzle criteria, otherwise rejected\n6. **Code Blocks**: Final factory code should be wrapped in triple backticks with ``` markers\n\n## Example\n\nHere's a simple example that accepts robots with exactly one red tape (ending tape should be empty):\n\n```manufactoria\nSTART start:\n NEXT entry\n\nPULLER_RB entry:\n [R] end\n\nEND end\n```\n\n# Task \nYour task is to design a factory with code with following functionality:\n\nReplace patterns BB with B, then put 'BBB' at the beginning of the tape. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": true,
"description": "Input '' β mutated: '' β output: 'BBB'",
"expected_accepted": true,
"expected_output": "BBB",
"input": ""
},
{
"check_output": true,
"description": "Input 'R' β mutated: 'R' β output: 'BBBR'",
"expected_accepted": true,
"expected_output": "BBBR",
"input": "R"
},
{
"check_output": true,
"description": "Input 'RB' β mutated: 'RB' β output: 'BBBRB'",
"expected_accepted": true,
"expected_output": "BBBRB",
"input": "RB"
},
{
"check_output": true,
"description": "Input 'BBR' β mutated: 'BR' β output: 'BBBBR'",
"expected_accepted": true,
"expected_output": "BBBBR",
"input": "BBR"
},
{
"check_output": true,
"description": "Input 'RBR' β mutated: 'RBR' β output: 'BBBRBR'",
"expected_accepted": true,
"expected_output": "BBBRBR",
"input": "RBR"
},
{
"check_output": true,
"description": "Input 'RRB' β mutated: 'RRB' β output: 'BBBRRB'",
"expected_accepted": true,
"expected_output": "BBBRRB",
"input": "RRB"
},
{
"check_output": true,
"description": "Input 'B' β mutated: 'B' β output: 'BBBB'",
"expected_accepted": true,
"expected_output": "BBBB",
"input": "B"
},
{
"check_output": true,
"description": "Input 'RR' β mutated: 'RR' β output: 'BBBRR'",
"expected_accepted": true,
"expected_output": "BBBRR",
"input": "RR"
},
{
"check_output": true,
"description": "Input 'BR' β mutated: 'BR' β output: 'BBBBR'",
"expected_accepted": true,
"expected_output": "BBBBR",
"input": "BR"
},
{
"check_output": true,
"description": "Input 'BRB' β mutated: 'BRB' β output: 'BBBBRB'",
"expected_accepted": true,
"expected_output": "BBBBRB",
"input": "BRB"
},
{
"check_output": true,
"description": "Input 'BB' β mutated: 'B' β output: 'BBBB'",
"expected_accepted": true,
"expected_output": "BBBB",
"input": "BB"
},
{
"check_output": true,
"description": "Input 'RRRB' β mutated: 'RRRB' β output: 'BBBRRRB'",
"expected_accepted": true,
"expected_output": "BBBRRRB",
"input": "RRRB"
},
{
"check_output": true,
"description": "Input 'BBB' β mutated: 'BB' β output: 'BBBBB'",
"expected_accepted": true,
"expected_output": "BBBBB",
"input": "BBB"
},
{
"check_output": true,
"description": "Input 'RRR' β mutated: 'RRR' β output: 'BBBRRR'",
"expected_accepted": true,
"expected_output": "BBBRRR",
"input": "RRR"
},
{
"check_output": true,
"description": "Input 'BRBR' β mutated: 'BRBR' β output: 'BBBBRBR'",
"expected_accepted": true,
"expected_output": "BBBBRBR",
"input": "BRBR"
},
{
"check_output": true,
"description": "Input 'RBRB' β mutated: 'RBRB' β output: 'BBBRBRB'",
"expected_accepted": true,
"expected_output": "BBBRBRB",
"input": "RBRB"
},
{
"check_output": true,
"description": "Input 'BBRRBBRR' β mutated: 'BRRBRR' β output: 'BBBBRRBRR'",
"expected_accepted": true,
"expected_output": "BBBBRRBRR",
"input": "BBRRBBRR"
},
{
"check_output": true,
"description": "Input 'BRRBRRBBBBRB' β mutated: 'BRRBRRBBRB' β output: 'BBBBRRBRRBBRB'",
"expected_accepted": true,
"expected_output": "BBBBRRBRRBBRB",
"input": "BRRBRRBBBBRB"
}
] |
manufactoria
|
hard
|
4d512e3c-1c6e-45bf-8ffe-7236503b83fa
|
prepend_sequence
|
Prepend BBB after Replace patterns BB with B
|
[
{
"content": "# Manufactoria Solution DSL\n\nA Domain Specific Language for describing Manufactoria puzzle solutions in text format.\n\n## Overview\n\nManufactoria is a puzzle game where you build automated factories to sort robots based on their colored tape patterns. Robots enter your factory carrying sequences of colored tape, and you must route them to the correct destinations based on the given criteria.\n\n## Game Mechanics\n\n### Robots and Tape\n- **Robots**: Each robot carries a sequence of colored tapes\n- **Tape Colors**: Primary colors are Blue (B) and Red (R), with additional Yellow (Y) and Green (G) for advanced puzzles\n- **Tape Representation**: Sequences are represented as strings (e.g., `RBRR`, `BBR`, or empty string `\"\"`)\n\n### Operations\n- **Pull**: Remove tape from the front of the robot's sequence\n- **Paint**: Add colored tape to the end of the robot's sequence\n- **Route**: Direct robots through the factory based on their current tape state\n\n### Objective (output check)\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node and meets the puzzle's acceptance criteria\n- **Rejected**: Robot is routed to the NONE node, or caught in an infinite loop, or robot reaches the END node but fails to meet the puzzle's acceptance criteria \n\n## DSL Syntax\n\n### Program Structure\n\nEvery solution must start with a `START` directive and end with an `END` directive, wrapped in ```manufactoria ...```:\n\n```manufactoria\nSTART start:\n NEXT <next_node_id>\n\n# Factory logic goes here\n\nEND end\n```\n\n### Node Types\n\n#### 1. Puller Nodes\n\nPullers remove specific colors from the front of the robot's tape sequence and route based on the current front color.\n\n**Red/Blue Puller:**\n\n```manufactoria\nPULLER_RB <node_id>:\n [R] <next_node_id> # Route and remove color if front tape is Red\n [B] <next_node_id> # Route and remove color if front tape is Blue\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither red nor blue\n```\n\n**Yellow/Green Puller:**\n\n```manufactoria\nPULLER_YG <node_id>:\n [Y] <next_node_id> # Route and remove color if front tape is Yellow\n [G] <next_node_id> # Route and remove color if front tape is Green\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither yellow nor green\n```\n\n**Note**: Unspecified branches default to `NONE`, which rejects the robot.\n\n#### 2. Painter Nodes\n\nPainters add colored tape to the end of the robot's sequence and continue to the next node.\n\n```manufactoria\nPAINTER_RED <node_id>:\n NEXT <next_node_id>\n\nPAINTER_BLUE <node_id>:\n NEXT <next_node_id>\n\nPAINTER_YELLOW <node_id>:\n NEXT <next_node_id>\n\nPAINTER_GREEN <node_id>:\n NEXT <next_node_id>\n```\n\n## Syntax Rules\n\n1. **Node IDs**: Must be unique identifiers (alphanumeric characters and underscores only)\n2. **Comments**: Lines starting with `#` are comments (single-line only)\n3. **Indentation**: Use consistent spaces or tabs for route definitions\n4. **Case Sensitivity**: Colors must be uppercase (R, B, Y, G)\n5. **Termination**: \n - Robots routed to `NONE` are rejected\n - Robots routed to the END node are accepted if they meet the puzzle criteria, otherwise rejected\n6. **Code Blocks**: Final factory code should be wrapped in triple backticks with ``` markers\n\n## Example\n\nHere's a simple example that accepts robots with exactly one red tape (ending tape should be empty):\n\n```manufactoria\nSTART start:\n NEXT entry\n\nPULLER_RB entry:\n [R] end\n\nEND end\n```\n\n# Task \nYour task is to design a factory with code with following functionality:\n\nRemove patterns BR, then put 'RR' at the beginning of the tape. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": true,
"description": "Input '' β mutated: '' β output: 'RR'",
"expected_accepted": true,
"expected_output": "RR",
"input": ""
},
{
"check_output": true,
"description": "Input 'R' β mutated: 'R' β output: 'RRR'",
"expected_accepted": true,
"expected_output": "RRR",
"input": "R"
},
{
"check_output": true,
"description": "Input 'RB' β mutated: 'RB' β output: 'RRRB'",
"expected_accepted": true,
"expected_output": "RRRB",
"input": "RB"
},
{
"check_output": true,
"description": "Input 'BBR' β mutated: 'B' β output: 'RRB'",
"expected_accepted": true,
"expected_output": "RRB",
"input": "BBR"
},
{
"check_output": true,
"description": "Input 'RBR' β mutated: 'R' β output: 'RRR'",
"expected_accepted": true,
"expected_output": "RRR",
"input": "RBR"
},
{
"check_output": true,
"description": "Input 'RRB' β mutated: 'RRB' β output: 'RRRRB'",
"expected_accepted": true,
"expected_output": "RRRRB",
"input": "RRB"
},
{
"check_output": true,
"description": "Input 'BRB' β mutated: 'B' β output: 'RRB'",
"expected_accepted": true,
"expected_output": "RRB",
"input": "BRB"
},
{
"check_output": true,
"description": "Input 'BR' β mutated: '' β output: 'RR'",
"expected_accepted": true,
"expected_output": "RR",
"input": "BR"
},
{
"check_output": true,
"description": "Input 'BB' β mutated: 'BB' β output: 'RRBB'",
"expected_accepted": true,
"expected_output": "RRBB",
"input": "BB"
},
{
"check_output": true,
"description": "Input 'B' β mutated: 'B' β output: 'RRB'",
"expected_accepted": true,
"expected_output": "RRB",
"input": "B"
},
{
"check_output": true,
"description": "Input 'RR' β mutated: 'RR' β output: 'RRRR'",
"expected_accepted": true,
"expected_output": "RRRR",
"input": "RR"
},
{
"check_output": true,
"description": "Input 'BRBR' β mutated: '' β output: 'RR'",
"expected_accepted": true,
"expected_output": "RR",
"input": "BRBR"
},
{
"check_output": true,
"description": "Input 'BBB' β mutated: 'BBB' β output: 'RRBBB'",
"expected_accepted": true,
"expected_output": "RRBBB",
"input": "BBB"
},
{
"check_output": true,
"description": "Input 'RRR' β mutated: 'RRR' β output: 'RRRRR'",
"expected_accepted": true,
"expected_output": "RRRRR",
"input": "RRR"
},
{
"check_output": true,
"description": "Input 'RBRB' β mutated: 'RB' β output: 'RRRB'",
"expected_accepted": true,
"expected_output": "RRRB",
"input": "RBRB"
},
{
"check_output": true,
"description": "Input 'BBBBBBBB' β mutated: 'BBBBBBBB' β output: 'RRBBBBBBBB'",
"expected_accepted": true,
"expected_output": "RRBBBBBBBB",
"input": "BBBBBBBB"
},
{
"check_output": true,
"description": "Input 'RRRRRBRBBBBR' β mutated: 'RRRRRBBB' β output: 'RRRRRRRBBB'",
"expected_accepted": true,
"expected_output": "RRRRRRRBBB",
"input": "RRRRRBRBBBBR"
}
] |
manufactoria
|
hard
|
d91e8acc-e7e7-4dce-a5aa-e7ec8d4609b4
|
prepend_sequence
|
Prepend RR after Remove patterns BR
|
[
{
"content": "# Manufactoria Solution DSL\n\nA Domain Specific Language for describing Manufactoria puzzle solutions in text format.\n\n## Overview\n\nManufactoria is a puzzle game where you build automated factories to sort robots based on their colored tape patterns. Robots enter your factory carrying sequences of colored tape, and you must route them to the correct destinations based on the given criteria.\n\n## Game Mechanics\n\n### Robots and Tape\n- **Robots**: Each robot carries a sequence of colored tapes\n- **Tape Colors**: Primary colors are Blue (B) and Red (R), with additional Yellow (Y) and Green (G) for advanced puzzles\n- **Tape Representation**: Sequences are represented as strings (e.g., `RBRR`, `BBR`, or empty string `\"\"`)\n\n### Operations\n- **Pull**: Remove tape from the front of the robot's sequence\n- **Paint**: Add colored tape to the end of the robot's sequence\n- **Route**: Direct robots through the factory based on their current tape state\n\n### Objective (output check)\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node and meets the puzzle's acceptance criteria\n- **Rejected**: Robot is routed to the NONE node, or caught in an infinite loop, or robot reaches the END node but fails to meet the puzzle's acceptance criteria \n\n## DSL Syntax\n\n### Program Structure\n\nEvery solution must start with a `START` directive and end with an `END` directive, wrapped in ```manufactoria ...```:\n\n```manufactoria\nSTART start:\n NEXT <next_node_id>\n\n# Factory logic goes here\n\nEND end\n```\n\n### Node Types\n\n#### 1. Puller Nodes\n\nPullers remove specific colors from the front of the robot's tape sequence and route based on the current front color.\n\n**Red/Blue Puller:**\n\n```manufactoria\nPULLER_RB <node_id>:\n [R] <next_node_id> # Route and remove color if front tape is Red\n [B] <next_node_id> # Route and remove color if front tape is Blue\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither red nor blue\n```\n\n**Yellow/Green Puller:**\n\n```manufactoria\nPULLER_YG <node_id>:\n [Y] <next_node_id> # Route and remove color if front tape is Yellow\n [G] <next_node_id> # Route and remove color if front tape is Green\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither yellow nor green\n```\n\n**Note**: Unspecified branches default to `NONE`, which rejects the robot.\n\n#### 2. Painter Nodes\n\nPainters add colored tape to the end of the robot's sequence and continue to the next node.\n\n```manufactoria\nPAINTER_RED <node_id>:\n NEXT <next_node_id>\n\nPAINTER_BLUE <node_id>:\n NEXT <next_node_id>\n\nPAINTER_YELLOW <node_id>:\n NEXT <next_node_id>\n\nPAINTER_GREEN <node_id>:\n NEXT <next_node_id>\n```\n\n## Syntax Rules\n\n1. **Node IDs**: Must be unique identifiers (alphanumeric characters and underscores only)\n2. **Comments**: Lines starting with `#` are comments (single-line only)\n3. **Indentation**: Use consistent spaces or tabs for route definitions\n4. **Case Sensitivity**: Colors must be uppercase (R, B, Y, G)\n5. **Termination**: \n - Robots routed to `NONE` are rejected\n - Robots routed to the END node are accepted if they meet the puzzle criteria, otherwise rejected\n6. **Code Blocks**: Final factory code should be wrapped in triple backticks with ``` markers\n\n## Example\n\nHere's a simple example that accepts robots with exactly one red tape (ending tape should be empty):\n\n```manufactoria\nSTART start:\n NEXT entry\n\nPULLER_RB entry:\n [R] end\n\nEND end\n```\n\n# Task \nYour task is to design a factory with code with following functionality:\n\nReplace patterns BB with BR, then put 'RRRR' at the beginning of the tape. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": true,
"description": "Input '' β mutated: '' β output: 'RRRR'",
"expected_accepted": true,
"expected_output": "RRRR",
"input": ""
},
{
"check_output": true,
"description": "Input 'R' β mutated: 'R' β output: 'RRRRR'",
"expected_accepted": true,
"expected_output": "RRRRR",
"input": "R"
},
{
"check_output": true,
"description": "Input 'RB' β mutated: 'RB' β output: 'RRRRRB'",
"expected_accepted": true,
"expected_output": "RRRRRB",
"input": "RB"
},
{
"check_output": true,
"description": "Input 'BBR' β mutated: 'BRR' β output: 'RRRRBRR'",
"expected_accepted": true,
"expected_output": "RRRRBRR",
"input": "BBR"
},
{
"check_output": true,
"description": "Input 'RBR' β mutated: 'RBR' β output: 'RRRRRBR'",
"expected_accepted": true,
"expected_output": "RRRRRBR",
"input": "RBR"
},
{
"check_output": true,
"description": "Input 'RRB' β mutated: 'RRB' β output: 'RRRRRRB'",
"expected_accepted": true,
"expected_output": "RRRRRRB",
"input": "RRB"
},
{
"check_output": true,
"description": "Input 'RR' β mutated: 'RR' β output: 'RRRRRR'",
"expected_accepted": true,
"expected_output": "RRRRRR",
"input": "RR"
},
{
"check_output": true,
"description": "Input 'BR' β mutated: 'BR' β output: 'RRRRBR'",
"expected_accepted": true,
"expected_output": "RRRRBR",
"input": "BR"
},
{
"check_output": true,
"description": "Input 'BRB' β mutated: 'BRB' β output: 'RRRRBRB'",
"expected_accepted": true,
"expected_output": "RRRRBRB",
"input": "BRB"
},
{
"check_output": true,
"description": "Input 'BB' β mutated: 'BR' β output: 'RRRRBR'",
"expected_accepted": true,
"expected_output": "RRRRBR",
"input": "BB"
},
{
"check_output": true,
"description": "Input 'B' β mutated: 'B' β output: 'RRRRB'",
"expected_accepted": true,
"expected_output": "RRRRB",
"input": "B"
},
{
"check_output": true,
"description": "Input 'BRBR' β mutated: 'BRBR' β output: 'RRRRBRBR'",
"expected_accepted": true,
"expected_output": "RRRRBRBR",
"input": "BRBR"
},
{
"check_output": true,
"description": "Input 'BBB' β mutated: 'BRB' β output: 'RRRRBRB'",
"expected_accepted": true,
"expected_output": "RRRRBRB",
"input": "BBB"
},
{
"check_output": true,
"description": "Input 'RRR' β mutated: 'RRR' β output: 'RRRRRRR'",
"expected_accepted": true,
"expected_output": "RRRRRRR",
"input": "RRR"
},
{
"check_output": true,
"description": "Input 'RBRB' β mutated: 'RBRB' β output: 'RRRRRBRB'",
"expected_accepted": true,
"expected_output": "RRRRRBRB",
"input": "RBRB"
},
{
"check_output": true,
"description": "Input 'RBRBBRRR' β mutated: 'RBRBRRRR' β output: 'RRRRRBRBRRRR'",
"expected_accepted": true,
"expected_output": "RRRRRBRBRRRR",
"input": "RBRBBRRR"
},
{
"check_output": true,
"description": "Input 'BBBBBRRBRRRB' β mutated: 'BRBRBRRBRRRB' β output: 'RRRRBRBRBRRBRRRB'",
"expected_accepted": true,
"expected_output": "RRRRBRBRBRRBRRRB",
"input": "BBBBBRRBRRRB"
}
] |
manufactoria
|
hard
|
3c672174-e6d6-4a10-901a-8dd42bfe1fdb
|
prepend_sequence
|
Prepend RRRR after Replace patterns BB with BR
|
[
{
"content": "# Manufactoria Solution DSL\n\nA Domain Specific Language for describing Manufactoria puzzle solutions in text format.\n\n## Overview\n\nManufactoria is a puzzle game where you build automated factories to sort robots based on their colored tape patterns. Robots enter your factory carrying sequences of colored tape, and you must route them to the correct destinations based on the given criteria.\n\n## Game Mechanics\n\n### Robots and Tape\n- **Robots**: Each robot carries a sequence of colored tapes\n- **Tape Colors**: Primary colors are Blue (B) and Red (R), with additional Yellow (Y) and Green (G) for advanced puzzles\n- **Tape Representation**: Sequences are represented as strings (e.g., `RBRR`, `BBR`, or empty string `\"\"`)\n\n### Operations\n- **Pull**: Remove tape from the front of the robot's sequence\n- **Paint**: Add colored tape to the end of the robot's sequence\n- **Route**: Direct robots through the factory based on their current tape state\n\n### Objective (output check)\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node and meets the puzzle's acceptance criteria\n- **Rejected**: Robot is routed to the NONE node, or caught in an infinite loop, or robot reaches the END node but fails to meet the puzzle's acceptance criteria \n\n## DSL Syntax\n\n### Program Structure\n\nEvery solution must start with a `START` directive and end with an `END` directive, wrapped in ```manufactoria ...```:\n\n```manufactoria\nSTART start:\n NEXT <next_node_id>\n\n# Factory logic goes here\n\nEND end\n```\n\n### Node Types\n\n#### 1. Puller Nodes\n\nPullers remove specific colors from the front of the robot's tape sequence and route based on the current front color.\n\n**Red/Blue Puller:**\n\n```manufactoria\nPULLER_RB <node_id>:\n [R] <next_node_id> # Route and remove color if front tape is Red\n [B] <next_node_id> # Route and remove color if front tape is Blue\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither red nor blue\n```\n\n**Yellow/Green Puller:**\n\n```manufactoria\nPULLER_YG <node_id>:\n [Y] <next_node_id> # Route and remove color if front tape is Yellow\n [G] <next_node_id> # Route and remove color if front tape is Green\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither yellow nor green\n```\n\n**Note**: Unspecified branches default to `NONE`, which rejects the robot.\n\n#### 2. Painter Nodes\n\nPainters add colored tape to the end of the robot's sequence and continue to the next node.\n\n```manufactoria\nPAINTER_RED <node_id>:\n NEXT <next_node_id>\n\nPAINTER_BLUE <node_id>:\n NEXT <next_node_id>\n\nPAINTER_YELLOW <node_id>:\n NEXT <next_node_id>\n\nPAINTER_GREEN <node_id>:\n NEXT <next_node_id>\n```\n\n## Syntax Rules\n\n1. **Node IDs**: Must be unique identifiers (alphanumeric characters and underscores only)\n2. **Comments**: Lines starting with `#` are comments (single-line only)\n3. **Indentation**: Use consistent spaces or tabs for route definitions\n4. **Case Sensitivity**: Colors must be uppercase (R, B, Y, G)\n5. **Termination**: \n - Robots routed to `NONE` are rejected\n - Robots routed to the END node are accepted if they meet the puzzle criteria, otherwise rejected\n6. **Code Blocks**: Final factory code should be wrapped in triple backticks with ``` markers\n\n## Example\n\nHere's a simple example that accepts robots with exactly one red tape (ending tape should be empty):\n\n```manufactoria\nSTART start:\n NEXT entry\n\nPULLER_RB entry:\n [R] end\n\nEND end\n```\n\n# Task \nYour task is to design a factory with code with following functionality:\n\nReplace patterns BR with BB, then put 'RB' at the beginning of the tape. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": true,
"description": "Input '' β mutated: '' β output: 'RB'",
"expected_accepted": true,
"expected_output": "RB",
"input": ""
},
{
"check_output": true,
"description": "Input 'R' β mutated: 'R' β output: 'RBR'",
"expected_accepted": true,
"expected_output": "RBR",
"input": "R"
},
{
"check_output": true,
"description": "Input 'RB' β mutated: 'RB' β output: 'RBRB'",
"expected_accepted": true,
"expected_output": "RBRB",
"input": "RB"
},
{
"check_output": true,
"description": "Input 'BBR' β mutated: 'BBB' β output: 'RBBBB'",
"expected_accepted": true,
"expected_output": "RBBBB",
"input": "BBR"
},
{
"check_output": true,
"description": "Input 'RBR' β mutated: 'RBB' β output: 'RBRBB'",
"expected_accepted": true,
"expected_output": "RBRBB",
"input": "RBR"
},
{
"check_output": true,
"description": "Input 'RRB' β mutated: 'RRB' β output: 'RBRRB'",
"expected_accepted": true,
"expected_output": "RBRRB",
"input": "RRB"
},
{
"check_output": true,
"description": "Input 'RR' β mutated: 'RR' β output: 'RBRR'",
"expected_accepted": true,
"expected_output": "RBRR",
"input": "RR"
},
{
"check_output": true,
"description": "Input 'BR' β mutated: 'BB' β output: 'RBBB'",
"expected_accepted": true,
"expected_output": "RBBB",
"input": "BR"
},
{
"check_output": true,
"description": "Input 'BRB' β mutated: 'BBB' β output: 'RBBBB'",
"expected_accepted": true,
"expected_output": "RBBBB",
"input": "BRB"
},
{
"check_output": true,
"description": "Input 'B' β mutated: 'B' β output: 'RBB'",
"expected_accepted": true,
"expected_output": "RBB",
"input": "B"
},
{
"check_output": true,
"description": "Input 'BB' β mutated: 'BB' β output: 'RBBB'",
"expected_accepted": true,
"expected_output": "RBBB",
"input": "BB"
},
{
"check_output": true,
"description": "Input 'RBBB' β mutated: 'RBBB' β output: 'RBRBBB'",
"expected_accepted": true,
"expected_output": "RBRBBB",
"input": "RBBB"
},
{
"check_output": true,
"description": "Input 'BBB' β mutated: 'BBB' β output: 'RBBBB'",
"expected_accepted": true,
"expected_output": "RBBBB",
"input": "BBB"
},
{
"check_output": true,
"description": "Input 'RRR' β mutated: 'RRR' β output: 'RBRRR'",
"expected_accepted": true,
"expected_output": "RBRRR",
"input": "RRR"
},
{
"check_output": true,
"description": "Input 'BRBR' β mutated: 'BBBB' β output: 'RBBBBB'",
"expected_accepted": true,
"expected_output": "RBBBBB",
"input": "BRBR"
},
{
"check_output": true,
"description": "Input 'RBRB' β mutated: 'RBBB' β output: 'RBRBBB'",
"expected_accepted": true,
"expected_output": "RBRBBB",
"input": "RBRB"
},
{
"check_output": true,
"description": "Input 'RRRBRBBR' β mutated: 'RRRBBBBB' β output: 'RBRRRBBBBB'",
"expected_accepted": true,
"expected_output": "RBRRRBBBBB",
"input": "RRRBRBBR"
},
{
"check_output": true,
"description": "Input 'RRRBBBRBBRBB' β mutated: 'RRRBBBBBBBBB' β output: 'RBRRRBBBBBBBBB'",
"expected_accepted": true,
"expected_output": "RBRRRBBBBBBBBB",
"input": "RRRBBBRBBRBB"
}
] |
manufactoria
|
hard
|
ae95af75-0ee9-4cfb-9e52-7863d2fecb4d
|
prepend_sequence
|
Prepend RB after Replace patterns BR with BB
|
[
{
"content": "# Manufactoria Solution DSL\n\nA Domain Specific Language for describing Manufactoria puzzle solutions in text format.\n\n## Overview\n\nManufactoria is a puzzle game where you build automated factories to sort robots based on their colored tape patterns. Robots enter your factory carrying sequences of colored tape, and you must route them to the correct destinations based on the given criteria.\n\n## Game Mechanics\n\n### Robots and Tape\n- **Robots**: Each robot carries a sequence of colored tapes\n- **Tape Colors**: Primary colors are Blue (B) and Red (R), with additional Yellow (Y) and Green (G) for advanced puzzles\n- **Tape Representation**: Sequences are represented as strings (e.g., `RBRR`, `BBR`, or empty string `\"\"`)\n\n### Operations\n- **Pull**: Remove tape from the front of the robot's sequence\n- **Paint**: Add colored tape to the end of the robot's sequence\n- **Route**: Direct robots through the factory based on their current tape state\n\n### Objective (output check)\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node and meets the puzzle's acceptance criteria\n- **Rejected**: Robot is routed to the NONE node, or caught in an infinite loop, or robot reaches the END node but fails to meet the puzzle's acceptance criteria \n\n## DSL Syntax\n\n### Program Structure\n\nEvery solution must start with a `START` directive and end with an `END` directive, wrapped in ```manufactoria ...```:\n\n```manufactoria\nSTART start:\n NEXT <next_node_id>\n\n# Factory logic goes here\n\nEND end\n```\n\n### Node Types\n\n#### 1. Puller Nodes\n\nPullers remove specific colors from the front of the robot's tape sequence and route based on the current front color.\n\n**Red/Blue Puller:**\n\n```manufactoria\nPULLER_RB <node_id>:\n [R] <next_node_id> # Route and remove color if front tape is Red\n [B] <next_node_id> # Route and remove color if front tape is Blue\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither red nor blue\n```\n\n**Yellow/Green Puller:**\n\n```manufactoria\nPULLER_YG <node_id>:\n [Y] <next_node_id> # Route and remove color if front tape is Yellow\n [G] <next_node_id> # Route and remove color if front tape is Green\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither yellow nor green\n```\n\n**Note**: Unspecified branches default to `NONE`, which rejects the robot.\n\n#### 2. Painter Nodes\n\nPainters add colored tape to the end of the robot's sequence and continue to the next node.\n\n```manufactoria\nPAINTER_RED <node_id>:\n NEXT <next_node_id>\n\nPAINTER_BLUE <node_id>:\n NEXT <next_node_id>\n\nPAINTER_YELLOW <node_id>:\n NEXT <next_node_id>\n\nPAINTER_GREEN <node_id>:\n NEXT <next_node_id>\n```\n\n## Syntax Rules\n\n1. **Node IDs**: Must be unique identifiers (alphanumeric characters and underscores only)\n2. **Comments**: Lines starting with `#` are comments (single-line only)\n3. **Indentation**: Use consistent spaces or tabs for route definitions\n4. **Case Sensitivity**: Colors must be uppercase (R, B, Y, G)\n5. **Termination**: \n - Robots routed to `NONE` are rejected\n - Robots routed to the END node are accepted if they meet the puzzle criteria, otherwise rejected\n6. **Code Blocks**: Final factory code should be wrapped in triple backticks with ``` markers\n\n## Example\n\nHere's a simple example that accepts robots with exactly one red tape (ending tape should be empty):\n\n```manufactoria\nSTART start:\n NEXT entry\n\nPULLER_RB entry:\n [R] end\n\nEND end\n```\n\n# Task \nYour task is to design a factory with code with following functionality:\n\nReplace patterns RB with BR, then put 'BR' at the beginning of the tape. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": true,
"description": "Input '' β mutated: '' β output: 'BR'",
"expected_accepted": true,
"expected_output": "BR",
"input": ""
},
{
"check_output": true,
"description": "Input 'R' β mutated: 'R' β output: 'BRR'",
"expected_accepted": true,
"expected_output": "BRR",
"input": "R"
},
{
"check_output": true,
"description": "Input 'RB' β mutated: 'BR' β output: 'BRBR'",
"expected_accepted": true,
"expected_output": "BRBR",
"input": "RB"
},
{
"check_output": true,
"description": "Input 'BBR' β mutated: 'BBR' β output: 'BRBBR'",
"expected_accepted": true,
"expected_output": "BRBBR",
"input": "BBR"
},
{
"check_output": true,
"description": "Input 'RBR' β mutated: 'BRR' β output: 'BRBRR'",
"expected_accepted": true,
"expected_output": "BRBRR",
"input": "RBR"
},
{
"check_output": true,
"description": "Input 'RRB' β mutated: 'RBR' β output: 'BRRBR'",
"expected_accepted": true,
"expected_output": "BRRBR",
"input": "RRB"
},
{
"check_output": true,
"description": "Input 'B' β mutated: 'B' β output: 'BRB'",
"expected_accepted": true,
"expected_output": "BRB",
"input": "B"
},
{
"check_output": true,
"description": "Input 'BRB' β mutated: 'BBR' β output: 'BRBBR'",
"expected_accepted": true,
"expected_output": "BRBBR",
"input": "BRB"
},
{
"check_output": true,
"description": "Input 'BR' β mutated: 'BR' β output: 'BRBR'",
"expected_accepted": true,
"expected_output": "BRBR",
"input": "BR"
},
{
"check_output": true,
"description": "Input 'RR' β mutated: 'RR' β output: 'BRRR'",
"expected_accepted": true,
"expected_output": "BRRR",
"input": "RR"
},
{
"check_output": true,
"description": "Input 'BB' β mutated: 'BB' β output: 'BRBB'",
"expected_accepted": true,
"expected_output": "BRBB",
"input": "BB"
},
{
"check_output": true,
"description": "Input 'BBRB' β mutated: 'BBBR' β output: 'BRBBBR'",
"expected_accepted": true,
"expected_output": "BRBBBR",
"input": "BBRB"
},
{
"check_output": true,
"description": "Input 'BBB' β mutated: 'BBB' β output: 'BRBBB'",
"expected_accepted": true,
"expected_output": "BRBBB",
"input": "BBB"
},
{
"check_output": true,
"description": "Input 'RRR' β mutated: 'RRR' β output: 'BRRRR'",
"expected_accepted": true,
"expected_output": "BRRRR",
"input": "RRR"
},
{
"check_output": true,
"description": "Input 'BRBR' β mutated: 'BBRR' β output: 'BRBBRR'",
"expected_accepted": true,
"expected_output": "BRBBRR",
"input": "BRBR"
},
{
"check_output": true,
"description": "Input 'RBRB' β mutated: 'BRBR' β output: 'BRBRBR'",
"expected_accepted": true,
"expected_output": "BRBRBR",
"input": "RBRB"
},
{
"check_output": true,
"description": "Input 'RBRRBBRR' β mutated: 'BRRBRBRR' β output: 'BRBRRBRBRR'",
"expected_accepted": true,
"expected_output": "BRBRRBRBRR",
"input": "RBRRBBRR"
},
{
"check_output": true,
"description": "Input 'RBRRBRBBBRBR' β mutated: 'BRRBRBRBBBRR' β output: 'BRBRRBRBRBBBRR'",
"expected_accepted": true,
"expected_output": "BRBRRBRBRBBBRR",
"input": "RBRRBRBBBRBR"
}
] |
manufactoria
|
hard
|
6141049d-5864-4cc2-9eab-7018fe4c3df3
|
prepend_sequence
|
Prepend BR after Replace patterns RB with BR
|
[
{
"content": "# Manufactoria Solution DSL\n\nA Domain Specific Language for describing Manufactoria puzzle solutions in text format.\n\n## Overview\n\nManufactoria is a puzzle game where you build automated factories to sort robots based on their colored tape patterns. Robots enter your factory carrying sequences of colored tape, and you must route them to the correct destinations based on the given criteria.\n\n## Game Mechanics\n\n### Robots and Tape\n- **Robots**: Each robot carries a sequence of colored tapes\n- **Tape Colors**: Primary colors are Blue (B) and Red (R), with additional Yellow (Y) and Green (G) for advanced puzzles\n- **Tape Representation**: Sequences are represented as strings (e.g., `RBRR`, `BBR`, or empty string `\"\"`)\n\n### Operations\n- **Pull**: Remove tape from the front of the robot's sequence\n- **Paint**: Add colored tape to the end of the robot's sequence\n- **Route**: Direct robots through the factory based on their current tape state\n\n### Objective (output check)\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node and meets the puzzle's acceptance criteria\n- **Rejected**: Robot is routed to the NONE node, or caught in an infinite loop, or robot reaches the END node but fails to meet the puzzle's acceptance criteria \n\n## DSL Syntax\n\n### Program Structure\n\nEvery solution must start with a `START` directive and end with an `END` directive, wrapped in ```manufactoria ...```:\n\n```manufactoria\nSTART start:\n NEXT <next_node_id>\n\n# Factory logic goes here\n\nEND end\n```\n\n### Node Types\n\n#### 1. Puller Nodes\n\nPullers remove specific colors from the front of the robot's tape sequence and route based on the current front color.\n\n**Red/Blue Puller:**\n\n```manufactoria\nPULLER_RB <node_id>:\n [R] <next_node_id> # Route and remove color if front tape is Red\n [B] <next_node_id> # Route and remove color if front tape is Blue\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither red nor blue\n```\n\n**Yellow/Green Puller:**\n\n```manufactoria\nPULLER_YG <node_id>:\n [Y] <next_node_id> # Route and remove color if front tape is Yellow\n [G] <next_node_id> # Route and remove color if front tape is Green\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither yellow nor green\n```\n\n**Note**: Unspecified branches default to `NONE`, which rejects the robot.\n\n#### 2. Painter Nodes\n\nPainters add colored tape to the end of the robot's sequence and continue to the next node.\n\n```manufactoria\nPAINTER_RED <node_id>:\n NEXT <next_node_id>\n\nPAINTER_BLUE <node_id>:\n NEXT <next_node_id>\n\nPAINTER_YELLOW <node_id>:\n NEXT <next_node_id>\n\nPAINTER_GREEN <node_id>:\n NEXT <next_node_id>\n```\n\n## Syntax Rules\n\n1. **Node IDs**: Must be unique identifiers (alphanumeric characters and underscores only)\n2. **Comments**: Lines starting with `#` are comments (single-line only)\n3. **Indentation**: Use consistent spaces or tabs for route definitions\n4. **Case Sensitivity**: Colors must be uppercase (R, B, Y, G)\n5. **Termination**: \n - Robots routed to `NONE` are rejected\n - Robots routed to the END node are accepted if they meet the puzzle criteria, otherwise rejected\n6. **Code Blocks**: Final factory code should be wrapped in triple backticks with ``` markers\n\n## Example\n\nHere's a simple example that accepts robots with exactly one red tape (ending tape should be empty):\n\n```manufactoria\nSTART start:\n NEXT entry\n\nPULLER_RB entry:\n [R] end\n\nEND end\n```\n\n# Task \nYour task is to design a factory with code with following functionality:\n\nReplace patterns BR with B, then put 'RRRB' at the beginning of the tape. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": true,
"description": "Input '' β mutated: '' β output: 'RRRB'",
"expected_accepted": true,
"expected_output": "RRRB",
"input": ""
},
{
"check_output": true,
"description": "Input 'R' β mutated: 'R' β output: 'RRRBR'",
"expected_accepted": true,
"expected_output": "RRRBR",
"input": "R"
},
{
"check_output": true,
"description": "Input 'RB' β mutated: 'RB' β output: 'RRRBRB'",
"expected_accepted": true,
"expected_output": "RRRBRB",
"input": "RB"
},
{
"check_output": true,
"description": "Input 'BBR' β mutated: 'BB' β output: 'RRRBBB'",
"expected_accepted": true,
"expected_output": "RRRBBB",
"input": "BBR"
},
{
"check_output": true,
"description": "Input 'RBR' β mutated: 'RB' β output: 'RRRBRB'",
"expected_accepted": true,
"expected_output": "RRRBRB",
"input": "RBR"
},
{
"check_output": true,
"description": "Input 'RRB' β mutated: 'RRB' β output: 'RRRBRRB'",
"expected_accepted": true,
"expected_output": "RRRBRRB",
"input": "RRB"
},
{
"check_output": true,
"description": "Input 'B' β mutated: 'B' β output: 'RRRBB'",
"expected_accepted": true,
"expected_output": "RRRBB",
"input": "B"
},
{
"check_output": true,
"description": "Input 'BRB' β mutated: 'BB' β output: 'RRRBBB'",
"expected_accepted": true,
"expected_output": "RRRBBB",
"input": "BRB"
},
{
"check_output": true,
"description": "Input 'BR' β mutated: 'B' β output: 'RRRBB'",
"expected_accepted": true,
"expected_output": "RRRBB",
"input": "BR"
},
{
"check_output": true,
"description": "Input 'RR' β mutated: 'RR' β output: 'RRRBRR'",
"expected_accepted": true,
"expected_output": "RRRBRR",
"input": "RR"
},
{
"check_output": true,
"description": "Input 'BB' β mutated: 'BB' β output: 'RRRBBB'",
"expected_accepted": true,
"expected_output": "RRRBBB",
"input": "BB"
},
{
"check_output": true,
"description": "Input 'RBBB' β mutated: 'RBBB' β output: 'RRRBRBBB'",
"expected_accepted": true,
"expected_output": "RRRBRBBB",
"input": "RBBB"
},
{
"check_output": true,
"description": "Input 'BBB' β mutated: 'BBB' β output: 'RRRBBBB'",
"expected_accepted": true,
"expected_output": "RRRBBBB",
"input": "BBB"
},
{
"check_output": true,
"description": "Input 'RRR' β mutated: 'RRR' β output: 'RRRBRRR'",
"expected_accepted": true,
"expected_output": "RRRBRRR",
"input": "RRR"
},
{
"check_output": true,
"description": "Input 'BRBR' β mutated: 'BB' β output: 'RRRBBB'",
"expected_accepted": true,
"expected_output": "RRRBBB",
"input": "BRBR"
},
{
"check_output": true,
"description": "Input 'RBRB' β mutated: 'RBB' β output: 'RRRBRBB'",
"expected_accepted": true,
"expected_output": "RRRBRBB",
"input": "RBRB"
},
{
"check_output": true,
"description": "Input 'RRRBRRRR' β mutated: 'RRRBRRR' β output: 'RRRBRRRBRRR'",
"expected_accepted": true,
"expected_output": "RRRBRRRBRRR",
"input": "RRRBRRRR"
},
{
"check_output": true,
"description": "Input 'BRRBBBBRRRBB' β mutated: 'BRBBBBRRBB' β output: 'RRRBBRBBBBRRBB'",
"expected_accepted": true,
"expected_output": "RRRBBRBBBBRRBB",
"input": "BRRBBBBRRRBB"
}
] |
manufactoria
|
hard
|
04af2f97-c770-4c57-be4d-9efb41a47c43
|
prepend_sequence
|
Prepend RRRB after Replace patterns BR with B
|
[
{
"content": "# Manufactoria Solution DSL\n\nA Domain Specific Language for describing Manufactoria puzzle solutions in text format.\n\n## Overview\n\nManufactoria is a puzzle game where you build automated factories to sort robots based on their colored tape patterns. Robots enter your factory carrying sequences of colored tape, and you must route them to the correct destinations based on the given criteria.\n\n## Game Mechanics\n\n### Robots and Tape\n- **Robots**: Each robot carries a sequence of colored tapes\n- **Tape Colors**: Primary colors are Blue (B) and Red (R), with additional Yellow (Y) and Green (G) for advanced puzzles\n- **Tape Representation**: Sequences are represented as strings (e.g., `RBRR`, `BBR`, or empty string `\"\"`)\n\n### Operations\n- **Pull**: Remove tape from the front of the robot's sequence\n- **Paint**: Add colored tape to the end of the robot's sequence\n- **Route**: Direct robots through the factory based on their current tape state\n\n### Objective (output check)\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node and meets the puzzle's acceptance criteria\n- **Rejected**: Robot is routed to the NONE node, or caught in an infinite loop, or robot reaches the END node but fails to meet the puzzle's acceptance criteria \n\n## DSL Syntax\n\n### Program Structure\n\nEvery solution must start with a `START` directive and end with an `END` directive, wrapped in ```manufactoria ...```:\n\n```manufactoria\nSTART start:\n NEXT <next_node_id>\n\n# Factory logic goes here\n\nEND end\n```\n\n### Node Types\n\n#### 1. Puller Nodes\n\nPullers remove specific colors from the front of the robot's tape sequence and route based on the current front color.\n\n**Red/Blue Puller:**\n\n```manufactoria\nPULLER_RB <node_id>:\n [R] <next_node_id> # Route and remove color if front tape is Red\n [B] <next_node_id> # Route and remove color if front tape is Blue\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither red nor blue\n```\n\n**Yellow/Green Puller:**\n\n```manufactoria\nPULLER_YG <node_id>:\n [Y] <next_node_id> # Route and remove color if front tape is Yellow\n [G] <next_node_id> # Route and remove color if front tape is Green\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither yellow nor green\n```\n\n**Note**: Unspecified branches default to `NONE`, which rejects the robot.\n\n#### 2. Painter Nodes\n\nPainters add colored tape to the end of the robot's sequence and continue to the next node.\n\n```manufactoria\nPAINTER_RED <node_id>:\n NEXT <next_node_id>\n\nPAINTER_BLUE <node_id>:\n NEXT <next_node_id>\n\nPAINTER_YELLOW <node_id>:\n NEXT <next_node_id>\n\nPAINTER_GREEN <node_id>:\n NEXT <next_node_id>\n```\n\n## Syntax Rules\n\n1. **Node IDs**: Must be unique identifiers (alphanumeric characters and underscores only)\n2. **Comments**: Lines starting with `#` are comments (single-line only)\n3. **Indentation**: Use consistent spaces or tabs for route definitions\n4. **Case Sensitivity**: Colors must be uppercase (R, B, Y, G)\n5. **Termination**: \n - Robots routed to `NONE` are rejected\n - Robots routed to the END node are accepted if they meet the puzzle criteria, otherwise rejected\n6. **Code Blocks**: Final factory code should be wrapped in triple backticks with ``` markers\n\n## Example\n\nHere's a simple example that accepts robots with exactly one red tape (ending tape should be empty):\n\n```manufactoria\nSTART start:\n NEXT entry\n\nPULLER_RB entry:\n [R] end\n\nEND end\n```\n\n# Task \nYour task is to design a factory with code with following functionality:\n\nRemove patterns RB, then put 'BBBR' at the beginning of the tape. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": true,
"description": "Input '' β mutated: '' β output: 'BBBR'",
"expected_accepted": true,
"expected_output": "BBBR",
"input": ""
},
{
"check_output": true,
"description": "Input 'R' β mutated: 'R' β output: 'BBBRR'",
"expected_accepted": true,
"expected_output": "BBBRR",
"input": "R"
},
{
"check_output": true,
"description": "Input 'RB' β mutated: '' β output: 'BBBR'",
"expected_accepted": true,
"expected_output": "BBBR",
"input": "RB"
},
{
"check_output": true,
"description": "Input 'BBR' β mutated: 'BBR' β output: 'BBBRBBR'",
"expected_accepted": true,
"expected_output": "BBBRBBR",
"input": "BBR"
},
{
"check_output": true,
"description": "Input 'RBR' β mutated: 'R' β output: 'BBBRR'",
"expected_accepted": true,
"expected_output": "BBBRR",
"input": "RBR"
},
{
"check_output": true,
"description": "Input 'RRB' β mutated: 'R' β output: 'BBBRR'",
"expected_accepted": true,
"expected_output": "BBBRR",
"input": "RRB"
},
{
"check_output": true,
"description": "Input 'B' β mutated: 'B' β output: 'BBBRB'",
"expected_accepted": true,
"expected_output": "BBBRB",
"input": "B"
},
{
"check_output": true,
"description": "Input 'RR' β mutated: 'RR' β output: 'BBBRRR'",
"expected_accepted": true,
"expected_output": "BBBRRR",
"input": "RR"
},
{
"check_output": true,
"description": "Input 'BR' β mutated: 'BR' β output: 'BBBRBR'",
"expected_accepted": true,
"expected_output": "BBBRBR",
"input": "BR"
},
{
"check_output": true,
"description": "Input 'BRB' β mutated: 'B' β output: 'BBBRB'",
"expected_accepted": true,
"expected_output": "BBBRB",
"input": "BRB"
},
{
"check_output": true,
"description": "Input 'BB' β mutated: 'BB' β output: 'BBBRBB'",
"expected_accepted": true,
"expected_output": "BBBRBB",
"input": "BB"
},
{
"check_output": true,
"description": "Input 'RBRB' β mutated: '' β output: 'BBBR'",
"expected_accepted": true,
"expected_output": "BBBR",
"input": "RBRB"
},
{
"check_output": true,
"description": "Input 'BBB' β mutated: 'BBB' β output: 'BBBRBBB'",
"expected_accepted": true,
"expected_output": "BBBRBBB",
"input": "BBB"
},
{
"check_output": true,
"description": "Input 'RRR' β mutated: 'RRR' β output: 'BBBRRRR'",
"expected_accepted": true,
"expected_output": "BBBRRRR",
"input": "RRR"
},
{
"check_output": true,
"description": "Input 'BRBR' β mutated: 'BR' β output: 'BBBRBR'",
"expected_accepted": true,
"expected_output": "BBBRBR",
"input": "BRBR"
},
{
"check_output": true,
"description": "Input 'BRRRRRBB' β mutated: 'BRRRRB' β output: 'BBBRBRRRRB'",
"expected_accepted": true,
"expected_output": "BBBRBRRRRB",
"input": "BRRRRRBB"
},
{
"check_output": true,
"description": "Input 'BRRBBBRBBBRB' β mutated: 'BRBBBB' β output: 'BBBRBRBBBB'",
"expected_accepted": true,
"expected_output": "BBBRBRBBBB",
"input": "BRRBBBRBBBRB"
}
] |
manufactoria
|
hard
|
c75a111f-e9ff-4f5f-b096-87f6418c6f61
|
prepend_sequence
|
Prepend BBBR after Remove patterns RB
|
[
{
"content": "# Manufactoria Solution DSL\n\nA Domain Specific Language for describing Manufactoria puzzle solutions in text format.\n\n## Overview\n\nManufactoria is a puzzle game where you build automated factories to sort robots based on their colored tape patterns. Robots enter your factory carrying sequences of colored tape, and you must route them to the correct destinations based on the given criteria.\n\n## Game Mechanics\n\n### Robots and Tape\n- **Robots**: Each robot carries a sequence of colored tapes\n- **Tape Colors**: Primary colors are Blue (B) and Red (R), with additional Yellow (Y) and Green (G) for advanced puzzles\n- **Tape Representation**: Sequences are represented as strings (e.g., `RBRR`, `BBR`, or empty string `\"\"`)\n\n### Operations\n- **Pull**: Remove tape from the front of the robot's sequence\n- **Paint**: Add colored tape to the end of the robot's sequence\n- **Route**: Direct robots through the factory based on their current tape state\n\n### Objective (output check)\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node and meets the puzzle's acceptance criteria\n- **Rejected**: Robot is routed to the NONE node, or caught in an infinite loop, or robot reaches the END node but fails to meet the puzzle's acceptance criteria \n\n## DSL Syntax\n\n### Program Structure\n\nEvery solution must start with a `START` directive and end with an `END` directive, wrapped in ```manufactoria ...```:\n\n```manufactoria\nSTART start:\n NEXT <next_node_id>\n\n# Factory logic goes here\n\nEND end\n```\n\n### Node Types\n\n#### 1. Puller Nodes\n\nPullers remove specific colors from the front of the robot's tape sequence and route based on the current front color.\n\n**Red/Blue Puller:**\n\n```manufactoria\nPULLER_RB <node_id>:\n [R] <next_node_id> # Route and remove color if front tape is Red\n [B] <next_node_id> # Route and remove color if front tape is Blue\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither red nor blue\n```\n\n**Yellow/Green Puller:**\n\n```manufactoria\nPULLER_YG <node_id>:\n [Y] <next_node_id> # Route and remove color if front tape is Yellow\n [G] <next_node_id> # Route and remove color if front tape is Green\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither yellow nor green\n```\n\n**Note**: Unspecified branches default to `NONE`, which rejects the robot.\n\n#### 2. Painter Nodes\n\nPainters add colored tape to the end of the robot's sequence and continue to the next node.\n\n```manufactoria\nPAINTER_RED <node_id>:\n NEXT <next_node_id>\n\nPAINTER_BLUE <node_id>:\n NEXT <next_node_id>\n\nPAINTER_YELLOW <node_id>:\n NEXT <next_node_id>\n\nPAINTER_GREEN <node_id>:\n NEXT <next_node_id>\n```\n\n## Syntax Rules\n\n1. **Node IDs**: Must be unique identifiers (alphanumeric characters and underscores only)\n2. **Comments**: Lines starting with `#` are comments (single-line only)\n3. **Indentation**: Use consistent spaces or tabs for route definitions\n4. **Case Sensitivity**: Colors must be uppercase (R, B, Y, G)\n5. **Termination**: \n - Robots routed to `NONE` are rejected\n - Robots routed to the END node are accepted if they meet the puzzle criteria, otherwise rejected\n6. **Code Blocks**: Final factory code should be wrapped in triple backticks with ``` markers\n\n## Example\n\nHere's a simple example that accepts robots with exactly one red tape (ending tape should be empty):\n\n```manufactoria\nSTART start:\n NEXT entry\n\nPULLER_RB entry:\n [R] end\n\nEND end\n```\n\n# Task \nYour task is to design a factory with code with following functionality:\n\nReplace patterns RR with BB, then put 'BBBR' at the beginning of the tape. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": true,
"description": "Input '' β mutated: '' β output: 'BBBR'",
"expected_accepted": true,
"expected_output": "BBBR",
"input": ""
},
{
"check_output": true,
"description": "Input 'R' β mutated: 'R' β output: 'BBBRR'",
"expected_accepted": true,
"expected_output": "BBBRR",
"input": "R"
},
{
"check_output": true,
"description": "Input 'RB' β mutated: 'RB' β output: 'BBBRRB'",
"expected_accepted": true,
"expected_output": "BBBRRB",
"input": "RB"
},
{
"check_output": true,
"description": "Input 'BBR' β mutated: 'BBR' β output: 'BBBRBBR'",
"expected_accepted": true,
"expected_output": "BBBRBBR",
"input": "BBR"
},
{
"check_output": true,
"description": "Input 'RBR' β mutated: 'RBR' β output: 'BBBRRBR'",
"expected_accepted": true,
"expected_output": "BBBRRBR",
"input": "RBR"
},
{
"check_output": true,
"description": "Input 'RRB' β mutated: 'BBB' β output: 'BBBRBBB'",
"expected_accepted": true,
"expected_output": "BBBRBBB",
"input": "RRB"
},
{
"check_output": true,
"description": "Input 'RR' β mutated: 'BB' β output: 'BBBRBB'",
"expected_accepted": true,
"expected_output": "BBBRBB",
"input": "RR"
},
{
"check_output": true,
"description": "Input 'BR' β mutated: 'BR' β output: 'BBBRBR'",
"expected_accepted": true,
"expected_output": "BBBRBR",
"input": "BR"
},
{
"check_output": true,
"description": "Input 'BRB' β mutated: 'BRB' β output: 'BBBRBRB'",
"expected_accepted": true,
"expected_output": "BBBRBRB",
"input": "BRB"
},
{
"check_output": true,
"description": "Input 'B' β mutated: 'B' β output: 'BBBRB'",
"expected_accepted": true,
"expected_output": "BBBRB",
"input": "B"
},
{
"check_output": true,
"description": "Input 'BB' β mutated: 'BB' β output: 'BBBRBB'",
"expected_accepted": true,
"expected_output": "BBBRBB",
"input": "BB"
},
{
"check_output": true,
"description": "Input 'BBRB' β mutated: 'BBRB' β output: 'BBBRBBRB'",
"expected_accepted": true,
"expected_output": "BBBRBBRB",
"input": "BBRB"
},
{
"check_output": true,
"description": "Input 'BBB' β mutated: 'BBB' β output: 'BBBRBBB'",
"expected_accepted": true,
"expected_output": "BBBRBBB",
"input": "BBB"
},
{
"check_output": true,
"description": "Input 'RRR' β mutated: 'BBR' β output: 'BBBRBBR'",
"expected_accepted": true,
"expected_output": "BBBRBBR",
"input": "RRR"
},
{
"check_output": true,
"description": "Input 'BRBR' β mutated: 'BRBR' β output: 'BBBRBRBR'",
"expected_accepted": true,
"expected_output": "BBBRBRBR",
"input": "BRBR"
},
{
"check_output": true,
"description": "Input 'RBRB' β mutated: 'RBRB' β output: 'BBBRRBRB'",
"expected_accepted": true,
"expected_output": "BBBRRBRB",
"input": "RBRB"
},
{
"check_output": true,
"description": "Input 'BBBRBRRR' β mutated: 'BBBRBBBR' β output: 'BBBRBBBRBBBR'",
"expected_accepted": true,
"expected_output": "BBBRBBBRBBBR",
"input": "BBBRBRRR"
},
{
"check_output": true,
"description": "Input 'BRRRRBRBRRBB' β mutated: 'BBBBBBRBBBBB' β output: 'BBBRBBBBBBRBBBBB'",
"expected_accepted": true,
"expected_output": "BBBRBBBBBBRBBBBB",
"input": "BRRRRBRBRRBB"
}
] |
manufactoria
|
hard
|
de0ad2e7-9ecd-428f-a5d7-b803aa04ab15
|
prepend_sequence
|
Prepend BBBR after Replace patterns RR with BB
|
[
{
"content": "# Manufactoria Solution DSL\n\nA Domain Specific Language for describing Manufactoria puzzle solutions in text format.\n\n## Overview\n\nManufactoria is a puzzle game where you build automated factories to sort robots based on their colored tape patterns. Robots enter your factory carrying sequences of colored tape, and you must route them to the correct destinations based on the given criteria.\n\n## Game Mechanics\n\n### Robots and Tape\n- **Robots**: Each robot carries a sequence of colored tapes\n- **Tape Colors**: Primary colors are Blue (B) and Red (R), with additional Yellow (Y) and Green (G) for advanced puzzles\n- **Tape Representation**: Sequences are represented as strings (e.g., `RBRR`, `BBR`, or empty string `\"\"`)\n\n### Operations\n- **Pull**: Remove tape from the front of the robot's sequence\n- **Paint**: Add colored tape to the end of the robot's sequence\n- **Route**: Direct robots through the factory based on their current tape state\n\n### Objective (output check)\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node and meets the puzzle's acceptance criteria\n- **Rejected**: Robot is routed to the NONE node, or caught in an infinite loop, or robot reaches the END node but fails to meet the puzzle's acceptance criteria \n\n## DSL Syntax\n\n### Program Structure\n\nEvery solution must start with a `START` directive and end with an `END` directive, wrapped in ```manufactoria ...```:\n\n```manufactoria\nSTART start:\n NEXT <next_node_id>\n\n# Factory logic goes here\n\nEND end\n```\n\n### Node Types\n\n#### 1. Puller Nodes\n\nPullers remove specific colors from the front of the robot's tape sequence and route based on the current front color.\n\n**Red/Blue Puller:**\n\n```manufactoria\nPULLER_RB <node_id>:\n [R] <next_node_id> # Route and remove color if front tape is Red\n [B] <next_node_id> # Route and remove color if front tape is Blue\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither red nor blue\n```\n\n**Yellow/Green Puller:**\n\n```manufactoria\nPULLER_YG <node_id>:\n [Y] <next_node_id> # Route and remove color if front tape is Yellow\n [G] <next_node_id> # Route and remove color if front tape is Green\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither yellow nor green\n```\n\n**Note**: Unspecified branches default to `NONE`, which rejects the robot.\n\n#### 2. Painter Nodes\n\nPainters add colored tape to the end of the robot's sequence and continue to the next node.\n\n```manufactoria\nPAINTER_RED <node_id>:\n NEXT <next_node_id>\n\nPAINTER_BLUE <node_id>:\n NEXT <next_node_id>\n\nPAINTER_YELLOW <node_id>:\n NEXT <next_node_id>\n\nPAINTER_GREEN <node_id>:\n NEXT <next_node_id>\n```\n\n## Syntax Rules\n\n1. **Node IDs**: Must be unique identifiers (alphanumeric characters and underscores only)\n2. **Comments**: Lines starting with `#` are comments (single-line only)\n3. **Indentation**: Use consistent spaces or tabs for route definitions\n4. **Case Sensitivity**: Colors must be uppercase (R, B, Y, G)\n5. **Termination**: \n - Robots routed to `NONE` are rejected\n - Robots routed to the END node are accepted if they meet the puzzle criteria, otherwise rejected\n6. **Code Blocks**: Final factory code should be wrapped in triple backticks with ``` markers\n\n## Example\n\nHere's a simple example that accepts robots with exactly one red tape (ending tape should be empty):\n\n```manufactoria\nSTART start:\n NEXT entry\n\nPULLER_RB entry:\n [R] end\n\nEND end\n```\n\n# Task \nYour task is to design a factory with code with following functionality:\n\nRemove patterns RR, then put 'BBR' at the beginning of the tape. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": true,
"description": "Input '' β mutated: '' β output: 'BBR'",
"expected_accepted": true,
"expected_output": "BBR",
"input": ""
},
{
"check_output": true,
"description": "Input 'R' β mutated: 'R' β output: 'BBRR'",
"expected_accepted": true,
"expected_output": "BBRR",
"input": "R"
},
{
"check_output": true,
"description": "Input 'RB' β mutated: 'RB' β output: 'BBRRB'",
"expected_accepted": true,
"expected_output": "BBRRB",
"input": "RB"
},
{
"check_output": true,
"description": "Input 'BBR' β mutated: 'BBR' β output: 'BBRBBR'",
"expected_accepted": true,
"expected_output": "BBRBBR",
"input": "BBR"
},
{
"check_output": true,
"description": "Input 'RBR' β mutated: 'RBR' β output: 'BBRRBR'",
"expected_accepted": true,
"expected_output": "BBRRBR",
"input": "RBR"
},
{
"check_output": true,
"description": "Input 'RRB' β mutated: 'B' β output: 'BBRB'",
"expected_accepted": true,
"expected_output": "BBRB",
"input": "RRB"
},
{
"check_output": true,
"description": "Input 'B' β mutated: 'B' β output: 'BBRB'",
"expected_accepted": true,
"expected_output": "BBRB",
"input": "B"
},
{
"check_output": true,
"description": "Input 'BRB' β mutated: 'BRB' β output: 'BBRBRB'",
"expected_accepted": true,
"expected_output": "BBRBRB",
"input": "BRB"
},
{
"check_output": true,
"description": "Input 'BR' β mutated: 'BR' β output: 'BBRBR'",
"expected_accepted": true,
"expected_output": "BBRBR",
"input": "BR"
},
{
"check_output": true,
"description": "Input 'BB' β mutated: 'BB' β output: 'BBRBB'",
"expected_accepted": true,
"expected_output": "BBRBB",
"input": "BB"
},
{
"check_output": true,
"description": "Input 'RR' β mutated: '' β output: 'BBR'",
"expected_accepted": true,
"expected_output": "BBR",
"input": "RR"
},
{
"check_output": true,
"description": "Input 'RBBB' β mutated: 'RBBB' β output: 'BBRRBBB'",
"expected_accepted": true,
"expected_output": "BBRRBBB",
"input": "RBBB"
},
{
"check_output": true,
"description": "Input 'BBB' β mutated: 'BBB' β output: 'BBRBBB'",
"expected_accepted": true,
"expected_output": "BBRBBB",
"input": "BBB"
},
{
"check_output": true,
"description": "Input 'RRR' β mutated: 'R' β output: 'BBRR'",
"expected_accepted": true,
"expected_output": "BBRR",
"input": "RRR"
},
{
"check_output": true,
"description": "Input 'BRBR' β mutated: 'BRBR' β output: 'BBRBRBR'",
"expected_accepted": true,
"expected_output": "BBRBRBR",
"input": "BRBR"
},
{
"check_output": true,
"description": "Input 'RBRB' β mutated: 'RBRB' β output: 'BBRRBRB'",
"expected_accepted": true,
"expected_output": "BBRRBRB",
"input": "RBRB"
},
{
"check_output": true,
"description": "Input 'RRBRBRRB' β mutated: 'BRBB' β output: 'BBRBRBB'",
"expected_accepted": true,
"expected_output": "BBRBRBB",
"input": "RRBRBRRB"
},
{
"check_output": true,
"description": "Input 'BRRBRBRBBRRR' β mutated: 'BBRBRBBR' β output: 'BBRBBRBRBBR'",
"expected_accepted": true,
"expected_output": "BBRBBRBRBBR",
"input": "BRRBRBRBBRRR"
}
] |
manufactoria
|
hard
|
d8452551-6d5b-4d43-bfb9-67cd90f16dde
|
prepend_sequence
|
Prepend BBR after Remove patterns RR
|
[
{
"content": "# Manufactoria Solution DSL\n\nA Domain Specific Language for describing Manufactoria puzzle solutions in text format.\n\n## Overview\n\nManufactoria is a puzzle game where you build automated factories to sort robots based on their colored tape patterns. Robots enter your factory carrying sequences of colored tape, and you must route them to the correct destinations based on the given criteria.\n\n## Game Mechanics\n\n### Robots and Tape\n- **Robots**: Each robot carries a sequence of colored tapes\n- **Tape Colors**: Primary colors are Blue (B) and Red (R), with additional Yellow (Y) and Green (G) for advanced puzzles\n- **Tape Representation**: Sequences are represented as strings (e.g., `RBRR`, `BBR`, or empty string `\"\"`)\n\n### Operations\n- **Pull**: Remove tape from the front of the robot's sequence\n- **Paint**: Add colored tape to the end of the robot's sequence\n- **Route**: Direct robots through the factory based on their current tape state\n\n### Objective (output check)\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node and meets the puzzle's acceptance criteria\n- **Rejected**: Robot is routed to the NONE node, or caught in an infinite loop, or robot reaches the END node but fails to meet the puzzle's acceptance criteria \n\n## DSL Syntax\n\n### Program Structure\n\nEvery solution must start with a `START` directive and end with an `END` directive, wrapped in ```manufactoria ...```:\n\n```manufactoria\nSTART start:\n NEXT <next_node_id>\n\n# Factory logic goes here\n\nEND end\n```\n\n### Node Types\n\n#### 1. Puller Nodes\n\nPullers remove specific colors from the front of the robot's tape sequence and route based on the current front color.\n\n**Red/Blue Puller:**\n\n```manufactoria\nPULLER_RB <node_id>:\n [R] <next_node_id> # Route and remove color if front tape is Red\n [B] <next_node_id> # Route and remove color if front tape is Blue\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither red nor blue\n```\n\n**Yellow/Green Puller:**\n\n```manufactoria\nPULLER_YG <node_id>:\n [Y] <next_node_id> # Route and remove color if front tape is Yellow\n [G] <next_node_id> # Route and remove color if front tape is Green\n [EMPTY] <next_node_id> # Route if no tape or front tape is neither yellow nor green\n```\n\n**Note**: Unspecified branches default to `NONE`, which rejects the robot.\n\n#### 2. Painter Nodes\n\nPainters add colored tape to the end of the robot's sequence and continue to the next node.\n\n```manufactoria\nPAINTER_RED <node_id>:\n NEXT <next_node_id>\n\nPAINTER_BLUE <node_id>:\n NEXT <next_node_id>\n\nPAINTER_YELLOW <node_id>:\n NEXT <next_node_id>\n\nPAINTER_GREEN <node_id>:\n NEXT <next_node_id>\n```\n\n## Syntax Rules\n\n1. **Node IDs**: Must be unique identifiers (alphanumeric characters and underscores only)\n2. **Comments**: Lines starting with `#` are comments (single-line only)\n3. **Indentation**: Use consistent spaces or tabs for route definitions\n4. **Case Sensitivity**: Colors must be uppercase (R, B, Y, G)\n5. **Termination**: \n - Robots routed to `NONE` are rejected\n - Robots routed to the END node are accepted if they meet the puzzle criteria, otherwise rejected\n6. **Code Blocks**: Final factory code should be wrapped in triple backticks with ``` markers\n\n## Example\n\nHere's a simple example that accepts robots with exactly one red tape (ending tape should be empty):\n\n```manufactoria\nSTART start:\n NEXT entry\n\nPULLER_RB entry:\n [R] end\n\nEND end\n```\n\n# Task \nYour task is to design a factory with code with following functionality:\n\nReplace patterns RR with BB, then put 'RBBB' at the beginning of the tape. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": true,
"description": "Input '' β mutated: '' β output: 'RBBB'",
"expected_accepted": true,
"expected_output": "RBBB",
"input": ""
},
{
"check_output": true,
"description": "Input 'R' β mutated: 'R' β output: 'RBBBR'",
"expected_accepted": true,
"expected_output": "RBBBR",
"input": "R"
},
{
"check_output": true,
"description": "Input 'RB' β mutated: 'RB' β output: 'RBBBRB'",
"expected_accepted": true,
"expected_output": "RBBBRB",
"input": "RB"
},
{
"check_output": true,
"description": "Input 'BBR' β mutated: 'BBR' β output: 'RBBBBBR'",
"expected_accepted": true,
"expected_output": "RBBBBBR",
"input": "BBR"
},
{
"check_output": true,
"description": "Input 'RBR' β mutated: 'RBR' β output: 'RBBBRBR'",
"expected_accepted": true,
"expected_output": "RBBBRBR",
"input": "RBR"
},
{
"check_output": true,
"description": "Input 'RRB' β mutated: 'BBB' β output: 'RBBBBBB'",
"expected_accepted": true,
"expected_output": "RBBBBBB",
"input": "RRB"
},
{
"check_output": true,
"description": "Input 'BRB' β mutated: 'BRB' β output: 'RBBBBRB'",
"expected_accepted": true,
"expected_output": "RBBBBRB",
"input": "BRB"
},
{
"check_output": true,
"description": "Input 'BR' β mutated: 'BR' β output: 'RBBBBR'",
"expected_accepted": true,
"expected_output": "RBBBBR",
"input": "BR"
},
{
"check_output": true,
"description": "Input 'BB' β mutated: 'BB' β output: 'RBBBBB'",
"expected_accepted": true,
"expected_output": "RBBBBB",
"input": "BB"
},
{
"check_output": true,
"description": "Input 'B' β mutated: 'B' β output: 'RBBBB'",
"expected_accepted": true,
"expected_output": "RBBBB",
"input": "B"
},
{
"check_output": true,
"description": "Input 'RR' β mutated: 'BB' β output: 'RBBBBB'",
"expected_accepted": true,
"expected_output": "RBBBBB",
"input": "RR"
},
{
"check_output": true,
"description": "Input 'BRRB' β mutated: 'BBBB' β output: 'RBBBBBBB'",
"expected_accepted": true,
"expected_output": "RBBBBBBB",
"input": "BRRB"
},
{
"check_output": true,
"description": "Input 'BBB' β mutated: 'BBB' β output: 'RBBBBBB'",
"expected_accepted": true,
"expected_output": "RBBBBBB",
"input": "BBB"
},
{
"check_output": true,
"description": "Input 'RRR' β mutated: 'BBR' β output: 'RBBBBBR'",
"expected_accepted": true,
"expected_output": "RBBBBBR",
"input": "RRR"
},
{
"check_output": true,
"description": "Input 'BRBR' β mutated: 'BRBR' β output: 'RBBBBRBR'",
"expected_accepted": true,
"expected_output": "RBBBBRBR",
"input": "BRBR"
},
{
"check_output": true,
"description": "Input 'RBRB' β mutated: 'RBRB' β output: 'RBBBRBRB'",
"expected_accepted": true,
"expected_output": "RBBBRBRB",
"input": "RBRB"
},
{
"check_output": true,
"description": "Input 'BBRBRRBR' β mutated: 'BBRBBBBR' β output: 'RBBBBBRBBBBR'",
"expected_accepted": true,
"expected_output": "RBBBBBRBBBBR",
"input": "BBRBRRBR"
},
{
"check_output": true,
"description": "Input 'RBRRRRRRRBRB' β mutated: 'RBBBBBBBRBRB' β output: 'RBBBRBBBBBBBRBRB'",
"expected_accepted": true,
"expected_output": "RBBBRBBBBBBBRBRB",
"input": "RBRRRRRRRBRB"
}
] |
manufactoria
|
hard
|
5e309773-99e5-4072-ab52-74034a94c815
|
prepend_sequence
|
Prepend RBBB after Replace patterns RR with BB
|
End of preview. Expand
in Data Studio
- Downloads last month
- 11