Skip to content

๐Ÿ’ก [Feature]: Add on-screen instructions/tutorial for first-time playersย #586

@Alvi24-hub

Description

@Alvi24-hub

โ“ Problem Statement

The 2048 game currently has no instructions for first-time players. When a new user runs the game, they have to:

  • Guess that arrow keys control the game
  • Guess that same numbers merge
  • Guess that the goal is to reach 2048

This makes the game confusing and less accessible, especially for users unfamiliar with 2048.

๐Ÿš€ Proposed Enhancement

Add a simple, non-intrusive instruction label directly on the game screen that shows:

  • Controls: Arrow keys (โ† โ†‘ โ†’ โ†“)
  • Game mechanic: Same numbers merge
  • Objective: Reach 2048

๐Ÿ› ๏ธ Suggested Implementation

Add a tkinter.Label below the restart button with the instruction text.

Code addition (in __init__ method, after self.restart_button):

# Add instruction label
self.instruction_label = tk.Label(
    root,
    text="๐ŸŽฎ Controls: โ† โ†‘ โ†’ โ†“ | Merge same numbers | Goal: 2048 ๐ŸŽฏ",
    font=("Arial", 10),
    fg="#776e65",
    bg=BACKGROUND_COLOR
)
self.instruction_label.grid(pady=5)
---
- [x] I am a registered **GSSoC 2026** contributor.
- [x] I would like to implement this feature myself.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions