Skip to content

Commit 802d9fa

Browse files
Merge pull request #699 from Alvi24-hub/2048-instructions
feature: add instruction label for first-time players in 2048 game
2 parents f0bc163 + c61c5be commit 802d9fa

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

games/2048-Game/2048-Game.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ def __init__(self, root):
6767
)
6868
self.restart_button.grid(pady=5)
6969

70+
self.instruction_label = tk.Label(
71+
root,
72+
text="🎮 Controls: ← ↑ → ↓ | Merge same numbers | Goal: 2048 🎯",
73+
font=("Arial", 10),
74+
fg="#6a635b",
75+
)
76+
self.instruction_label.grid(pady=5)
77+
7078
self.cells = []
7179
self.board = [[0] * GRID_SIZE for _ in range(GRID_SIZE)]
7280

0 commit comments

Comments
 (0)