▄█ ▄█ ▄▄▄▄███▄▄▄▄ ▄████████ ▄███████▄ ▄██████▄
███ ███ ▄██▀▀▀███▀▀▀██▄ ███ ███ ███ ███ ███ ███
███ ███ ███ ███ ███ ███ ███ ███ ███ ███ █▀
███ ███ ███ ███ ███ ▄███▄▄▄▄██▀ ███ ███ ▄███
███ ███ ███ ███ ███ ▀▀███▀▀▀▀▀ ▀█████████▀ ▀▀███ ████▄
███ ███ ███ ███ ███ ▀███████████ ███ ███ ███
███▌ ▄ ███▌ ▄ ███ ███ ███ ███ ███ ███ ███ ███
█████▄▄██ █████▄▄██ ▀█ ███ █▀ ███ ███ ▄████▀ ████████▀
▀ ▀ ███ ███
LLM-RPG is intended to be a role-playing game that leverages large language models to create dynamic and engaging gameplay experiences. Currently it is still in the early stages of development and only has a battle scene implemented.
- Dynamic Battles: Engage in battles where both heroes and enemies use AI to determine actions and effects.
- Character Customization: Define your hero's stats and abilities.
- AI-Powered Creativity: Use creative language to influence battle outcomes.
-
Clone the repository:
git clone https://github.com/vossenwout/llm-rpg.git cd llm-rpg
-
Install dependencies using Poetry:
poetry install
-
Set up your environment variables. You need to set the
GROQ_API_KEY
to use the GroqLLM model. You can do this by creating a.env
file in theconfig
directory:GROQ_API_KEY=your_api_key_here
You can get a Groq API key from here. This gives you free tokens each day.
To start the game, run the following command:
poetry run python -m llm_rpg
Install pre-commit hooks:
pre-commit install
Run tests:
poetry run pytest -s -v