- name
SKILL.md
File skill tetap berada di repositori penerbit.
Tempel perintah yang disalin di terminal. Perintah itu memasang SKILL.md ini ke agen tersebut.
npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill card-game -a cursor -yTempel perintah yang disalin di terminal. Perintah itu memasang SKILL.md ini ke agen tersebut.
npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill card-game -a claude-code -yTempel perintah yang disalin di terminal. Perintah itu memasang SKILL.md ini ke agen tersebut.
npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill card-game -a codex -yTempel perintah yang disalin di terminal. Perintah itu memasang SKILL.md ini ke agen tersebut.
npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill card-game -a grok -yKirim pesan yang disalin di chat Grok Bot. Bot mengambil SKILL.md ini dari GitHub dan menambahkannya ke skill yang dipakai bersama oleh semua Bot Anda.
Install this skill: https://github.com/gamedev-skills/awesome-gamedev-agent-skills/tree/HEAD/skills/genres/card-gameDari penerbit
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
Unduh skills/genres/card-game/SKILL.md dari penerbit, atau salin path-nya dan buka repositori. PlugMCP hanya mendaftar skill ini dan tidak meng-host filenya.
Penerbit menyimpannya di https://github.com/gamedev-skills/awesome-gamedev-agent-skills.
Claude, Cursor, Codex, dan Grok Build bisa membaca SKILL.md yang Anda tambahkan dari repositori penerbit. Grok Bot memasangnya saat Anda mengirim tautan folder GitHub skill tersebut di chat.