프롬프트 도감 › No.2303
3매치 퍼즐 연쇄 로직
Match-3 Chain Logic
같은 블록 3개를 맞추면 터지고 위에서 새 블록이 떨어지는 규칙을 코드 구조로 짜 줘요. 연쇄 반응과 채우기 방법이 함께 나와요.
이럴 때 퍼즐 게임 만들기, 연쇄 폭발 규칙 설계, 게임 로직 공부
도구 ChatGPT · Claude · Gemini
프롬프트
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."
팁
- 격자 크기와 터지는 규칙을 내 게임에 맞게 바꿔요
- 쓰는 프로그래밍 언어를 미리 알려줘요
출처
권리: CC0 (f/prompts.chat). 자유 사용. 기여자: loshu2000.