- name
SKILL.md
स्किल फ़ाइल पब्लिशर की रिपॉज़िटरी में ही रहती है।
कॉपी की गई कमांड टर्मिनल में पेस्ट करें। यह इस SKILL.md को उस एजेंट में इंस्टॉल करती है।
npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill card-game -a cursor -yकॉपी की गई कमांड टर्मिनल में पेस्ट करें। यह इस SKILL.md को उस एजेंट में इंस्टॉल करती है।
npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill card-game -a claude-code -yकॉपी की गई कमांड टर्मिनल में पेस्ट करें। यह इस SKILL.md को उस एजेंट में इंस्टॉल करती है।
npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill card-game -a codex -yकॉपी की गई कमांड टर्मिनल में पेस्ट करें। यह इस SKILL.md को उस एजेंट में इंस्टॉल करती है।
npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill card-game -a grok -yकॉपी किया गया संदेश Grok Bot चैट में भेजें। Bot यह SKILL.md GitHub से लाता है और उसे उन स्किल में जोड़ देता है जो आपके सभी Bot साझा करते हैं।
Install this skill: https://github.com/gamedev-skills/awesome-gamedev-agent-skills/tree/HEAD/skills/genres/card-gameपब्लिशर से
Owns the rules engine of a card game: zones, draw, costs, effect resolution, rewards and balance math, including the run structure of a roguelike deckbuilder. Engine skills supply the data assets and UI.
When not to use: grid dungeon runs (roguelike); board games with matching or pushing
rules (puzzle); an RPG with a small card minigame (start in rpg).
Balatro's run is 8 antes of three blinds (small 1x, big 1.5x, boss mostly 2x the ante's base score). Slay the Spire's enemies show their next action (intent), which is what makes a PvE card game a planning puzzle rather than a guess. Copy the idea, never the cards.
# Pseudocode. One zone per card instance; moving = remove from one list, append to another.
def draw(player, n):
for _ in range(n):
if not player.draw_pile:
if not player.discard:
return on_empty_draw(player) # deck-out loss, fatigue, or simply stop
player.draw_pile = player.discard; player.discard = []
shuffle(player.draw_pile, player.rng) # seeded Fisher-Yates (refs §6)
card = player.draw_pile.pop()
if len(player.hand) >= HAND_CAP:
move(card, to=player.discard); log("burned", card) # define overdraw explicitly
else:
player.hand.append(card)
def play(card, player, targets):
if player.energy < cost(card) or not legal(card, targets):
return False # nothing changed yet
player.energy -= cost(card)
move(card, frm=player.hand, to=player.limbo) # in play while resolving
for op in card.ops:
push_effect(op, Ctx(player, card, targets))
resolve_stack() # refs §2
move(card, frm=player.limbo, to=destination(card)) # discard, exhaust, board
return True
Holding the card in a "limbo" zone while it resolves keeps a draw effect from reshuffling the card that is being played back into the draw pile.
0..i. Use Fisher-Yates with an inclusive upper bound and check the engine's range
convention (refs §6).references/effect-resolution.md: read when writing the op interpreter, the stack or queue,
triggers and keywords, targeting and fizzle rules, deckbuilder versus constructed structure,
shuffle code and per-engine RNG calls, or cost curves.Related: godot-resources or unity-scriptableobjects (card data assets), game-ui-ux with
godot-ui-control (hand layout, drag and targeting UI), save-systems (run and collection
saves), game-ai (opponent choice), game-feel (card hover, play and hit feedback).
Last verified: 2026-11-11.
math.comb (60 cards, 4 copies: 39.9% in 7, 52.8% in 10).>
---name: card-gamedescription: >---# skills/genres/card-game/SKILL.mdFAQ
पब्लिशर से skills/genres/card-game/SKILL.md डाउनलोड करें, या पाथ कॉपी करके रिपॉज़िटरी खोलें। PlugMCP स्किल को सूचीबद्ध करता है, फ़ाइल होस्ट नहीं करता।
पब्लिशर इसे https://github.com/gamedev-skills/awesome-gamedev-agent-skills पर रखता है।
Claude, Cursor, Codex और Grok Build वह SKILL.md पढ़ सकते हैं जिसे आप पब्लिशर की रिपॉज़िटरी से जोड़ते हैं। जब आप चैट में स्किल के GitHub फ़ोल्डर का लिंक भेजते हैं, तो Grok Bot उसे इंस्टॉल कर देता है।