Skip to content

malithedeveloper/treasure-hunt-in-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ† Treasure Hunt Adventure Game ๐Ÿ†

๐ŸŽฎ About the Game

Welcome to Treasure Hunt Adventure - an exciting console-based game where you navigate through a mysterious grid to find treasures while avoiding deadly traps!

๐ŸŒŸ Features

  • ๐Ÿ—บ๏ธ Colorful 5x5 grid-based gameplay
  • ๐Ÿ’Ž Search for 3 hidden treasures
  • โ˜ ๏ธ Avoid 3 deadly traps
  • ๐Ÿ” Receive clues about nearby treasures and traps
  • ๐ŸŽฏ Preview movement before committing
  • ๐Ÿ’พ Save and load game progress
  • ๐Ÿ… Compete on the leaderboard

๐ŸŽฒ How to Play

  1. Start the game: treasureHunt.exe p <your_name>
  2. Use arrow keys to preview your movement
  3. Press Enter to confirm and move
  4. Press S to save your game
  5. Find all 3 treasures to win!

๐ŸŽจ Game Symbols

  • ๐ŸŸฉ P - Player
  • ๐ŸŸจ T - Treasure
  • ๐ŸŸฅ X - Trap
  • ๐ŸŸฆ ? - Unexplored area
  • โฌœ = - Explored path

๐Ÿ’ป Commands

  • View leaderboard: treasureHunt.exe leaders
  • Start new game: treasureHunt.exe p <player_name>
  • Load saved game: treasureHunt.exe p <player_name> load <filename>
  • Show leaderboard first: treasureHunt.exe p <player_name> leaders

๐Ÿšจ Warning

Don't hit the traps! One wrong move and your adventure ends!

โญ Tips

  • Watch for clues about nearby treasures and traps
  • Plan your moves carefully
  • Save your game before attempting risky moves

๐Ÿ”ง Technical Details

This game is written in C and utilizes:

  • ANSI color codes for vibrant display
  • Console manipulation for smooth UI
  • Binary file I/O for game saving/loading
  • Input handling for responsive controls

๐Ÿ‘จโ€๐Ÿ’ป Source Code

The source code (treasureHunt.c) includes comprehensive comments and is well-structured for educational purposes (in turkish language)


Created by malidev as a university programming assignment

About

Treasure Hunt Game in C

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages