Skip to content
HALOWERK

Game Development Tools

board connectfour winning drops

Return legal drop rows and immediate winning columns for a supplied gravity board.

POST https://gaming.halowerk.com/v1/board-connectfour-winning-drops

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
boardarrayYes
playerSee schemaYes
run_lengthintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "board": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 12,
        "minLength": 1
      },
      "maxItems": 12,
      "minItems": 1
    },
    "player": {
      "enum": [
        "X",
        "O"
      ]
    },
    "run_length": {
      "type": "integer",
      "minimum": 2,
      "maximum": 10
    }
  },
  "required": [
    "board",
    "player",
    "run_length"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "board": [
    "....",
    "....",
    "....",
    "XXX."
  ],
  "player": "X",
  "run_length": 4
}

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 โ†’