Coder Social home page Coder Social logo

adventuregpt's Introduction

AdventureGPT

An set of autonomous agents designed to play the 1977 game ADVENTURE or Colossal Cave Adventure. The code base here is based off code from the following repos:

That said, code from other repos has been heavily modified and all modifications are licensed under the Apache 2.0 License.

Currently, the only requirement is an OpenAI API key and to have it set as the OPENAI_API_KEY environment variable.

Running

Run the code by cloning the repository, navigate to the cloned repository, and run the following commands:

python -m pip install -r requirements.txt
python -m adventuregpt

Add a --help flag to see the command line arguments.

TODO

Here is a list of eventual goals for the project:

  • Add map/location agent
  • Win the game
  • Add a curses style UI for displaying tasks and prompts while showing gameplay in its own pane
  • Better utilization of context/memory in prompts, maybe storing results in a vector DB
  • Add a "replay" feature to take a history dump from a run and replay the main game text (for media creation)

Contributing

This project is a playground for me to learn more about prompt engineering and play with OpenAI's models. That said, I am interested in pushing this to the absolute limit of what is possible. If you want to contribute, make a fork and create pull requests. I will do my best to be a good steward of the project and comment on pull requests within a timely manner.

adventuregpt's People

Contributors

brandon-rhodes avatar jaraco avatar oaguy1 avatar pt2302 avatar zhammer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.