Giter Site home page Giter Site logo

pygoap's Introduction

pygoap v.3
requires python 2.x

PyGoap is a small library for designing AI in python.  The basic library is based off of a well-known idea of using graph searches to to create realistic agents in real-time.  Behavior is determined in real-time and is extremely open ended and well suited for emergent behaviors.

Agents, or npcs, can be programmed very simply with an easy to understand api.  Check the 'npcs' folder and read through actions.py to get an idea of how it works.

This library is not complete, but is working as-is.  The demo gives you a simple diagram of the game world and the debugging information near the bottom lets you know what is going on 'in the heads' of the agents.  Note: the demo requires pygame.



I've build AI Agents around the concept of Actions and ActionBuilders.

Actions can be subclassed from a few different action types.
ActionBuilders will search a blackboard and return a list of actions that can be performed.



If you are unfamiliar with GOAP, I invite you to do some research online, it may help you to understand this module.



you can watch it work by running "test.py".


many thanks to opengameart.org for providing and hosting the tileset used in the project.  tiles for the map can be found at:
http://opengameart.org/content/worldmapoverworld-tileset
under the CC-BY 3.0 license.

have fun.

pygoap's People

Contributors

bitcraft avatar

Watchers

 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.