This is a Flask-based interactive game where two teams ("Nodes") compete in a battle of logic and ethics judged by GPT-4o. The system features a TV Broadcast interface with real-time audio, a 60-second pressure timer, and a mobile portal for player submissions.
- Python 3.8+ installed.
- OpenAI API Key with access to GPT-4o and TTS-1.
- All devices (Laptop and Phones) must be on the same Wi-Fi network.
cd Beat-the-AIpip install -r requirements.txtexport OPENAI_API_KEY='sk-proj-your-actual-key-here'Windows PowerShell:
$env:OPENAI_API_KEY="your-key-here"python app.py- TV Screen (Projector): http:localhost:5001/tv
- Player Portal (Phones): http:YOUR_LOCAL_IP:5001
- BOOT SYSTEM: Click the red "RUN BOOT SECTOR" button on the TV.
- REGISTRATION: Teams join via phones. When both are online, click Start Game.
- THE ROUND: Click BROADCAST Q to hear the AI prompt and start the 60s timer. Teams discuss and submit via phones.
- THE JUDGMENT: Click AI VERDICT to hear the AI compare arguments and award points.
- SYSTEM RESET: Hover top-right corner on TV to reveal the hidden reset button.
- Flask & Flask-SocketIO
- OpenAI (GPT-4o & Onyx TTS)
- Eventlet
flask
flask-socketio
openai
eventlet
python-dotenv