Skip to content
HALOWERK

Gamingwerk

game score prize largest remainders

Allocate a declared integer game-prize pool by supplied nonnegative scores using largest remainders.

POST https://gaming.halowerk.com/v1/game-score-prize-largest-remainders

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
prizesintegerYes
scoresarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "prizes": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000
    },
    "scores": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1
          },
          "score": {
            "type": "number",
            "minimum": 0,
            "maximum": 1000000000
          }
        },
        "required": [
          "id",
          "score"
        ],
        "additionalProperties": false
      },
      "maxItems": 100,
      "minItems": 1
    }
  },
  "required": [
    "prizes",
    "scores"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "prizes": 5,
  "scores": [
    {
      "id": "team_A",
      "score": 1
    },
    {
      "id": "team_B",
      "score": 1
    }
  ]
}

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