EscapeTheLabGame v1.1.0 — nugetz
pkg
WaelKamel/ EscapeTheLabGame v1.1.0
Escape The Lab - A fast-paced AI-powered puzzle game where you have 10 minutes to solve 20 challenging questions. Features: Multiple AI providers (OpenAI GPT-4o, Claude Sonnet, Gemini, DeepSeek) | User authentication with online leaderboards | Database-driven event prompts for seasonal games | Auto-save/resume | Power-ups (Speed Boost, Micro Hint) | Real-time streaming responses | Cloud prompt support | Question types: IQ puzzles, logic challenges, coding problems, and mysteries. Play solo or compete globally!
Get Started dotnet CLI PackageReference Package Manager
$ dotnet add package EscapeTheLabGameReadme 🎮 Escape The Lab - CLI Game
A cyberpunk-style challenge game powered by Claude AI (Sonnet 4.5) . Players have 10 minutes to answer 20 rapid-fire questions spanning IQ puzzles, mystery challenges, and coding problems.
🚀 Features
🤖 AI-Powered Game Master : Interactive gameplay with Claude AI as the game host
⚡ Real-time Streaming : Watch responses appear in real-time with typewriter effect
🎨 Colorful CLI : Cyberpunk-themed interface with colored output
⏱️ Time Pressure : 10-minute countdown with periodic warnings
💾 Auto-Save : Automatic progress saving after each answer and every minute
☁️ Cloud Prompts : Load game prompts from Google Drive, OneDrive, GitHub, or any URL
📊 Leaderboard : Track high scores across multiple playthroughs
📜 Game History : All games are saved as JSON logs
🎯 Power-Ups : Speed Boost (skip question) and Micro Hint (get clue)
⚙️ Customizable : Adjust time limits, streaming, and prompt sources
📋 Requirements
🛠️ Setup
1. Get Your API Key
Go to https://console.anthropic.com/
Sign up or log in
Navigate to API Keys section
Create a new API key
Copy the key (it starts with sk-ant-)
2. Configure the Application
Open appsettings.json and replace YOUR_ANTHROPIC_API_KEY_HERE with your actual API key:
{
"ClaudeApi": {
"ApiKey": "sk-ant-api03-YOUR-ACTUAL-KEY-HERE"
},
"Game": {
"TimeLimit": 600,
"EnableStreaming": true,
"SaveHistory": true
}
}
3. Build the Project cd EscapeTheLabGame
dotnet build
4. Run the Game dotnet run
🎮 How to Play
Start the application - You'll see a cyberpunk welcome banner
Saved game check - If you have an unfinished game, choose to continue or start fresh
Select "Start New Game" from the main menu (if no saved game)
Enter your name - This will appear on the leaderboard
Answer 20 questions - Type your answer and press Enter (auto-saves after each!)
Use power-ups strategically :
Type Speed Boost to skip a question (once per game)
Type Micro Hint to get a clue (once per game)
View your score - At the end, you'll see your total score and rank
Note: Your progress auto-saves every minute and after each answer!
🎯 Question Categories The game includes 20 questions across 3 categories:
IQ Puzzles (8 questions): Pattern recognition, logic puzzles, spatial reasoning
Mystery Challenges (6 questions): Whodunit scenarios, contradiction detection
Dev Challenges (6 questions): String manipulation, algorithms, SQL queries
🏆 Ranking System
0-5 : Junior Human Lifeform
6-10 : Bug Hunter in Training
11-15 : Senior Logic Warrior
16-19 : Elite Engineer
20 : Legendary Cyborg Architect
⚙️ Settings Access the Settings menu to:
Toggle Streaming Mode : Enable/disable real-time response streaming
Change Time Limit : Adjust from 5 to 15 minutes
View Current Settings : See all configuration options
📂 Game Data All game data is stored in organized folders:
GameHistory/ - Completed games
leaderboard.json : Top scores from all players
game_[PlayerName]_[Timestamp].json : Complete game transcripts
SavedGames/ - In-progress games
savegame_[PlayerName]_[Timestamp].json : Saved game states
💾 Auto-Save Feature NEW! The game automatically saves your progress!
Auto-saves after each answer - Seamless and instant
Auto-saves every 1 minute - Never lose progress
Startup detection - Resume or start fresh when launching
Time remaining is preserved exactly
All answers and progress are automatically saved
See AUTO_SAVE_GUIDE.md for complete guide.
☁️ Cloud Prompts Feature NEW! Load game prompts from the cloud!
Google Drive - 15 GB free storage
OneDrive - 5 GB free storage
Dropbox - Easy direct links
GitHub Gist - Best for version control (recommended)
Any web server - Full control
Update questions without rebuilding the app
Central management for teams
Multiple prompt versions for different events
Works offline with caching
{
"Prompt": {
"UseCloudPrompt": true,
"CloudPromptUrl": "YOUR_CLOUD_URL_HERE",
"CachePrompt": true,
"FallbackToLocal": true
}
}
See CLOUD_PROMPT_GUIDE.md and CLOUD_SERVICES_GUIDE.md for complete instructions!
🎨 CLI Commands
Type your answer and press Enter (auto-saves after each answer)
quit or exit : Exit game (asks to save first)
Speed Boost : Use skip power-up
Micro Hint : Get a hint
Note: Game auto-saves every minute and after each answer!
🔧 Troubleshooting
"API Key not configured" Error Make sure you've replaced YOUR_ANTHROPIC_API_KEY_HERE in appsettings.json with your actual Anthropic API key.
"Configuration file not found" Error Ensure appsettings.json is in the same directory as the executable. If running with dotnet run, it should be in the project root.
Connection Issues
Check your internet connection
Verify your API key is valid and has available credits
Check Anthropic API status at https://status.anthropic.com/
🌟 Tips for High Scores
Think fast but carefully - wrong answers count against you
Use power-ups strategically - save them for the hardest questions
Read questions thoroughly - some have tricky wording
Practice makes perfect - patterns repeat across playthroughs
📝 License This is a demonstration project showcasing Claude AI integration in C# console applications.
🤝 Contributing Feel free to fork this project and customize the game:
Add new question categories
Modify the Game Master personality
Add multiplayer features
Create themed question sets
📧 Support
Built with ❤️ using Claude Sonnet 4.5