Skip to content

Ranger-NF/API-Hunt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nasahub

🏆 API Hunt - Interactive Riddle Challenge

API Hunt is an engaging treasure hunt game that challenges developers to solve riddles and navigate through API endpoints. Race against time, solve cryptic clues, and climb the leaderboard in this unique puzzle game!

🎯 Features

  • 🧩 Multi-stage riddle challenges - Solve cryptic clues to find the next endpoint
  • ⏱️ Real-time leaderboard - Compete with other players based on completion time
  • 🔒 Sequential progression - Must complete stages in order, no skipping allowed
  • 📊 Player statistics - Track your progress and game statistics
  • 🚀 RESTful API design - Clean, well-structured endpoints
  • ⚡ Fast and lightweight - Built with FastAPI for optimal performance

product walkthrough

Screen.Recording.2025-08-16.at.10.57.58.PM.mov

🎮 How to Play

1. Start Your Adventure

POST /start
{
  "player_name": "YourPlayerName"
}

2. Follow the Clues

Each successful stage gives you a new riddle. Solve it to find the next endpoint!

Example Flow:

  • Stage 1: POST /answer1 with your answer
  • Stage 2: POST /answer2 with your answer ...

3. Submit Your Answers

POST /{endpoint}
{
  "player_name": "YourPlayerName"
}

4. Win and Celebrate! 🎉

Complete all stages to win and see your completion time!

Libraries used

How to configure

Prerequisites

  • Python 3.7+
  • pip package manager

Installation & Setup

  1. Clone the repository

    git clone https://github.com/Ranger-NF/API-Hunt.git
    cd API-Hunt
  2. Install dependencies

    pip install fastapi uvicorn

How to Run

  1. Run the game server

    uvicorn main:app --reload
  2. Access the game

📋 API Endpoints

Endpoint Method Description
/start POST Begin the game with your player name
/age POST First riddle stage
/fire POST Second riddle stage
/secrets POST Final challenge
/leaderboard GET View top players by completion time
/players GET List all players and their status
/player/{name}/status GET Get specific player details
/stats GET Overall game statistics

About

Treasure Hunt but with FastAPI

Topics

Resources

Stars

Watchers

Forks

Languages