asd
This commit is contained in:
parent
ff5d6ab91d
commit
572cfedd56
2 changed files with 23 additions and 10 deletions
|
|
@ -71,6 +71,7 @@ The script MUST export these functions (no classes, no imports):
|
|||
pendingChoices object[] — pending choice queue (each has targetPlayerIndex,prompt,options)
|
||||
|
||||
card/topCard suit values: "hearts" | "diamonds" | "spades" | "clubs"
|
||||
user-facing suit naming in this app: hearts=červený, diamonds=zelený, spades=kule, clubs=žaludy
|
||||
card/topCard value values: "7" | "8" | "9" | "10" | "under" | "upper" | "king" | "ace"
|
||||
|
||||
onPlayed(cards, state) → {
|
||||
|
|
@ -116,6 +117,7 @@ Rules about rules:
|
|||
- If you need an extra discard, use discardIndex in onPlayed instead of cards.length > 1.
|
||||
- For advanced custom mechanics you may mutate state directly with playerHands/discardPile/deck/currentPlayerIndex.
|
||||
- You may use state.hand, state.handCounts, state.playerCount for hand-inspection rules.
|
||||
- Prefer Czech wording in "description" and use suit names červený/zelený/kule/žaludy in user-facing text.
|
||||
- Do NOT include markdown fences, comments outside the functions, or any code other than function definitions.
|
||||
- Return ONLY valid JSON — no prose before or after.`
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue