Skip to content
HALOWERK

Gamingwerk

game map flood enclosure

Return free-space connected regions and whether each touches the supplied map boundary.

POST https://gaming.halowerk.com/v1/game-map-flood-enclosure

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
widthintegerYes
heightintegerYes
blockedarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "width": {
      "type": "integer",
      "minimum": 1,
      "maximum": 20
    },
    "height": {
      "type": "integer",
      "minimum": 1,
      "maximum": 20
    },
    "blocked": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "x": {
            "type": "integer",
            "minimum": 0,
            "maximum": 19
          },
          "y": {
            "type": "integer",
            "minimum": 0,
            "maximum": 19
          }
        },
        "required": [
          "x",
          "y"
        ],
        "additionalProperties": false
      },
      "maxItems": 400,
      "minItems": 0
    }
  },
  "required": [
    "width",
    "height",
    "blocked"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "width": 3,
  "height": 3,
  "blocked": [
    {
      "x": 1,
      "y": 0
    },
    {
      "x": 0,
      "y": 1
    },
    {
      "x": 2,
      "y": 1
    },
    {
      "x": 1,
      "y": 2
    }
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub โ†’