A simulated, agent-played version of the popular party game!
Request Feature
This is an automated version of The Resistance: Coup where OpenAI agents play the game for our entertainment.
The main package to mention here is Autogen. It was instrumental in the multi-agent conversation setup!
You require an API key from OpenAI to be able to run this.
- This project is built on Python 3.11.
- The packages are maintained with poetry.
- Clone the repo
git clone https://github.com/dirkbrnd/Resistance-Coup-Autogen.git
- Install the game
poetry install
- Create a
.env
file with your OpenAI key in the root directory.
OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxx
- Launch and watch the AI agents play the game!
python coup.py
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- If you have suggestions for adding or removing projects, feel free to open an issue to discuss it, or directly create a pull request.
- Please make sure you check your spelling and grammar.
- Create individual PR for each suggestion.
After you have cloned the repo:
- Install the game
poetry install
- Set up the pre-commit hooks
pre-commit install
- Make your changes on a branch and create a PR!
- Clone the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
- Aaron Yuan for the inspiration!