<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jamie&#039;s Blog &#187; python</title>
	<atom:link href="http://www.angelforge.org/wordpress/tags/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.angelforge.org/wordpress</link>
	<description>My life is words.</description>
	<lastBuildDate>Sat, 28 Jan 2012 04:35:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Tron Bot</title>
		<link>http://www.angelforge.org/wordpress/programming/tron-bot/</link>
		<comments>http://www.angelforge.org/wordpress/programming/tron-bot/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 01:31:35 +0000</pubDate>
		<dc:creator>Jamie</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[ai]]></category>
		<category><![CDATA[bot]]></category>
		<category><![CDATA[flood fill]]></category>
		<category><![CDATA[foss]]></category>
		<category><![CDATA[minimax]]></category>
		<category><![CDATA[oss]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[tron]]></category>

		<guid isPermaLink="false">http://www.angelforge.org/wordpress/?p=2277</guid>
		<description><![CDATA[I spent a few hours cooking up an entry for this Tron Bot AI Competition. The starter packages they provided made it really easy to enter. I created an entry in python. The competition page is: http://csclub.uwaterloo.ca/contest/ The strategy for my bot: I tried to implement painter&#8217;s flood fill per Wikipedia. This worked okay and [...]]]></description>
			<content:encoded><![CDATA[<p>I spent a few hours cooking up an entry for this Tron Bot AI Competition. The starter packages they provided made it really easy to enter. I created an entry in python. The competition page is: <a href="http://csclub.uwaterloo.ca/contest/">http://csclub.uwaterloo.ca/contest/</a></p>
<p>The strategy for my bot:</p>
<ol>
<li>I tried to implement painter&#8217;s flood fill per  Wikipedia. This worked okay and I got to around ~300.</li>
<li>Then I implemented A<tt>*</tt>. The strategy was to get  within 5 squares of the enemy, and then flood fill. My reasoning was  that if I had a better fill algorithm, I would win at that point.</li>
<li>Next, I tried to implement minimax with alpha-beta  pruning. It&#8217;s not tested, but it should be fairly close. All I am  missing is a utility function (well, that is probably the most impt  piece!). For the utility function, I wanted to bisect the playing field  by finding the perpendicular bisector between the players, then  flood-filling to determine the number of blank spaces in each player&#8217;s  respective region. I have the bisection algorithm done, but got bored  once I started implementing the flood fill.</li>
</ol>
<p>The project page is, it contains the source as well: <a href="http://code.google.com/p/tron-bot-waterloo/">http://code.google.com/p/tron-bot-waterloo/</a></p>
<p>Bot runs:<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="445" height="364" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/Jyys22xoWDI&amp;hl=en_US&amp;fs=1&amp;rel=0&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;hd=1&amp;border=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="445" height="364" src="http://www.youtube.com/v/Jyys22xoWDI&amp;hl=en_US&amp;fs=1&amp;rel=0&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;hd=1&amp;border=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.angelforge.org/wordpress/programming/tron-bot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

