CoolFace
Apppublic

zohaibcodez/ai-gaming-strategy-coach

sourceHugging Facemitupdated 9mo agoView on Hugging Face
0likes
App README

๐ŸŽฎ AI Gaming Strategy Coach - Your Personal Esports Mentor

Transform Your Gameplay with AI-Powered Coaching | Real-time Strategies | 10 Games | 4 Coaching Styles | Powered by Llama 3.3 70B

Get expert gaming advice, champion builds, counter strategies, and rank-climbing tips from an AI coach trained on competitive gaming knowledge. Whether you're climbing ranked in Valorant, mastering combos in Tekken 7, or learning rotations in Rocket League - this AI coach has you covered!

๐ŸŒŸ What Makes This Special?

๐Ÿง  Smart Coaching Modes - Choose your coaching style:

  • โ€”๐Ÿ† Competitive Pro Coach - META analysis, win conditions, rank progression strategies
  • โ€”๐Ÿ˜Š Casual Fun Guide - Creative plays, stress-free improvement, enjoyment-focused
  • โ€”๐Ÿ“š Educational Analyst - Frame data, damage calculations, mechanical breakdowns
  • โ€”๐Ÿ”ฅ Hype Man - Motivational coaching, confidence boost, tilt destruction

๐ŸŽฏ 10 Supported Games with deep expertise:

  • โ€”Valorant - Agent synergy, utility lineups, economy management
  • โ€”League of Legends - Champion mastery, macro gameplay, itemization
  • โ€”CS2/CS:GO - Utility usage, positioning, map control
  • โ€”Tekken 7 - Frame data, Korean backdash, pressure systems, wall combos
  • โ€”Fortnite - Building mechanics, rotation strategies, end-game positioning
  • โ€”Apex Legends - Legend synergies, movement tech, combat flow
  • โ€”Dota 2 - Hero mechanics, itemization, team fight execution
  • โ€”Overwatch 2 - Hero selection, ultimate economy, team coordination
  • โ€”Rocket League - Rotation patterns, boost management, positioning
  • โ€”General Gaming - Universal mechanics and strategies

โšก Interactive Features:

  • โ€”๐ŸŽš๏ธ Response Detail Slider (1-10) - Control response depth from quick tips to comprehensive analysis
  • โ€”๐Ÿš€ Quick Action Buttons - Instant access to build guides, counter strategies, and META analysis
  • โ€”๐Ÿ’ฌ Real-time Streaming Responses - Fast, natural conversation flow
  • โ€”๐ŸŽจ Beautiful Gaming UI - Purple gradient theme with emoji avatars

๐Ÿš€ How to Use

  1. 1.Select Your Coaching Mode - Choose the coaching personality that matches your needs
  2. 2.Pick Your Game - Select from 10 supported competitive games
  3. 3.Adjust Detail Level - Slide from 1 (quick tips) to 10 (comprehensive analysis)
  4. 4.Ask Anything! - Get strategies, builds, counter-picks, mechanical advice, and more

Example Questions:

  • โ€”"What's the best way to learn Korean backdash in Tekken 7?"
  • โ€”"Give me a counter strategy against Jett in Valorant"
  • โ€”"How do I improve my rotation in Rocket League?"
  • โ€”"What's the current META for mid lane in League of Legends?"
  • โ€”"Build guide for aggressive Wraith play in Apex Legends"

๐Ÿ› ๏ธ Technology Stack

  • โ€”๐Ÿค– AI Model: Llama 3.3 70B Versatile (via GROQ API)
  • โ€”๐ŸŽจ Frontend: Gradio 6.0.1
  • โ€”โšก API: GROQ (ultra-fast LLM inference)
  • โ€”๐Ÿ Backend: Python 3.8+
  • โ€”โ˜๏ธ Hosting: Hugging Face Spaces

๐Ÿ“Š Why GROQ + Llama 3.3?

  • โ€”Lightning Fast: GROQ's LPU inference delivers responses 10x faster than traditional GPUs
  • โ€”High Quality: Llama 3.3 70B provides expert-level gaming knowledge
  • โ€”Cost Effective: Free tier available for development and testing
  • โ€”Reliable: 99.9% uptime with robust error handling

๐ŸŽ“ Perfect For

โœ… Competitive players looking to climb ranks โœ… Casual gamers wanting to improve while having fun โœ… Esports enthusiasts learning game theory โœ… Content creators researching strategies โœ… Gaming coaches supplementing their training

๐Ÿ”’ Privacy & Security

  • โ€”No chat history stored permanently
  • โ€”API keys secured via environment variables
  • โ€”No personal data collection
  • โ€”Open-source and transparent

๐Ÿ“ Local Development Setup

Want to run this locally or customize it?

bash
# Clone the repository
git clone https://huggingface.co/spaces/zohaibcodez/ai-gaming-strategy-coach
cd ai-gaming-strategy-coach

# Install dependencies
pip install -r requirements.txt

# Set up your GROQ API key
# Create a .env file with: GROQ_API_KEY=your_key_here

# Run the app
python app.py

Get your free GROQ API key at: console.groq.com

๐Ÿค Contributing

Found a bug? Have a feature request? Want to add support for more games? Open an issue or submit a pull request on GitHub!

๐Ÿ“œ License

MIT License - Feel free to use, modify, and distribute!

๐Ÿ™ Acknowledgments

  • โ€”GROQ for providing ultra-fast LLM inference
  • โ€”Meta AI for the Llama 3.3 70B model
  • โ€”Gradio for the amazing UI framework
  • โ€”Hugging Face for free hosting on Spaces

๐ŸŽฎ Supported Games Deep Dive

Valorant ๐ŸŽฏ

Expert advice on agent selection, utility lineups, map control strategies, economy management, and gunplay mechanics.

League of Legends โš”๏ธ

Champion builds, macro gameplay, vision control, team compositions, itemization paths, and objective timing.

CS2/CS:GO ๐Ÿ”ซ

Utility usage, smoke lineups, positioning, economy management, aim training, and competitive tactics.

Tekken 7 ๐ŸฅŠ

Frame data analysis, Korean backdash technique, pressure systems, defense mechanics, wall combos, and character matchups.

Fortnite ๐Ÿ—๏ธ

Building mechanics, rotation strategies, loadout optimization, combat tactics, and end-game positioning.

Apex Legends ๐Ÿฆธ

Legend synergies, movement mechanics, positioning, combat flow, rotation planning, and team composition.

Dota 2 ๐Ÿ‰

Hero mechanics, itemization strategies, map control, team fight execution, economy management, and objective timing.

Overwatch 2 ๐Ÿฆธโ€โ™€๏ธ

Hero selection, ultimate economy, positioning strategies, team coordination, and map-specific tactics.

Rocket League โšฝ

Rotation patterns, aerial mechanics, boost management, positioning, game sense, and competitive strategies.

General Gaming ๐ŸŽฎ

Universal mechanics, learning strategies, mental game coaching, performance optimization, and cross-game skills.


Made with โค๏ธ for the gaming community

Disclaimer: This AI coach provides strategic advice based on general gaming knowledge. Individual results may vary. Practice and dedication are key to improvement!---

๐Ÿ”ง Configuration

Environment Variables

VariableDescriptionRequired
GROQ_API_KEYYour GROQ API authentication keyYes

Model Configuration

Edit app.py to change the LLM model:

python
MODEL_NAME = "llama-3.1-70b-versatile"  # Current
# Alternatives:
# "llama-3.3-70b-versatile"  # Newer, more capable
# "mixtral-8x7b-32768"       # Longer context window

๐Ÿ“– Usage Examples

Ask General Questions

"What's the best way to improve my aim in FPS games?"
"How do I climb ranks faster in Valorant?"

Get Specific Strategies

"Give me a beginner-friendly champion for League of Legends"
"What's the current meta build for Jett in Valorant?"

Request Analysis

"Analyze the current Overwatch 2 meta"
"What are common mistakes in CS2 competitive?"

Quick Actions

  • โ€”Click Build Guide for meta builds
  • โ€”Click Counter Strategy for opponent counters
  • โ€”Click Improve Gameplay for personalized tips
  • โ€”Click Meta Analysis for current game state

๐ŸŽจ Customization

Add New Coaching Modes

Edit the COACHING_MODES dictionary in app.py:

python
COACHING_MODES = {
    "Your Custom Mode": """Your custom system prompt here...""",
}

Add New Games

Extend the GAME_CONTEXTS dictionary:

python
GAME_CONTEXTS = {
    "Your Game": "Game-specific coaching context...",
}

Modify UI Theme

Customize the Gradio theme in app.py:

python
with gr.Blocks(theme=gr.themes.Monochrome(), css="""
    /* Your custom CSS */
""") as demo:

๐ŸŒ Deployment

Deploy to Hugging Face Spaces

  1. 1.Create a new Space on Hugging Face
  2. 2.Select Gradio as the SDK
  3. 3.Upload app.py and requirements.txt
  4. 4.Add GROQ_API_KEY to Space secrets
  5. 5.Your app will auto-deploy!

Deploy to Other Platforms

  • โ€”Streamlit Cloud: Convert to Streamlit format
  • โ€”Railway: Use Dockerfile deployment
  • โ€”Heroku: Add Procfile and deploy
  • โ€”AWS/GCP: Container deployment

๐Ÿ“Š Project Structure

ai-gaming-strategy-coach-chatbot/
โ”œโ”€โ”€ app.py                  # Main application file
โ”œโ”€โ”€ requirements.txt        # Python dependencies
โ”œโ”€โ”€ README.md              # Documentation
โ”œโ”€โ”€ .env.example           # Environment template
โ”œโ”€โ”€ .gitignore            # Git ignore rules
โ”œโ”€โ”€ screenshot.png        # App preview image
โ””โ”€โ”€ docs/                 # Additional documentation
    โ”œโ”€โ”€ API.md           # API documentation
    โ”œโ”€โ”€ CUSTOMIZATION.md # Customization guide
    โ””โ”€โ”€ DEPLOYMENT.md    # Deployment guide

๐Ÿค Contributing

Contributions are welcome! Here's how you can help:

  1. 1.Fork the repository
  2. 2.Create a feature branch (git checkout -b feature/AmazingFeature)
  3. 3.Commit your changes (git commit -m 'Add some AmazingFeature')
  4. 4.Push to the branch (git push origin feature/AmazingFeature)
  5. 5.Open a Pull Request

Contribution Ideas

  • โ€”Add support for more games
  • โ€”Create new coaching modes
  • โ€”Improve UI/UX design
  • โ€”Add multilingual support
  • โ€”Implement voice chat features
  • โ€”Create mobile-responsive design

๐Ÿ› Troubleshooting

Common Issues

Issue: GROQ_API_KEY not found

bash
# Solution: Create .env file with your API key
echo "GROQ_API_KEY=your_key_here" > .env

Issue: Module not found

bash
# Solution: Reinstall dependencies
pip install -r requirements.txt

Issue: Port already in use

python
# Solution: Change port in app.py
demo.launch(server_port=7861)

๐Ÿ“ˆ Performance

  • โ€”Response Time: ~2-5 seconds (depends on GROQ API)
  • โ€”Concurrent Users: Scales with hosting platform
  • โ€”Model: Llama 3.1 70B (70 billion parameters)
  • โ€”Context Window: 8,192 tokens

๐Ÿ”’ Security & Privacy

  • โ€”API keys stored in environment variables
  • โ€”No user data stored permanently
  • โ€”All conversations are ephemeral
  • โ€”HTTPS encryption on Hugging Face deployment

๐Ÿ“ License

This project is licensed under the MIT License - see the LICENSE file for details.


๐Ÿ™ Acknowledgments

  • โ€”GROQ for providing high-performance LLM inference API
  • โ€”Meta AI for the Llama 3.1 language model
  • โ€”Gradio for the amazing web UI framework
  • โ€”Hugging Face for free hosting platform
  • โ€”Gaming communities for strategy insights

๐Ÿ“ž Contact & Support


๐ŸŒŸ Star History

![Star History Chart](https://star-history.com/#ZohaibCodez/ai-gaming-strategy-coach-chatbot&Date)


๐Ÿ“š Documentation


๐ŸŽฏ Roadmap

  • โ€”[ ] Add voice chat functionality
  • โ€”[ ] Implement replay analysis feature
  • โ€”[ ] Create mobile app version
  • โ€”[ ] Add multiplayer coaching sessions
  • โ€”[ ] Integrate with Twitch/YouTube
  • โ€”[ ] Support for 20+ games
  • โ€”[ ] Multi-language support (10+ languages)
  • โ€”[ ] Premium features (team coaching, tournaments)

๐Ÿ’– Support This Project

If you find this project helpful, please consider:

  • โ€”โญ Starring the repository
  • โ€”๐Ÿ› Reporting bugs and issues
  • โ€”๐Ÿ’ก Suggesting new features
  • โ€”๐Ÿค Contributing code improvements
  • โ€”๐Ÿ“ข Sharing with fellow gamers

<div align="center">

Made with ๐Ÿ–ค by [Your Name]

[Live Demo](YOUR_LINK) โ€ข [Documentation](docs/) โ€ข [Report Bug](issues/) โ€ข [Request Feature](issues/)

Visitors GitHub stars GitHub forks

</div>


๐Ÿ† Featured In