lantern

cookie-jar-init

cookie-jar-init

Initialize the Cookie Jar game with random players.

config

_context: {}
consumes: null
count: 5
produces: dict

fetch

import random

NAMES = [
    "Alice", "Bob", "Charlie", "Diana", "Eddie",
    "Fiona", "George", "Hannah", "Ivan", "Julia",
    "Kevin", "Luna", "Marcus", "Nina", "Oscar",
    "Penny", "Quinn", "Ruby", "Sam", "Tara",
    "Uma", "Victor", "Wendy", "Xavier", "Yuki", "Zara"
]

count = int(config.get('count', 5))
count = max(3, min(9, count))

players = random.sample(NAMES, count)

result = {
    "players": players,
    "original_count": count,
    "lyrics": [],
    "round": 0
}

Tags

tags:
  - fence:source
  - demo
  - cookie-jar
  - pattern:pipeline

Provenance

Document

  • Status: πŸ”΄ Unverified

Changelog

  • 2026-01-26 00:14: Node created by mcp - Creating init stage for staged cookie-jar pipeline

North

slots:
- slug: cookie-jar-game-staged
  context:
  - Linking staged game to init
↑ northcookie-jar-game-staged