- name
SKILL.md
Tệp skill vẫn nằm trong kho mã của nhà phát hành.
Dán lệnh đã sao chép vào terminal. Lệnh sẽ cài đặt tệp SKILL.md này vào agent đó.
npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill card-game -a cursor -yDán lệnh đã sao chép vào terminal. Lệnh sẽ cài đặt tệp SKILL.md này vào agent đó.
npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill card-game -a claude-code -yDán lệnh đã sao chép vào terminal. Lệnh sẽ cài đặt tệp SKILL.md này vào agent đó.
npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill card-game -a codex -yDán lệnh đã sao chép vào terminal. Lệnh sẽ cài đặt tệp SKILL.md này vào agent đó.
npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill card-game -a grok -yGửi tin nhắn đã sao chép trong cuộc trò chuyện Grok Bot. Bot sẽ lấy tệp SKILL.md này từ GitHub và thêm vào bộ skill mà mọi Bot của bạn dùng chung.
Install this skill: https://github.com/gamedev-skills/awesome-gamedev-agent-skills/tree/HEAD/skills/genres/card-gameTừ nhà phát hành
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.mdCâu hỏi thường gặp
Tải skills/genres/card-game/SKILL.md từ nhà phát hành, hoặc sao chép đường dẫn và mở kho mã. PlugMCP chỉ liệt kê skill và không lưu trữ tệp này.
Nhà phát hành duy trì nó tại https://github.com/gamedev-skills/awesome-gamedev-agent-skills.
Claude, Cursor, Codex và Grok Build có thể đọc tệp SKILL.md mà bạn thêm từ kho mã của nhà phát hành. Grok Bot cài đặt skill khi bạn gửi liên kết thư mục GitHub của skill trong cuộc trò chuyện.