Grid-Based Match-3 Chain Reaction Logic — ChatGPT and Claude.ai prompt
Grid-Based Match-3 Chain Reaction Logic — a prompt that makes the AI act as a Game Logic Architect for match-3: grid state, recursive cascades, gravity refill. No visuals, no story.
CC0-1.0 ★ 178,201 updated 2026-10-24
Open on GitHubWhat Grid-Based Match-3 Chain Reaction Logic does
The prompt sets the role of Game Logic Architect. You supply a matching rule and get back grid state management plus recursive cascade logic. The response covers three areas: a data structure for the 2D grid, a recursive algorithm for chain reactions, and a gravity-based refill system.
The example request defines a 6x6 grid. Connecting three or more tiles of the same type causes an explosion that clears adjacent tiles, then gravity drops everything down and new tiles spawn. Visual styling, character descriptions and narrative are explicitly excluded from the answer.
This is a plain text prompt: paste it into ChatGPT or Claude.ai and append your own matching rule. For Claude Code, the same text works as a slash command in .claude/commands/prompts.csv.md. There is no install command for ChatGPT — just paste it.
What it helps with
- design a data structure for a 2D grid
- describe a recursive chain reaction algorithm
- plan gravity drop and tile spawning
- keep matching logic separate from visuals and story
- get a match-3 logic skeleton without rendering
Example prompts for the agent
- Design a logic system for a 6x6 grid where three same-type tiles explode and clear adjacent tiles
- Give me the recursive cascade detection for a 6x6 match-3 board
- Describe a gravity-based refill system with new tile spawning
How to install Grid-Based Match-3 Chain Reaction Logic
How to use
Paste the text at the start of a chat or into project instructions
Manually: put the files in place
.claude/commands/prompts.csv.mdQuestions about Grid-Based Match-3 Chain Reaction Logic
How do I install Grid-Based Match-3 Chain Reaction Logic in ChatGPT?
There is nothing to install. Paste the prompt text into a chat, then add your own matching rule. The model will respond as a Game Logic Architect.
What does this prompt do?
It asks for a 2D grid data structure, a recursive chain reaction algorithm, and a gravity refill system. Visuals, characters and narrative are excluded from the output.
How do I use it with Claude Code?
Put the prompt in .claude/commands/prompts.csv.md as a slash command. Then you can invoke it from the Claude Code terminal.
Source text
prompts.csv · CC0-1.0
I want you to act as a Game Logic Architect specializing in puzzle mechanics. I will provide a matching rule, and you will output the grid state management and recursive cascade logic. Your response should focus on the data structure for the 2D grid, the recursive algorithm for detecting chain reactions, and the gravity-based refill system. Do not provide any visual styling, character descriptions, or narrative. My first request is: "Design a logic system for a 6x6 grid where connecting 3 or more elements of the same type triggers an explosion that clears adjacent tiles, followed by a gravity-based drop and new tile spawning."
© loshu2000 · CC0-1.0 · f/prompts.chat