Skip to main content
Formal Specification

Pulling the Knots (Knotted String Lot Drawing) — Formal Specification

Jersey · dice-lots · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: directGap-fills: 1
# Haler ès Noeuds — AI-optimized specification ## General idea A discrete sequential lot-drawing game equivalent to sampling from a hidden urn without replacement. A set of N identical-looking string ends conceals K knotted strings. Agents draw sequentially; drawing a knotted string triggers an immediate negative payoff (penalty / forfeit assignment) or positive role assignment. ## Formal model - **Abstraction taken:** Physical hand grip and cord extraction are modeled directly as a discrete drawing without replacement from a shuffled vector of boolean/integer values. - **Player/agent count:** N agents, indexed 0,…,N−1. - **Turn model:** Strictly sequential order: agent i draws at step i. ## Formal rules R1. Setup: - Given N agents and K knotted strings (1≤K<N, default K=1). - An array 𝐂 of length N is created: K elements are `TRUE` (knotted), and N−K elements are `FALSE` (unknotted). - 𝐂 is shuffled under a uniform random permutation: π∼𝒮N. - An available string pool is indexed {0,1,…,N−1}. R2. Drawing Order: - Agents draw in sequential order i=0,1,…,N−1. R3. Action: - On turn i, agent i selects an available index j∈AvailableIndices. - String state v=𝐂[j] is revealed publicly and removed from AvailableIndices. R4. Outcome Assignment: - If v==TRUE: Agent i receives the penalty flag (`LOSER` / `FORFEIT_DUE`). - If v==FALSE: Agent i is marked `SAFE`. R5. Game Termination: - The round terminates immediately once all K knotted strings have been drawn, or when all N agents have drawn. R6. [gap-fill] Multi-Round Elimination Mode: Over R successive rounds, agents who draw knots accumulate penalty points. The agent with the fewest penalty points after R=5 rounds wins. ## Edge cases - Tie at the end condition: In multi-round mode, if two agents have equal penalty points, a 1v1 sudden-death draw (1 knot in 2 strings) breaks the tie. - A player with no legal move: Not applicable; as long as the round is active, |AvailableIndices|≥1, ensuring a legal draw action. - Repetition / cycles (and the loop-breaking rule): Not applicable; each step consumes exactly one string, strictly decreasing |AvailableIndices| by 1. - Simultaneous claims on the same resource or position: Not applicable; turns are strictly sequential. - Player elimination mid-round; turn order repair: If an agent is eliminated or leaves, their index is skipped and string pool shrinks by 1. - Resource exhaustion (pieces, tokens, space, time): Resource is finite (N strings) and strictly exhausted after at most N draws. - Termination guarantee: Provably terminates in at most N steps since |AvailableIndices| decreases monotonically. ## State representation - Persistent state: - `round`: Integer ∈[1,R]. - `penalties`: Array of size N recording accumulated penalty counts. - Ephemeral state (per round): - `strings`: Permuted boolean array 𝐂 of size N. - `available_indices`: Set of remaining unpicked indices ⊂{0,…,N−1}. - `current_drawer`: Agent index ∈{0,…,N−1}. - `knots_remaining`: Integer Krem. - Observable information: - Hidden: The mapping from available string index to boolean knot status 𝐂[j] is hidden from all agents prior to drawing. - Public: The history of past draws, identity of drawers, and outcomes are fully observable. ## Action space - `draw_string(index)`: Parameter index∈AvailableIndices. ## Playability notes - Single-player-vs-AI: Natural; 1 human vs N−1 AI agents. Since all unpicked strings are identical under the uniform prior, the expected value is identical for all available indices: P(Knot)=Krem/|AvailableIndices|. - Group games (n>4): Naturally supports any group size N∈[3,20]. - Physical-skill games: Purely chance-driven discrete decision; no physical dexterity required. - What is lost in the adaptation: The tactile feel of string tension, visual alignment of cord ends, and social banter during the draw. ## Implementation hints - Trivial complexity: 1D array shuffling (`random.shuffle`) and index popping. - Useful as a reusable utility sub-module for starting-player selection in other traditional game simulations. - First milestone: Implement single-round 4-player knot drawing and verify hypergeometric probability distributions across sequential draw positions.

Download as JSON

Download the full game corpus entry for this game as structured JSON.

Download JSON
Cite this page

Pulling the Knots (Knotted String Lot Drawing) (Jersey). (n.d.). Games of Countries. https://gamesofcountries.com/games/je-jersey/haler-es-noeuds

@misc{gamesofcountries-je-jersey-haler-es-noeuds,
  title = {Pulling the Knots (Knotted String Lot Drawing) (Jersey)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/je-jersey/haler-es-noeuds}
}