[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /feed.php on line 173: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /feed.php on line 174: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
AI Challenge Forums Falls 2011, sponsored by Google 2011-12-25T14:30:56+00:00 http://forums.aichallenge.org/feed.php?f=25&t=1663 2011-12-25T14:30:56+00:00 2011-12-25T14:30:56+00:00 http://forums.aichallenge.org/viewtopic.php?t=1663&p=13947#p13947 <![CDATA[Re: Improved Python + NumPy starter package]]> Statistics: Posted by kirnatbkdotru — Sun Dec 25, 2011 2:30 pm


]]>
2011-11-16T08:15:48+00:00 2011-11-16T08:15:48+00:00 http://forums.aichallenge.org/viewtopic.php?t=1663&p=11598#p11598 <![CDATA[Re: Improved Python + NumPy starter package]]> Statistics: Posted by mac — Wed Nov 16, 2011 8:15 am


]]>
2011-11-16T08:16:23+00:00 2011-11-16T08:12:10+00:00 http://forums.aichallenge.org/viewtopic.php?t=1663&p=11597#p11597 <![CDATA[Re: Improved Python + NumPy starter package]]> Statistics: Posted by mac — Wed Nov 16, 2011 8:12 am


]]>
2011-11-15T18:17:36+00:00 2011-11-15T18:17:36+00:00 http://forums.aichallenge.org/viewtopic.php?t=1663&p=11537#p11537 <![CDATA[Re: Improved Python + NumPy starter package]]> Statistics: Posted by slug — Tue Nov 15, 2011 6:17 pm


]]>
2011-10-28T14:51:31+00:00 2011-10-28T14:51:31+00:00 http://forums.aichallenge.org/viewtopic.php?t=1663&p=10144#p10144 <![CDATA[Improved Python + NumPy starter package]]>


To quote the readme:

These are the significant changes from ants.py in the official Python starter
package:

-ants.map is now a 2D numpy array. Note that writing map[r,c] is a bit
faster than map[r][c]. More importantly, you can index by a position directly:
map[pos]. Yay!
However, indexing a numpy array is sadly 10x slower than indexing a list of
lists, so it would be a good idea to copy the map back to a temporary list of
lists each turn if you want to do lots of indexing (and if you're not... well,
what are you doing?!).
-Tiles in ants.map are now UNSEEN instead of LAND if you've never seen them.
-ants.visible is a 2D numpy array of booleans, marking the tiles visible this
turn, instead of a function.
-The locations of food and of ant hills are now remembered even when they aren't
visible. They are automatically forgotten if their tile becomes visible but
they've disappeared.
-ants.turn tracks the turn number and ants.turns the turn limit.
-ants.neighbours and ants.neighbours_and_dirs return lists of the four tiles
surrounding a tile, or (position, direction) tuples.
-ants.render_text_map is improved; in the official package it doesn't
show anthills (or unseen tiles of course).
-ants.issue_order can now called like ants.issue_order(ant_loc, direction) or
ants.issue_order(ant_loc, destination) rather than just
ants.issue_order((ant_loc, direction)).
-There's a debug() function in ants.py for convenience.

MyBot.py is identical.

See sample.py for some example usage of numpy. I'm not actually recommending you
use the BFS function therein directly for pathing to food, but it's a decent
start for a simple bot and at least one current top 10 bot is that stupid! You
might find some other use...

Statistics: Posted by tmc — Fri Oct 28, 2011 2:51 pm


]]>