Qumeric / roguelife_old

Generative Agents + Roguelike (abandoned)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Roguelife

Code style: black

Important

This repo was abandoned. It was replaced by two separate repos: Trip (engine) and Roguelife (new game repo)

Roguelike with Generative Agents.

Very early stage, work in progress.

Idea / Origin Story

Generative Agents paper inspired me to create something similar but more hopefully more interesting.

I decided to use roguelike environment because it seemed to be the simplest possible approach.

Agents wake up on an island and try to survive.

My ultimate goal is to make agents cooperate and create alliances which will compete for resources.

Roguelife was based on the TCOD Tutorial.

After some tinkering, I realised that strictly following Generative Agents is prohibitatively resource intensive (one simulation day in Smallvile cost 1000$ and it still was too simple/small-scale for my ambition).

So I decided to follow another approach: convert the 2d game world to text and represent it to agents as a text adventure.

At the moment, I have no idea how well it will work, but I am currently focused on developing the game engine for it.

Usage

You will need OpenAI account for it.

Install requirements

pip install -r requirements

create .env file:

OPENAI_ORG=<HERE IS YOUR ORG>
OPENAI_API_KEY=<HERE IS YOUR SECRET KEY>

Now you can run it with simple python main.py.

Be careful because it will make paid requests.

About

Generative Agents + Roguelike (abandoned)


Languages

Language:Python 99.5%Language:Jinja 0.5%