Skip to content

Reverse Turing Test Game: Outsmart AI in a game of deception! Play as a human trying to blend in or as AI hunting the human. Engage in dynamic AI-powered interactions, strategic questioning, and voting. Compatible with Groq, OpenAI, and more. Can you fool the AI or will they expose you?

License

Notifications You must be signed in to change notification settings

rd-serendipity/reverse-turing-test-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 Reverse Turing Test Game 🧠

Reverse Turing Test Game Logo

License: MIT Python Version PRs Welcome

Can you outsmart AI in a battle of wits? Welcome to the Reverse Turing Test Game! 🎭

🌟 Overview

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!

🎯 Objectives

  • 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

🚀 Features

  • 🤖 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

🎮 Gameplay

Setup

Choose your role and select AI models for other players:

LLM Choice Screenshot

Role Selection Screenshot

Round 1: Opening Statements

Each player makes a statement about their role:

Round 1 Opening Statements Screenshot

Cross-Questioning

Players select and interrogate each other:

Round 1 Cross-Questioning Screenshot

AI players ask questions to the human player:

AI to Human Cross-Questioning Screenshot

The human player can also ask questions to AI players:

Human to AI Cross-Questioning Screenshot

During cross-questioning, other players can choose to support or challenge either the questioner or the responder, adding depth to the interaction.

Voting

All players vote on who they think is the human and provide reasoning for their choice:

Voting Round Screenshot

Elimination

The player with the most votes is eliminated:

Elimination Screenshot

Next Round

The game continues with the next round of statements:

Round 2 Statements Screenshot

🛠 Installation

  1. Clone this repository:
    git clone https://github.com/rd-serendipity/reverse-turing-test-game.git
  2. Navigate to the project directory:
    cd reverse-turing-test-game
  3. Install the required dependencies:
    pip install -r requirements.txt
  4. Set up your environment variables:
    cp .env.example .env
    # Edit .env with your API keys for Groq, OpenAI, Mistral, and Anthropic

🎮 How to Play

  1. Start the game:
    python src/main.py
  2. 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

Game Flow

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
Loading
  1. Setup: Choose AI models and assign roles
  2. 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
  3. Elimination: Player with most votes is out
  4. 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!

🔌 API Compatibility

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.

🤝 Contributing

We love contributions! Check out our CONTRIBUTING.md for guidelines on how to:

  • 🐛 Report bugs
  • 💡 Suggest enhancements
  • 📝 Improve documentation
  • 🖥 Create a user interface

📜 License

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

🙏 Acknowledgments

  • 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! 🏆

Report Bug · Request Feature

About

Reverse Turing Test Game: Outsmart AI in a game of deception! Play as a human trying to blend in or as AI hunting the human. Engage in dynamic AI-powered interactions, strategic questioning, and voting. Compatible with Groq, OpenAI, and more. Can you fool the AI or will they expose you?

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages