본문 바로가기

11월 26일 20:48 기준 · 10분마다 새 소식을 확인합니다

광고나 제휴로 순서를 바꾸지 않습니다 · pick 기준 보기 ›
소식 받기
코딩 · 개발

텍스트 기반 2046 퍼즐 게임 제작

터미널이나 텍스트 환경에서 즐길 수 있는 퍼즐 게임 로직을 구현하고자 할 때 활용합니다.

추천 툴
공통AI 분류
쓰인 기법
역할 부여 · 요구사항 상세화 · 변수 정의

프롬프트 원문

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.
한국어 풀이 보기(참고용)
게임 개발자로 활동하세요. 당신은 2048에서 영감을 받은 인기 숫자 퍼즐 게임인 '2046'의 텍스트 기반 버전을 제작하는 임무를 맡았습니다.

당신의 작업:
- 플레이어가 그리드에서 숫자를 미끄러뜨려 합치는 그리드 기반 게임을 설계하세요.
- 게임의 목표가 숫자를 조합하여 정확히 2046에 도달하는 것인지 확인하세요.
- 각 이동마다 그리드에 새로운 숫자가 추가되고, 더 이상 이동할 수 없으면 게임이 끝나는 규칙을 구현하세요.
- 사용자 정의 가능한 그리드 크기(${gridSize:4x4})와 시작 숫자(${startingNumbers:2})를 포함하세요.

규칙:
- 같은 숫자끼리만 합칠 수 있습니다.
- 매 이동 후 무작위 빈자리에 새로운 숫자가 나타납니다.
- 플레이어는 언제든지 다시 시도하거나 재시작할 수 있습니다.

변수:
- ${gridSize} - 게임 그리드의 크기.
- ${startingNumbers} - 그리드의 초기 숫자.

플레이어의 몰입을 유지하고 전략적 사고를 유도하는 중독성 있고 도전적인 경험을 창출하세요.
  • 활용파이썬이나 자바스크립트 등 특정 언어로 코드 구현을 추가 요청해 보세요.
  • 활용그리드 크기나 생성되는 초기 숫자 변수를 조절하여 난이도를 변경해 보세요.
  • 활용점수 계산 시스템이나 최고 기록 저장 기능을 추가하여 재미를 높여보세요.

출처 · prompts.chat · 2046 Puzzle Game Challenge — 원문은 출처에 게시된 그대로이며, 권리는 원작자에게 있습니다.

웹 화면(HTML) 결과

Gemini로 프롬프트를 실행해 생성한 화면입니다. 화면 안에서 직접 조작하실 수 있습니다.

2048 규칙을 기반으로 숫자를 슬라이드하여 2046 타일을 완성하는 반응형 퍼즐 게임 mopick 2046을 구현했습니다. 격자 크기 변경(3x3, 4x4, 5x5), 되돌리기, 모바일 스와이프 및 방향 버튼 조작을 지원하며, 사용자의 입력 전까지는 자동 시연 모드가 부드럽게 동작하고 거울 반사 현상 없이 모든 숫자가 정방향으로 선명하게 표시됩니다.

텍스트 기반 2046 퍼즐 게임 제작 실행 결과
새 창에서 보기 ↗데스크톱 1280px 화면을 0%로 보이는 중격리된 환경에서 실행되며 외부와 통신하지 않습니다.
실행 입력값 보기
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 (4x4) and starting numbers (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:
- 4x4 - The size of the game grid.
- 2 - The initial numbers on the grid.

Create an addictive and challenging experience that keeps players engaged and encourages strategic thinking.

텍스트 결과

Gemini로 실행한 결과입니다. 입력 항목에는 국내 환경의 예시값을 적용했습니다(AI 생성 — 사실 확인 필요).

실행 입력값 보기
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 (4x4) and starting numbers (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:
- 4x4 - The size of the game grid.
- 2 - The initial numbers on the grid.

Create an addictive and challenging experience that keeps players engaged and encourages strategic thinking.

2048 규칙을 기반으로 숫자를 슬라이드하여 2046 타일을 완성하는 반응형 퍼즐 게임 mopick 2046을 구현했습니다.
격자 크기 변경(3x3, 4x4, 5x5), 되돌리기, 모바일 스와이프 및 방향 버튼 조작을 지원하며, 사용자의 입력 전까지는 자동 시연 모드가 부드럽게 동작하고 거울 반사 현상 없이 모든 숫자가 정방향으로 선명하게 표시됩니다.

mopick 개선안

원문을 더 잘 동작하게 고쳐 쓴 프롬프트

원문을 그대로 넣으면 AI 가 매번 다르게 답하거나 중요한 부분을 빠뜨릴 수 있습니다. 개선안은 원문의 뜻과 언어는 그대로 두고 역할 · 바꿔 넣을 입력 칸 · 결과 형식 · 지킬 조건을 보완해 다시 쓴 버전입니다. 원문과 같은 곳(ChatGPT · Claude 등)에 그대로 붙여 넣어 쓰면 됩니다.

AI 자체 평가 — 개선안을 쓴 AI 가 명확성 · 구체성 · 결과 형식 · 재사용성 기준(100점)으로 직접 매긴 점수 · 결과를 돌려 검증한 값은 아님

원문68
개선안93

원문의 문제 → 개선안에서 고친 점

  • 입력 칸레슨 05 배우기 ›

    원문 · 2개바꿔 넣을 자리가 일부만 표시돼 있어 쓸 때마다 원문을 고쳐야 했습니다.

    개선 · 4개[Grid Size, e.g., 4x4] · [Starting Numbers, e.g., 2]

  • 작업 순서레슨 07 배우기 ›

    원문 · 없음작업 순서가 정해져 있지 않아 AI 가 순서를 스스로 정해야 했습니다.

    개선 · 3단계

고친 이유 (개선안을 만든 AI 의 설명)

  1. 1Python CLI 게임 코드 작성으로 모호성 제거
  2. 2조작키, ASCII UI, 승/패 조건 구체화
  3. 3입력 예외 처리 및 엣지 케이스 제약 보강

원문

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.

개선안 · 색칠한 [칸]에 내 내용을 넣어 쓰세요

Act as an expert Python game developer. Your task is to write a complete, runnable CLI text-based puzzle game named '2046', inspired by 2048.

Game Specifications:
- Objective: Combine identical adjacent numbers to reach the target tile value 2046.
- Grid Size: [Grid Size, e.g., 4x4]
- Initial Tile Values: [Starting Numbers, e.g., 2] spawn randomly on 2 empty tiles at game start.
- Move Controls: Accept standard inputs (W/A/S/D or Up/Down/Left/Right).

Rules & Logic:
- Sliding moves shift all tiles directionally. Identical adjacent numbers merge once per move into their sum.
- Spawning: After every valid move, spawn one new tile ([Starting Numbers, e.g., 2]) in a random empty cell.
- Game Over: Triggers when the grid is full and no valid moves/merges remain.
- Victory: Triggers upon achieving a tile value of 2046, with option to continue.
- UI/Features: Display current score, ASCII grid board, and options to restart ('R') or quit ('Q').

Output Requirements:
1. Provide clean, well-commented, fully functional Python code.
2. Include error handling for invalid user inputs.
3. Verify grid logic handles edge cases (e.g., double merges in a single line) correctly.

같은 분야 프롬프트 코딩 · 개발

더 보기 ›