# (no subject)

**URL:** <https://www.ruby-forum.com/t/no-subject/133976>\
**Category:** Ruby\
**Created:** [April 5, 2008, 11:54pm UTC](https://www.ruby-forum.com/t/no-subject/133976 "2008-04-05T23:54:35Z")\
**Posts on this page:** 2\
**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 5, 2008, 11:54pm UTC](https://www.ruby-forum.com/t/no-subject/133976/1 "2008-04-05T23:54: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)

---

<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 5, 2008, 11:59pm UTC](https://www.ruby-forum.com/t/no-subject/133976/2 "2008-04-05T23:59:51Z")

</div>

My apologies for not catching the syntax error in my Rakefile. ☹

Phillip G. wrote:

> svn checkout [http://gondorlibrary.googlecode.com/svn/trunk/](http://gondorlibrary.googlecode.com/svn/trunk/) gondorlibrary-read-only  
> 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: [http://code.google.com/p/gondorlibrary/](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)

–  
Phillip G.  
Twitter: [twitter.com/cynicalryan](http://twitter.com/cynicalryan)

- You know you’ve been hacking too long when…  
…you’re writing a homework assignment, and get to the end of the line  
in the middle of a sentence, tack on a '',  
and continue writing on the next line.
