Skip to content
HALOWERK

Game Development Tools

board nim winning removals

Return the Nim xor value and all single-heap removals that leave a zero-xor position.

POST https://gaming.halowerk.com/v1/board-nim-winning-removals

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
heapsarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "heaps": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 1000000
      },
      "maxItems": 100,
      "minItems": 1
    }
  },
  "required": [
    "heaps"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "heaps": [
    3,
    4,
    5
  ]
}

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