Skip to content
HALOWERK

Game Development Tools

board sokoban legal pushes

Return reachable walking cells and legal box pushes for a supplied Sokoban floor and position.

POST https://gaming.halowerk.com/v1/board-sokoban-legal-pushes

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
boardarrayYes
playerarrayYes
boxesarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "board": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 12,
        "minLength": 1
      },
      "maxItems": 12,
      "minItems": 1
    },
    "player": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 11
      },
      "maxItems": 2,
      "minItems": 2
    },
    "boxes": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "integer",
          "minimum": 0,
          "maximum": 11
        },
        "maxItems": 2,
        "minItems": 2
      },
      "maxItems": 144,
      "minItems": 0
    }
  },
  "required": [
    "board",
    "player",
    "boxes"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "board": [
    "#####",
    "#...#",
    "#...#",
    "#####"
  ],
  "player": [
    1,
    1
  ],
  "boxes": [
    [
      1,
      2
    ]
  ]
}

Result & documentation

Machine-readable documentation of this hub

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

More endpoints in this hub

All endpoints in this hub โ†’