get_maze
Retrieve a level's brick layout as rectangles and exact 20x20 tiles, with optional ASCII map. Use the expanded tile list to avoid mismatches in destructible terrain.
Instructions
Get a level's brick layout: the rectangles, and those rectangles expanded into the exact 20x20 tiles the level starts with.
Every level has its own maze, and all of the brick in it is destructible — bullets from either side chew through it, so the terrain changes as a round is played. Border walls are separate and indestructible.
Use the expanded tile list rather than expanding the rectangles yourself: that expansion is the step two implementations most easily get subtly different, and a one-tile disagreement changes which shots open a route.
Args: level: The level number. Out-of-range values are clamped. ascii_map: Include a picture of the layout — '#' border, 'B' brick, 'E' enemy entry point, 'A' ally start. Useful for checking a build renders the level you think it does; set false to save context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | Yes | ||
| ascii_map | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |