TamaraThe specification

TCS taxonomy v0.5

Cut into packets

Experimental: structure may change in a subsequent edition. This page is pinned to v0.5.

Divide cards into a stated number of packets (an incomplete cut)

Source fragment

The following is documentation data, not a standalone document or validation schema. Resolve references against the original source schema.

{
  "id": "cut-into-packets",
  "description": "Divide cards into a stated number of packets (an incomplete cut)",
  "labels": {
    "en": "Cut into packets",
    "es": "Cortar en paquetes",
    "fr": "Couper en paquets",
    "de": "In Pakete schneiden"
  },
  "family_ref": "true-cuts",
  "action_contract": {
    "parameters": {
      "piles": {
        "required": true,
        "description": "Number of resulting packets",
        "domain": "integer >= 2"
      },
      "cut_plan": {
        "required": false,
        "description": "Ordered top-first segment sizes; the last may be rest",
        "domain": "array",
        "default": "unspecified"
      }
    },
    "post_state_invariant": "Every input card occurs in exactly one result packet, in contiguous top-to-bottom segments given by cut_plan (or an unstated composition, when cut_plan is omitted); within-packet relative order is preserved.",
    "post_state": {
      "state_schema_ref": "https://tamaraspec.org/schema/tcs-playing-cards-state-0.1.json",
      "effects": [
        {
          "op": "split",
          "subject": "source",
          "into": {
            "param": "piles"
          },
          "sizes": {
            "param": "cut_plan"
          }
        }
      ]
    }
  }
}

Verbatim JSON · Source: schemas/tcs-taxonomy-0.5.json/verbs/cut-into-packets

See also