This game implements the research paper: Generative Agents: Interactive Simulacra of Human Behavior(https://arxiv.org/abs/2304.03442).
This is a fun simulation comprising of a mixture of mafia and among us. The villagers and werewolves are agents with seperate memories which are implemented using langchain. The Generative AI agents take decisions using opeai's LLM Model and decide to vote out suspicious villagers using their memories.
- Clone the repository to your local machine.
- Run the
requirements.py
script to install the dependencies:python requirements.py
-
Create a virtual environment:
- Linux:
python3 -m venv venv source venv/bin/activate
- Windows (PowerShell):
python -m venv venv .\venv\Scripts\Activate.ps1
- Linux:
-
Install the project dependencies:
pip install -r requirements.txt
-
Initialize the environment variables by creating a
.env
file based on the provided.env.example
file.cp .env.example .env
-
Run the game:
python game.py
We welcome contributions! If you'd like to contribute to the project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your forked repository.
- Submit a pull request to the main repository.