{"id":26772012,"url":"https://github.com/thecoderadi/treasureraiders","last_synced_at":"2025-03-29T00:37:20.235Z","repository":{"id":284857326,"uuid":"955782856","full_name":"TheCoderAdi/TreasureRaiders","owner":"TheCoderAdi","description":"🎯 Treasure Raiders is an interactive Reddit post-based game built using Devvit.","archived":false,"fork":false,"pushed_at":"2025-03-28T02:28:48.000Z","size":620,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T03:23:51.590Z","etag":null,"topics":["devvit","reddit-api","typescript"],"latest_commit_sha":null,"homepage":"https://www.reddit.com/r/TreasureRaiders/?playtest=treasureraiders","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheCoderAdi.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-27T07:30:44.000Z","updated_at":"2025-03-28T02:28:51.000Z","dependencies_parsed_at":"2025-03-28T03:33:59.011Z","dependency_job_id":null,"html_url":"https://github.com/TheCoderAdi/TreasureRaiders","commit_stats":null,"previous_names":["thecoderadi/treasureraiders"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCoderAdi%2FTreasureRaiders","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCoderAdi%2FTreasureRaiders/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCoderAdi%2FTreasureRaiders/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCoderAdi%2FTreasureRaiders/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheCoderAdi","download_url":"https://codeload.github.com/TheCoderAdi/TreasureRaiders/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246122238,"owners_count":20726822,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["devvit","reddit-api","typescript"],"created_at":"2025-03-29T00:37:19.670Z","updated_at":"2025-03-29T00:37:20.227Z","avatar_url":"https://github.com/TheCoderAdi.png","language":"TypeScript","readme":"### 📌 **Treasure Raiders Game**\r\n\r\n🎯 **Treasure Raiders** is an interactive Reddit post-based game built using **Devvit**. Players must find the hidden treasure on a **5x5 grid** by clicking on cells and receiving feedback based on their proximity to the treasure. You have **5 attempts** to find the treasure!\r\n\r\n---\r\n\r\n### 🚀 **Features**\r\n\r\n- 🎲 **5x5 Grid:** Explore a grid of cells to uncover the hidden treasure.\r\n- 🔥 **Proximity Feedback:**\r\n  - `🔥` → **Hot** (Very close to the treasure)\r\n  - `🌡️` → **Warm** (Nearby)\r\n  - `❄️` → **Cold** (Far away)\r\n- 💰 **Treasure Icon:** Reveals the treasure when found.\r\n- ⏱️ **Delay Animation:**\r\n  - Treasure reveal is delayed by **1.5 seconds** before showing the game-over screen for better visibility.\r\n- 🔁 **Restart Option:** Restart the game after winning or losing.\r\n- ⚡ **Responsive UI:** Works seamlessly within Reddit posts.\r\n\r\n---\r\n\r\n### 🎯 **How to Play**\r\n\r\n1. **Start the Game:**\r\n   - Click on the **\"Start The Hunt\"** button to begin.\r\n2. **Click the Grid Cells:**\r\n   - Each click reveals a feedback icon indicating how close you are to the treasure.\r\n3. **Win or Lose:**\r\n   - If you find the treasure, you win! 🎉\r\n   - If you run out of attempts, it's game over ❌.\r\n4. **Restart:**\r\n   - Click the refresh button 🔁 to start a new game.\r\n\r\n---\r\n\r\n### ⚙️ **Technology Stack**\r\n\r\n- 🔥 **Devvit SDK:** To build interactive Reddit post types.\r\n- ⚛️ **React-style Hooks:** `useState` for state management.\r\n- 🎯 **Modular Components:**\r\n  - Grid rendering, game logic, and dynamic UI feedback.\r\n\r\n---\r\n\r\n### 🔥 **Game States and Icons**\r\n\r\n| Icon | Meaning          |\r\n| ---- | ---------------- |\r\n| ⬜   | Unexplored cell  |\r\n| 💰   | Treasure         |\r\n| 🔥   | Very close (hot) |\r\n| 🌡️   | Nearby (warm)    |\r\n| ❄️   | Far away (cold)  |\r\n| 🔁   | Restart button   |\r\n\r\n### 🛠️ **Customization**\r\n\r\nYou can easily modify:\r\n\r\n- **Grid Size:**\r\n  - Change the `GRID_SIZE` constant to increase or decrease the grid dimensions.\r\n- **Attempts:**\r\n  - Modify the `MAX_ATTEMPTS` constant to increase or decrease the number of tries.\r\n\r\n---\r\n\r\n### 📌 **Contributing**\r\n\r\n🔥 Contributions are welcome! If you want to enhance the game, feel free to submit a PR or suggest new features.\r\n\r\n---\r\n\r\n### 🛡️ **License**\r\n\r\nMIT License © 2025 **Treasure Raider Game**\r\n\r\n---\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecoderadi%2Ftreasureraiders","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecoderadi%2Ftreasureraiders","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecoderadi%2Ftreasureraiders/lists"}