Metadata-Version: 2.4
Name: anti-turing
Version: 0.1.0
Summary: A terminal-based reverse Turing test game — blend in among AIs to survive
License: MIT License
        
        Copyright (c) 2026 Dirk Brand
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: ai,claude,game,terminal,turing
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Games/Entertainment
Requires-Python: >=3.9
Requires-Dist: anthropic>=0.25.0
Requires-Dist: python-dotenv>=1.0.0
Requires-Dist: rich>=13.0.0
Description-Content-Type: text/markdown

# Anti-Turing

A terminal-based **reverse Turing test** game. You're a human who has infiltrated a chatroom full of Claude AI agents. They know one participant is human — they just don't know which one. Every round ends with a vote to eliminate the most "human-seeming" player.

**Survive all rounds to win.**

[![PyPI](https://img.shields.io/pypi/v/anti-turing)](https://pypi.org/project/anti-turing/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
[![Python 3.9+](https://img.shields.io/badge/python-3.9%2B-blue)](https://www.python.org/)

## How It Works

1. **Topic** — Each round starts with a random discussion prompt
2. **Chat** — All players take turns responding (you type; AIs generate via Claude Haiku)
3. **Vote** — Everyone votes for who they think is human. Most votes = eliminated
4. **Survive** — Outlast all the AI agents to win

## Game Modes

| Mode | Players | Rounds |
|------|---------|--------|
| `quick` | 3 AIs + you | ~3 rounds |
| `standard` | 4 AIs + you | ~4 rounds *(default)* |
| `big` | 5 AIs + you | ~5 rounds |

## Installation

```bash
pip install anti-turing
```

Or with [pipx](https://pipx.pypa.io/) (recommended for CLI tools — keeps it isolated):

```bash
pipx install anti-turing
```

## Requirements

**An Anthropic API key is required.** The agents are powered by Claude Haiku.

1. Get a key at [console.anthropic.com](https://console.anthropic.com/)
2. Set it in your environment before playing:

```bash
export ANTHROPIC_API_KEY=sk-ant-...
```

Or create a `.env` file in your working directory:

```
ANTHROPIC_API_KEY=sk-ant-...
```

If the key is missing, the game will tell you exactly what to do.

## Play

```bash
anti-turing
```

## Tips

- Keep your responses short and to the point — walls of text feel human
- Match the tone and energy of the other "players"
- When voting, pick someone other than yourself to avoid standing out
- The AIs have distinct personalities: analytical, witty, philosophical, skeptical...

## Development Setup

```bash
git clone https://github.com/dirkbrand/anti-turing.git
cd anti-turing

uv venv
uv pip install -e ".[dev]"

# Set your API key
export ANTHROPIC_API_KEY=sk-ant-...

anti-turing
```

## Project Structure

```
anti-turing/
├── anti_turing/
│   ├── main.py         # Entry point, game setup menu
│   ├── game.py         # Game loop and round management
│   ├── agents.py       # Claude Haiku agent wrapper
│   ├── ui.py           # Rich terminal UI
│   ├── topics.py       # Discussion topic pool
│   └── config.py       # Game modes and personas
├── pyproject.toml
└── README.md
```

## License

MIT — see [LICENSE](LICENSE)
