TamaraThe specification

TCS taxonomy v0.7

Stock Control Shuffle

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

Top and bottom stocks preserved; the rest unconstrained

Source fragment

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

{
  "id": "stock-control-shuffle",
  "description": "Top and bottom stocks preserved; the rest unconstrained",
  "labels": {
    "en": "Stock Control Shuffle",
    "es": "Barajada de Control de Stock",
    "fr": "Mélange avec Contrôle du Stock",
    "de": "Stock-Kontrollmischung"
  },
  "family_ref": "false-shuffles",
  "action_contract": {
    "parameters": {
      "retain_top_count": {
        "required": false,
        "description": "Number of cards at the top of target whose order is preserved",
        "domain": "integer >= 0",
        "default": 0
      },
      "retain_bottom_count": {
        "required": false,
        "description": "Number of cards at the bottom of target whose order is preserved",
        "domain": "integer >= 0",
        "default": 0
      },
      "technique": {
        "required": false,
        "description": "Which honest shuffling motion is imitated",
        "domain": "string"
      }
    },
    "post_state_invariant": "The top retain_top_count cards and the bottom retain_bottom_count cards of target keep their relative order and position; the cards between them end in an unconstrained order.",
    "post_state": {
      "state_schema_ref": "https://tamaraspec.org/schema/tcs-playing-cards-state-0.1.json",
      "effects": [
        {
          "op": "permute",
          "subject": "target",
          "permutation": "unconstrained",
          "range": {
            "from_top": {
              "param": "retain_top_count"
            },
            "from_bottom": {
              "param": "retain_bottom_count"
            }
          }
        }
      ]
    }
  },
  "presents_as": "shuffle"
}

Verbatim JSON · Source: schemas/tcs-taxonomy-0.7.json/verbs/stock-control-shuffle

See also