messages
listlengths 1
1
| ground_truth
listlengths 16
21
| dataset
stringclasses 1
value | difficulty
stringclasses 2
values | id
stringlengths 36
36
| problem_family
stringclasses 1
value | name
stringlengths 12
16
|
|---|---|---|---|---|---|---|
[
{
"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\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node\n- **Rejected**: Robot is not routed to the END node or caught in an infinite loop. \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\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\nAccept if the tape ends with BBRRBR; reject otherwise. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": ""
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "R"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "B"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BBRRBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RBBRRBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBRRBRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BBRRRBRBBBBRRBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RRRBBBRBBBBRRRBBBRRBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BBRRBRBBRRBRBBRRBRBRRBBRRBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBRRBRRBRBRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRBBBRRBRRRBRRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBBBBBBBRRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRRBRBBRRBB"
}
] |
manufactoria
|
medium
|
36b0ae4e-7fe0-4ec8-8e82-abf59ab90ad1
|
ends_with
|
Ends with BBRRBR
|
[
{
"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\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node\n- **Rejected**: Robot is not routed to the END node or caught in an infinite loop. \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\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\nAccept if the tape ends with BBBBRB; reject otherwise. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": ""
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "R"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "B"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BBBBRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RBBBBRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBBBRBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BBRRRBBRRBBBBRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BBBRRBBBBRRBRBBBBBBRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BBBBRBBBBBRBBBBBRBRBRBBBBRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBBBRBRBBBRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBBBBBBRBRRBRBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBBRBRBBBBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRRRBBBBBRR"
}
] |
manufactoria
|
medium
|
050a4392-8882-45ef-9327-b620762968c2
|
ends_with
|
Ends with BBBBRB
|
[
{
"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\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node\n- **Rejected**: Robot is not routed to the END node or caught in an infinite loop. \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\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\nAccept if the tape ends with BR; reject otherwise. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": ""
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "R"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BRBBRRBRBBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BBRBRRBRBBBRBBBBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BRBRBRBBBBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BRRRBRBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBBBRRRBRBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRBBRBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRRBBBB"
}
] |
manufactoria
|
easy
|
10b81fa8-3dbb-43d5-a598-0f2c64841883
|
ends_with
|
Ends 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\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node\n- **Rejected**: Robot is not routed to the END node or caught in an infinite loop. \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\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\nAccept if the tape ends with BBRRR; reject otherwise. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": ""
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "R"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "B"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BBRRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RBBRRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBRRRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BRBRBBBBBBBRRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BBBRBBBRBBBRRRBBBRRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BBRRRBBRRRBBRRRRRRBBRRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBRRRRBRBBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRBBBRRRBBBRRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRBBBBBBRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRBRRBBRRB"
}
] |
manufactoria
|
medium
|
8a6f1512-cee6-423e-af47-1e621f0bf575
|
ends_with
|
Ends with BBRRR
|
[
{
"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\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node\n- **Rejected**: Robot is not routed to the END node or caught in an infinite loop. \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\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\nAccept if the tape ends with RRBBRB; reject otherwise. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": ""
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "R"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RRBBRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RRRBBRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRBBRBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RBBBBRRBBRRBBRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RBRRRBRBRBBRRRBRRBBRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RRBBRBRRBBRBRRBBRBBRRRRBBRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRBBRBRRBBBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBRRRBBRBRRRRBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBRBBRRRBBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBRBRRRBBRR"
}
] |
manufactoria
|
medium
|
8bd81c60-75e3-44cd-afcf-edc749d0b5d4
|
ends_with
|
Ends with RRBBRB
|
[
{
"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\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node\n- **Rejected**: Robot is not routed to the END node or caught in an infinite loop. \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\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\nAccept if the tape ends with BRB; reject otherwise. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": ""
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "R"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "B"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RBRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RBBBBRBBRBRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RRBRBRBBRRBRBRBBRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BRBBRBBRBBBRBRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRBRBRRBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRBBRBRBRRRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBRBRBBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBRRRBRR"
}
] |
manufactoria
|
easy
|
d7411c26-5d72-4564-8778-a360f461b9e0
|
ends_with
|
Ends with BRB
|
[
{
"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\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node\n- **Rejected**: Robot is not routed to the END node or caught in an infinite loop. \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\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\nAccept if the tape ends with RRRBBB; reject otherwise. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": ""
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "R"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "B"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RRRBBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RRRRBBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRRBBBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RRRRBBBRRRRRBBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BRRRRRBBBRRRBBRRRRBBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RRRBBBRRRBBBRRRBBBBRRRRRBBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRRBBBRRBRBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRBRRRBBBRRRBRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRRBBBRRRBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRBBRRRRBBR"
}
] |
manufactoria
|
medium
|
b0708b7b-5bd2-43a1-a6dc-f37b50c726e2
|
ends_with
|
Ends with RRRBBB
|
[
{
"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\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node\n- **Rejected**: Robot is not routed to the END node or caught in an infinite loop. \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\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\nAccept if the tape ends with BBRBBB; reject otherwise. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": ""
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "R"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "B"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BBRBBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RBBRBBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBRBBBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RBRBRRBRBBBRBBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RBBRBRRRBRBRRBBBBRBBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BBRBBBBBRBBBBBRBBBRBRBBRBBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBRBBBBRRBBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBRBBRBBBRRBBBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBRRRBBBRBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRRBBBBRBBR"
}
] |
manufactoria
|
medium
|
6b69fb99-3bb5-4915-8fdc-8586c9e4ef75
|
ends_with
|
Ends with BBRBBB
|
[
{
"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\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node\n- **Rejected**: Robot is not routed to the END node or caught in an infinite loop. \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\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\nAccept if the tape ends with RBBRRR; reject otherwise. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": ""
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "R"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RBBRRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RRBBRRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBBRRRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BRBBRRBRRRBBRRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BBRBBRRRBBRRBRRRBBRRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RBBRRRRBBRRRRBBRRRBRBRBBRRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBBRRRRRRBBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBBRBBRRRBBBRBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBBRRBRBBRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRBBBRBBRRB"
}
] |
manufactoria
|
medium
|
1d553807-9422-4ae3-b68f-97bab1a665ec
|
ends_with
|
Ends with RBBRRR
|
[
{
"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\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node\n- **Rejected**: Robot is not routed to the END node or caught in an infinite loop. \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\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\nAccept if the tape ends with BBB; reject otherwise. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": ""
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "R"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RBBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BRRBBRBRBBBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BRBBBBBBBRRRBBRBBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BBBBBBBBBBBRBBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBBRRRBBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBRBBBBBBBRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BBBRBBBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRRBRBBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRRRRRRRRRRR"
}
] |
manufactoria
|
easy
|
3e2f1700-a535-495f-9bdd-36f4cc360180
|
ends_with
|
Ends with BBB
|
[
{
"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\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node\n- **Rejected**: Robot is not routed to the END node or caught in an infinite loop. \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\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\nAccept if the tape ends with BBBBRR; reject otherwise. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": ""
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "R"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BBBBRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RBBBBRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBBBRRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RRRBRRRBBBBBBRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BBRBRBBRRRRBRRRBBBBRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BBBBRRBBBBRRBBBBRRBRRBBBBRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBBBRRRRRBRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBBBBBBRRRRRRRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBRRRBBBBBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBRRBBBBBRB"
}
] |
manufactoria
|
medium
|
db6995d3-bbb0-4b3e-9ef4-809a0883c0d2
|
ends_with
|
Ends with BBBBRR
|
[
{
"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\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node\n- **Rejected**: Robot is not routed to the END node or caught in an infinite loop. \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\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\nAccept if the tape ends with RRBB; reject otherwise. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": ""
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "R"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RRBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RRRBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRBBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RBBRRBRRRRRBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BBRBRRBRRBBRBBBRRBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RRBBRRBBRRBBBRRRRBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRBBBBBRBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBRRRBBRRRBBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBRBRBRRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBBBRRRBR"
}
] |
manufactoria
|
medium
|
e5fed9e4-26ce-4c6a-bde0-c65e6d2b6d39
|
ends_with
|
Ends with RRBB
|
[
{
"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\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node\n- **Rejected**: Robot is not routed to the END node or caught in an infinite loop. \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\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\nAccept if the tape ends with BBBR; reject otherwise. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": ""
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "R"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "B"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BBBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RBBBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBBRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RBRBRBBBBBBBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RRRBBRRRBRRRRBBBBBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BBBRBBBRBBBRRRRBBBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBBRRBRRRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRRBBBRBRBBRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBRBRBBBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRBRBBBBB"
}
] |
manufactoria
|
medium
|
b9bfc81d-a44a-412d-94cf-bd21986b2a6c
|
ends_with
|
Ends with BBBR
|
[
{
"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\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node\n- **Rejected**: Robot is not routed to the END node or caught in an infinite loop. \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\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\nAccept if the tape ends with RRRRB; reject otherwise. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": ""
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "R"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RRRRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RRRRRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRRRBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BBBRBRBRRRRRRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BBRRRBRRBBRRBBRRRRRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RRRRBRRRRBRRRRBBBRRRRRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRRRBRBBRBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBRRRRRBRRRRRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRRBRRRRRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRRRRRRRRR"
}
] |
manufactoria
|
medium
|
77dfb4cc-b598-4d17-8107-810407c7bccf
|
ends_with
|
Ends with RRRRB
|
[
{
"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\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node\n- **Rejected**: Robot is not routed to the END node or caught in an infinite loop. \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\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\nAccept if the tape ends with RRBRB; reject otherwise. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": ""
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "R"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RRBRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RRRBRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRBRBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RBBRRRBRRRRBRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BBRRBRBBRRRRBBRRRBRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RRBRBRRBRBRRBRBBBRRRBRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRBRBRRRBRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRRRRBRBRBBRRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBBRRBRRBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRBRBRRBRR"
}
] |
manufactoria
|
medium
|
7a820c64-cdac-4a5e-aee0-6a1a3b67651f
|
ends_with
|
Ends with RRBRB
|
[
{
"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\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node\n- **Rejected**: Robot is not routed to the END node or caught in an infinite loop. \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\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\nAccept if the tape ends with BRRRRR; reject otherwise. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": ""
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "R"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BRRRRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RBRRRRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRRRRRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BRBRRBBBRBRRRRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BBBBRBRRBRRRRBRBRRRRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BRRRRRBRRRRRBRRRRRBBBBRRRRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRRRRRBBRRBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBRBRRRRRRRRBBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBRBRRBRRRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBBBRBRRRRB"
}
] |
manufactoria
|
medium
|
58513b16-8616-49fe-9356-783b3c20bd1f
|
ends_with
|
Ends with BRRRRR
|
[
{
"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\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node\n- **Rejected**: Robot is not routed to the END node or caught in an infinite loop. \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\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\nAccept if the tape ends with RB; reject otherwise. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": ""
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "R"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "B"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BRBRRBRRBRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RBBBRRRBBBBRBRRRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RBRBRBBBBRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBBRRRRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BRRRBRBBBRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRBBBBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRRRRRR"
}
] |
manufactoria
|
easy
|
a3a2c74c-5761-432d-a045-e03d231c125c
|
ends_with
|
Ends 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\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node\n- **Rejected**: Robot is not routed to the END node or caught in an infinite loop. \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\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\nAccept if the tape ends with RRRR; reject otherwise. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": ""
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "R"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RRRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RRRRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RRBBRBBRRRRRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BBRBBRBBBRRRBRBRRRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RRRRRRRRRRRRRBRRRRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRRRRRRBRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRRRRRRBRRBRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRRRRBRRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRBRBRRRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBBBBBBBBBBB"
}
] |
manufactoria
|
medium
|
fdc8fa1d-6795-4ae1-8773-145552445317
|
ends_with
|
Ends with RRRR
|
[
{
"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\nRoute robots to the correct destinations based on their final tape configuration and the puzzle requirements:\n- **Accepted**: Robot reaches the END node\n- **Rejected**: Robot is not routed to the END node or caught in an infinite loop. \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\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\nAccept if the tape ends with RBRRBB; reject otherwise. The input tape carries only red/blue colors.",
"role": "user"
}
] |
[
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": ""
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "R"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "B"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RBRRBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RRBRRBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBRRBBR"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RRBBBBRRBRBRRBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "BBRBBRRBBBRBBRRRBRRBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": true,
"expected_output": "",
"input": "RBRRBBRBRRBBRBRRBBRRRRBRRBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RBRRBBRBBRBB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRBRBRRBBBBBRRR"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "RRBBRRRBRRB"
},
{
"check_output": false,
"description": "",
"expected_accepted": false,
"expected_output": "",
"input": "BBRRRRBRRBR"
}
] |
manufactoria
|
medium
|
4d4b6262-ee77-4298-9cce-a7858b7769d3
|
ends_with
|
Ends with RBRRBB
|
README.md exists but content is empty.
- Downloads last month
- 25