# Gondor Library 0.1.1

**URL:** <https://www.ruby-forum.com/t/gondor-library-0-1-1/134013>\
**Category:** Ruby\
**Created:** [April 6, 2008, 4:44pm UTC](https://www.ruby-forum.com/t/gondor-library-0-1-1/134013 "2008-04-06T16:44:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phillip\_G](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/7ab992/32.png) [@Phillip\_G](https://www.ruby-forum.com/u/Phillip_G)\
**Post date:** [April 6, 2008, 4:44pm UTC](https://www.ruby-forum.com/t/gondor-library-0-1-1/134013/1 "2008-04-06T16:44:35Z")

</div>

The Gondor Library enables users of the Ruby language (on the MRI, JRuby  
or IronRuby)  
to quickly implement agents for all kinds of situations (for example  
game AI, or  
stock market modeling), while focusing on the task at hand, instead of  
writing a  
full agent simulation.

It is currently fully implemented in Ruby itself, with no outside  
dependencies.

=Installation and Usage

gem install gondorlibrary

require “rubygems”  
require “gondor”

braveheart = Gondor::AI:Entity.new(“William Wallace”)  
braveheart.killed\_english\_men 100  
braveheart.update\_killed\_english\_men 50  
puts braveheart.killed\_english\_men

Get the source:

svn checkout [http://gondorlibrary.googlecode.com/svn/trunk/](http://gondorlibrary.googlecode.com/svn/trunk/)  
gondorlibrary-read-only

=About  
Milestone 1 (Version 0.1.0) contains a very basic, but working Entity  
system, featuring message sending, queues, and flexible entity creation.

=Features

- Entity attributes, that can be changed over time, and can be  
arbitrarily defined at runtime (either at the first call, or  
beforehand).
- Simple message queuing and retrieval (nothing more implemented yet).

=The Near Future  
GL will receive its own language (a DSL, I guess), to create rules and  
messages for the entities, to make use as easy as possible.

= Online

- Project home and source code and end user documentation:  
[Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/gondorlibrary/)

- API and hacker’s documentation: [http://gondorlibrary.rubyforge.org/](http://gondorlibrary.rubyforge.org/)

- Discussion: [http://groups.google.com/group/gondor-library-discussion](http://groups.google.com/group/gondor-library-discussion)  
= Version history:

- 0.1.1

- 0.1.0
