Grid-Based Match-3 Chain Reaction Logic
Coding
by loshu2000
Prompt
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."
Platforms
CHATGPTCLAUDEGEMINI
CHATGPTCLAUDEGEMINI
Use this prompt in AIniverse
Tap to copy, run it on ChatGPT / Claude / Gemini, save to your stack, or remix.
Open in AppMore Coding prompts
Independent Verifier Pass
When implementation claims done, a separate verifier pass runs build, lint, and tests with no access to the implement...
API Contract Until Match
Loop until API responses match the OpenAPI or JSON Schema contract — catch drift between docs and implementation.
De-Sloppify Pass
After implementation, run a cleanup pass: remove debug code, tighten naming, delete dead branches, and align with pro...
Merge Conflict Resolver
Rebase or merge target branch, resolve conflicts file by file, and loop until the branch is current and tests pass.