Skip to content
HALOWERK

Gamingwerk

game grid reachable cells

Return four-neighbour tile reachability within a declared move budget.

POST https://gaming.halowerk.com/v1/game-grid-reachable-cells

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
widthintegerYes
heightintegerYes
blockedarrayYes
startReferenceYes
max_stepsintegerYes
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": {
        "$ref": "#/$defs/s0"
      },
      "maxItems": 400,
      "minItems": 0
    },
    "start": {
      "$ref": "#/$defs/s0"
    },
    "max_steps": {
      "type": "integer",
      "minimum": 0,
      "maximum": 400
    }
  },
  "required": [
    "width",
    "height",
    "blocked",
    "start",
    "max_steps"
  ],
  "additionalProperties": false,
  "$id": "urn:h:w3:F1:input",
  "$defs": {
    "s0": {
      "type": "object",
      "properties": {
        "x": {
          "$ref": "#/$defs/s1"
        },
        "y": {
          "$ref": "#/$defs/s1"
        }
      },
      "required": [
        "x",
        "y"
      ],
      "additionalProperties": false
    },
    "s1": {
      "type": "integer",
      "minimum": 0,
      "maximum": 19
    }
  }
}

Open original schema

Published input example

{
  "width": 3,
  "height": 3,
  "blocked": [
    {
      "x": 1,
      "y": 1
    }
  ],
  "start": {
    "x": 0,
    "y": 0
  },
  "max_steps": 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 โ†’