Can you outsmart AI in a battle of wits? Welcome to the Reverse Turing Test Game! 🎭
In this thrilling game, you'll join a group of AI players, each with a unique role. Your mission? Blend in and convince the AIs that you're one of them while trying to unmask the other players. It's a high-stakes game of deception and detection!
- For the Human: Survive rounds of questioning and voting without being discovered
- For the AI: Identify and eliminate the human player while mimicking human-like behavior
- 🤖 Dynamic AI player interactions using cutting-edge language models
- 🎭 Role-based gameplay encouraging creative improvisation
- 🔍 Multiple rounds of cunning questions and deduction
- 🗣️ AI players strive to mimic human-like communication
- 🤝 Players can support or challenge others during cross-questioning
- 🗳️ Strategic voting with explanations for eliminations
- 🌈 Color-coded terminal output for an immersive experience
- 🔌 Compatible with Groq, OpenAI, Mistral, and Anthropic APIs
Choose your role and select AI models for other players:
Each player makes a statement about their role:
Players select and interrogate each other:
AI players ask questions to the human player:
The human player can also ask questions to AI players:
During cross-questioning, other players can choose to support or challenge either the questioner or the responder, adding depth to the interaction.
All players vote on who they think is the human and provide reasoning for their choice:
The player with the most votes is eliminated:
The game continues with the next round of statements:
- Clone this repository:
git clone https://github.com/rd-serendipity/reverse-turing-test-game.git
- Navigate to the project directory:
cd reverse-turing-test-game
- Install the required dependencies:
pip install -r requirements.txt
- Set up your environment variables:
cp .env.example .env # Edit .env with your API keys for Groq, OpenAI, Mistral, and Anthropic
- Start the game:
python src/main.py
- Follow the on-screen prompts to:
- Choose AI models for other players
- Select roles for all players
- Make statements about your role
- Select players to cross-question and explain your choice
- Support or challenge other players during questioning
- Vote on who you think is the human and explain your reasoning
graph TD
A[Start Game] --> B[Choose AI Models for Players]
B --> C[Assign Roles]
C --> D[Initialize Game]
D --> E[Start Round]
E --> F[Players Make Statements]
F --> G[Cross-Questioning]
G --> H[Players Vote]
H --> I{Is Human Eliminated?}
I -->|Yes| J[AI Wins]
I -->|No| K{Only 2 Players Left?}
K -->|Yes| L[Human Wins]
K -->|No| M[Eliminate Player with Most Votes]
M --> E
J --> N[End Game]
L --> N
- Setup: Choose AI models and assign roles
- Rounds:
- All players make statements
- Players select and cross-question each other, explaining their choices
- Other players can support or challenge during questioning
- Everyone votes on the most suspicious player and explains their vote
- Elimination: Player with most votes is out
- Winning Conditions:
- Human wins if they are the last player remaining with one AI
- AIs win if they successfully eliminate the human
Remember, as the human player, your goal is to vote strategically to ensure your survival while convincing the AI players that you're one of them!
This game is compatible with multiple AI APIs, including:
- Groq
- OpenAI
- Mistral
- Anthropic
Make sure to set up your API keys in the .env
file for the services you plan to use.
We love contributions! Check out our CONTRIBUTING.md for guidelines on how to:
- 🐛 Report bugs
- 💡 Suggest enhancements
- 📝 Improve documentation
- 🖥 Create a user interface
This project is licensed under the MIT License - see the LICENSE file for details.
- Thanks to all the AI models and APIs that make this game possible
- Inspired by the classic Turing test and the fascinating world of AI
Outsmart AI, or Become One! 🏆