<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>mj41</title>
    <link rel="alternate" type="text/html" href="http://blogs.perl.org/users/mj41/" />
    <link rel="self" type="application/atom+xml" href="http://blogs.perl.org/users/mj41/atom.xml" />
    <id>tag:blogs.perl.org,2009-11-03:/users/mj41//505</id>
    <updated>2011-12-05T21:51:11Z</updated>
    <subtitle>Perl, programming and fun.</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type Pro 4.38</generator>

<entry>
    <title>AI Challenge 2011 - Python, Ruby, PHP, Perl</title>
    <link rel="alternate" type="text/html" href="http://blogs.perl.org/users/mj41/2011/12/ai-challenge-2011---python-ruby-php-perl.html" />
    <id>tag:blogs.perl.org,2011:/users/mj41//505.2544</id>

    <published>2011-12-05T18:18:19Z</published>
    <updated>2011-12-05T21:51:11Z</updated>

    <summary>The AI Challenge Fall 2011 (sponsored by Google) is all about creating a computer program (in any language) that controls a colony of ants which fight against other colonies for domination....</summary>
    <author>
        <name>mj41</name>
        <uri>http://mj41.cz</uri>
    </author>
    
        <category term="Fun" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Perl5" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="aichallenge" label="aichallenge" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="fun" label="fun" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="perl5" label="perl5" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blogs.perl.org/users/mj41/">
        <![CDATA[<a href="http://aichallenge.org/index.php">The AI Challenge Fall 2011</a> (sponsored by Google) is all about creating a computer program (in any language) that controls a colony of ants which fight against other colonies for domination.<br />

]]>
        <![CDATA[Look at number of users per language:
<ul>
<li><a href="http://aichallenge.org/language_profile.php?language=Perl">Perl: 81</a></li>
<li><a href="http://aichallenge.org/language_profile.php?language=Ruby">Ruby: 174</a></li>
<li><a href="http://aichallenge.org/language_profile.php?language=PHP">PHP: 339</a></li>
<li><a href="http://aichallenge.org/language_profile.php?language=Python">Python: 1759</a>
</ul>
Number of all users is 2924. <a href="https://github.com/aichallenge/aichallenge/wiki">Game engine</a> is written in Python and you can run your games (and see game animation in your browser) on your local machine.
<br />

<a href="http://aichallenge.org/rankings.php">The best ranks and skills</a> for some languages are
<ul>
   <li>Java: 1 (rank) / 90.49 (skill)</li>
   <li>Go: 2 / 90.45</li>
   <li>C++: 4 / 87.40</li>
   <li>Python: 15 / 84.14</li>
   <li>C#: 21 / 82.97</li>
   <li>C: 25 / 82.12</li>
   <li>Haskell: 38 / 81.06</li>
   <li>Lisp: 42 / 80.77</li>
   <li>Pascal: 73 / 78.87</li>
   <li>...</li>
   <li>Ruby: 184 / 74.32</li>
   <li>PHP: 192 / 74.11</li>
   <li>Perl: 397 / 69.69</li>
</ul>

You can join #perl-ai channel on irc.freenode.org and start hacking with your bot based on my <a href="https://github.com/mj41/AIAnts">AIAnts Perl framework</a> (on GitHub). My bot's current <a href="http://aichallenge.org/profile.php?user=6753">skill is 52.94 and rank 1742</a>. If you can fix <a href="https://github.com/mj41/AIAnts/issues/1">issue 1 (turn timed out)</a> and use real dir_from_to path finding algorithm (<a href="https://github.com/mj41/AIAnts/blob/master/lib/AIAnts/Map.pm#L764">already prepared</a> - based on AI::Pathfinding::AStar) then you can beat my bot (which use stupid dir_from_to_easy).<br />
<br />
AIAnts Perl framework documentation and code:
<ul>
   <li><a href="https://github.com/mj41/AIAnts/blob/master/docs/devel.pod">docs/devel.pod</a> - base howto</li>
   <li><a href="https://github.com/mj41/AIAnts/blob/master/bots/RandomBot.pm">bots/RandomBot.pm</a> - random bot example</li>
   <li><a href="https://github.com/mj41/AIAnts/blob/master/bots/HungryBot.pm">bots/HungryBot.pm</a> - hungry bot example</li>
   <li><a href="https://github.com/mj41/AIAnts/blob/master/MyBot.pm">MyBot.pm</a> - mj41cz's bot, skill 52.94</li>
</ul>
Be aware that much of AIAnts framework code is in experimental state. Not tested, not documented.<br />
<br />
Less than two weeks remain to register and upload your bot code. On December 18 at 11:59pm EST submissions will be closed.<br />
<br />
Enjoy fun.]]>
    </content>
</entry>

</feed>
