match3

Implements grid-based match-3 gameplay logic including cascades and scoring in C#.

Updated May 6, 2026
One-click install
npx skills add https://github.com/BasarEkinci/memory-card-game --skill match3-basarekinci
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: match3
Source: https://github.com/BasarEkinci/memory-card-game/tree/main/.claude/skills/genre/match3
Command: npx skills add https://github.com/BasarEkinci/memory-card-game --skill match3-basarekinci

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you design a complete match-3 puzzle game loop—turning a swipe into tile swaps, match detection, tile clearing, gravity cascades, scoring, and win/loss evaluation.

Core Features & Use Cases

  • Grid + Tile Definitions: Create a board with typed tiles (normal, striped, wrapped, color bombs, blockers/ice/chain) driven by ScriptableObject-style definitions.
  • Match Detection for Core Patterns: Detect horizontal and vertical 3+ line matches and support merging/intersection logic for L/T shapes via overlap detection.
  • Cascade Loop (Destroy → Gravity → Refill → Re-match): Run repeated cascades until the board settles with no new matches, enabling combo chains.
  • Special Tile Generation & Combo Effects: Produce special tiles based on match size/shape and apply enhanced effects for special-to-special or special-to-regular combinations.
  • Game State Gating for Input Safety: Enforce a state machine so player input is only accepted while waiting for input, preventing swaps mid-cascade.
  • Objectives + Lives/Energy: Track objectives (score, blockers, item collection, reach goals) and integrate a lives/energy regeneration system for progression.

Quick Start

Use the match3 skill to implement a match-3 game loop in C# by wiring a board model, match detector, cascade/destroy system, and game state machine around a grid of typed tiles.

Frequently Asked Questions about match3

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement match-3 cascading tile logic in a Unity puzzle game?

Detect match-3 patterns by scanning the grid deterministically for horizontal and vertical lines of three or more identical tiles. The logic supports merging and intersection detection to handle complex L and T shape overlaps.

How do I generate special tiles like color bombs based on match shape and size?

Generate special tiles by evaluating match size and shape during detection. Matches produce striped, wrapped, or color bomb tiles, and combining special-to-special or special-to-regular tiles triggers enhanced board clearing effects.

How do I prevent player input during match-3 tile cascades and animations?

Prevent input during cascades by enforcing a game state machine that gates player actions. The board only accepts swipe inputs while explicitly waiting for input, blocking swaps during non-interactive phases like tile clearing and gravity falls.

Can I track score combos, level objectives, and lives energy in a match-3 game loop?

Track score combos, level objectives, and lives energy by integrating objective monitoring for score, blockers, and item collection. The system applies combo multipliers during cascades and manages a lives or energy regeneration system for progression.

Does this match-3 grid system support blocker tiles like ice and chains?

The match-3 grid system supports blocker tiles like ice and chains through ScriptableObject-style tile definitions. These typed tiles integrate with the board model to act as obstacles within the match detection and clearing logic.