puzzle
Agent skill fromgamedev-skills/awesome-gamedev-agent-skills
Build a puzzle game: grid/board state, move input, rule-based resolution (match-3 cascades, sokoban pushes, tile logic), scoring, and undo. Use for a match-3, sokoban, or grid-logic puzzle.
How to install puzzle
install puzzle
# install the awesome-gamedev-agent-skills pack with the skills CLI
npx skills add gamedev-skills/awesome-gamedev-agent-skills# or add only this skill to Claude Code: copy the folder
skills/genres/puzzle/
# into
~/.claude/skills/puzzle/ (all projects)
.claude/skills/puzzle/ (one project)
1# Puzzle23A playbook for grid/board puzzle games — the board model, move input, rule resolution4(matching, pushing, logic), scoring, undo, and level progression. This is a **compositional**5skill: it models board state and rules and presents them through a tilemap/UI. It does not6re-teach tilemaps; it defines the resolution loop and the correctness rules (clean state,7deterministic resolution, undo) that keep a puzzle fair and bug-free.89## When to use1011- Use when the game is a **discrete board** the player changes with moves, and the board12 **resolves by rules**: match-3/tile-matching, sokoban/block-pusher, sliding puzzle, logic grid.13- Use when designing match/cascade resolution, undo, level progression, or solvability.1415**When *not* to use:** real-time grid action with permadeath → `roguelike`. Card zones/turns →16`card-game`. Physics-based "puzzle platformer" → `platformer` + `physics-tuning`. For the tile17rendering, use `godot-tilemap` / `unity-tilemap-2d`.1819## Core loop2021**Read the board → plan a move → make the move → the board resolves by its rules (match, push,22fall, fill, cascade) → see progress toward the objective → repeat until solved/failed.** The23fun is the *planning*; the engine's job is to resolve each move **deterministically** and24present it clearly.2526## Must-have systems27281. **Board model** — a grid of cells holding pieces; the single source of truth (logic, not visuals).29…
Excerpt shown under the repository's Apache-2.0 license.
