Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions Shreya_treasure hunt maze.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
TREASURE HUNT MAZE

The player navigates through a maze/grid to find hidden treasures while avoiding traps.

Core Features:

Grid/Map:

Represented by a 2D array.

Cells can contain: empty space, treasure, trap, or exit.

Player Movement:

Controlled with arrow keys (↑ ↓ ← →).

Each move updates the player’s position on the grid.

Game Rules:

Collect treasures to increase score.

If the player steps on a trap → lose points or health.

Reach the exit to win.

Scoring System:

+10 points for treasure.

-5 points for traps.

Bonus for finishing quickly (optional).

Expansion Ideas:

Add levels (increasing maze size or trap density).

Add AI enemies that move randomly (player must avoid them).

Use colors/emojis in console (like 💎 for treasure, ❌ for trap, 😀 for player).

Convert later into a GUI version using pygame (with graphics and sounds).