프롬프트 도감 › No.2173
2046 숫자 퍼즐 게임 만들기
2046 Puzzle Game
같은 숫자끼리 합쳐 2046을 만드는 글자 기반 퍼즐 게임을 만들어 줘요. 판 크기와 시작 숫자를 바꿀 수 있어요.
이럴 때 코딩 연습, 미니 게임 만들기, 프로그래밍 수업 과제
도구 ChatGPT · Claude · Gemini
프롬프트
Act as a game developer. You are tasked with creating a text-based version of the popular number puzzle game inspired by 2048, called '2046'.
Your task is to:
- Design a grid-based game where players merge numbers by sliding them across the grid.
- Ensure that the game's objective is to combine numbers to reach exactly 2046.
- Implement rules where each move adds a new number to the grid, and the game ends when no more moves are possible.
- Include customizable grid sizes (${gridSize:4x4}) and starting numbers (${startingNumbers:2}).
Rules:
- Numbers can only be merged if they are the same.
- New numbers appear in a random empty spot after each move.
- Players can retry or restart at any point.
Variables:
- ${gridSize} - The size of the game grid.
- ${startingNumbers} - The initial numbers on the grid.
Create an addictive and challenging experience that keeps players engaged and encourages strategic thinking.팁
- ${gridSize}를 5x5로 바꾸면 더 쉬워져요
- 웹페이지로 만들어 달라고 덧붙여 보세요
출처
권리: CC0 (f/prompts.chat). 자유 사용. 기여자: iAcc01.