<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Escape from Zurg</title>
	<atom:link href="http://www.paulbutcher.com/2007/09/escape-from-zurg/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.paulbutcher.com/2007/09/escape-from-zurg/</link>
	<description></description>
	<lastBuildDate>Fri, 03 Feb 2012 16:38:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Sam Halliday</title>
		<link>http://www.paulbutcher.com/2007/09/escape-from-zurg/comment-page-1/#comment-23</link>
		<dc:creator>Sam Halliday</dc:creator>
		<pubDate>Sat, 13 Oct 2007 21:27:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.texperts.com/2007/09/09/escape-from-zurg/#comment-23</guid>
		<description>I&#039;ve written up a Java implementation on the &lt;a href=&quot;http://javablog.co.uk/2007/10/13/escape-from-zurg/&quot; rel=&quot;nofollow&quot;&gt;javablog&lt;/a&gt;. I tried to be as general as possible. Naturally it does work out to be somewhat more verbose than the Ruby or Haskell versions. I actually really like Haskell, although I&#039;ve not quite got the hang of Monads yet.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve written up a Java implementation on the <a href="http://javablog.co.uk/2007/10/13/escape-from-zurg/" rel="nofollow">javablog</a>. I tried to be as general as possible. Naturally it does work out to be somewhat more verbose than the Ruby or Haskell versions. I actually really like Haskell, although I&#8217;ve not quite got the hang of Monads yet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Javablog &#187; Escape from Zurg</title>
		<link>http://www.paulbutcher.com/2007/09/escape-from-zurg/comment-page-1/#comment-22</link>
		<dc:creator>Javablog &#187; Escape from Zurg</dc:creator>
		<pubDate>Sat, 13 Oct 2007 21:24:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.texperts.com/2007/09/09/escape-from-zurg/#comment-22</guid>
		<description>[...] Butcher from the Texperts recently wrote a great blog post with a Ruby implementation of Escape from Zurg. I had been meaning to learn both Ruby and Haskell for a long time and recently [...]</description>
		<content:encoded><![CDATA[<p>[...] Butcher from the Texperts recently wrote a great blog post with a Ruby implementation of Escape from Zurg. I had been meaning to learn both Ruby and Haskell for a long time and recently [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Noah Gibbs</title>
		<link>http://www.paulbutcher.com/2007/09/escape-from-zurg/comment-page-1/#comment-29</link>
		<dc:creator>Noah Gibbs</dc:creator>
		<pubDate>Thu, 20 Sep 2007 22:23:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.texperts.com/2007/09/09/escape-from-zurg/#comment-29</guid>
		<description>Ah!  Sorry, I missed that bit.  Makes sense.</description>
		<content:encoded><![CDATA[<p>Ah!  Sorry, I missed that bit.  Makes sense.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Butcher</title>
		<link>http://www.paulbutcher.com/2007/09/escape-from-zurg/comment-page-1/#comment-28</link>
		<dc:creator>Paul Butcher</dc:creator>
		<pubDate>Thu, 20 Sep 2007 16:38:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.texperts.com/2007/09/09/escape-from-zurg/#comment-28</guid>
		<description>Hey Noah,

The code is correct - you need to define Symbol#to_proc. The source code (and explaination of how it works) is available &lt;a href=&quot;http://pragdave.pragprog.com/pragdave/2005/11/symbolto_proc.html&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;. Or you can download the source of my solution (which includes the Symbol#to_proc trick) &lt;a href=&quot;http://www.texperts.com/wp-content/uploads/2007/09/zurg.zip&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Hey Noah,</p>
<p>The code is correct &#8211; you need to define Symbol#to_proc. The source code (and explaination of how it works) is available <a href="http://pragdave.pragprog.com/pragdave/2005/11/symbolto_proc.html" rel="nofollow">here</a>. Or you can download the source of my solution (which includes the Symbol#to_proc trick) <a href="http://www.texperts.com/wp-content/uploads/2007/09/zurg.zip" rel="nofollow">here</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Noah Gibbs</title>
		<link>http://www.paulbutcher.com/2007/09/escape-from-zurg/comment-page-1/#comment-27</link>
		<dc:creator>Noah Gibbs</dc:creator>
		<pubDate>Thu, 20 Sep 2007 16:30:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.texperts.com/2007/09/09/escape-from-zurg/#comment-27</guid>
		<description>Hello!  I&#039;ve typed this and I&#039;m getting a compile error when defining the &quot;Move&quot; struct, specifically on the line &quot;who.collect(&amp;:time).max&quot;.  It *does* look incorrect.  If I change it to &quot;who.collect{ &#124;toy&#124; toy.time }.max&quot;, it works fine.

  If it helps, I&#039;m using Cygwin ruby 1.8.6.  Maybe the syntax above is for some more recent version?

  For those, like me, who are looking at this and can&#039;t seem to figure it out by inspection, the correct series of moves is:

Woody and Buzz go right
Buzz goes left
Rex and Hamm go right
Woody goes left
Woody and Buzz go right</description>
		<content:encoded><![CDATA[<p>Hello!  I&#8217;ve typed this and I&#8217;m getting a compile error when defining the &#8220;Move&#8221; struct, specifically on the line &#8220;who.collect(&amp;:time).max&#8221;.  It *does* look incorrect.  If I change it to &#8220;who.collect{ |toy| toy.time }.max&#8221;, it works fine.</p>
<p>  If it helps, I&#8217;m using Cygwin ruby 1.8.6.  Maybe the syntax above is for some more recent version?</p>
<p>  For those, like me, who are looking at this and can&#8217;t seem to figure it out by inspection, the correct series of moves is:</p>
<p>Woody and Buzz go right<br />
Buzz goes left<br />
Rex and Hamm go right<br />
Woody goes left<br />
Woody and Buzz go right</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Butcher</title>
		<link>http://www.paulbutcher.com/2007/09/escape-from-zurg/comment-page-1/#comment-26</link>
		<dc:creator>Paul Butcher</dc:creator>
		<pubDate>Sun, 16 Sep 2007 10:24:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.texperts.com/2007/09/09/escape-from-zurg/#comment-26</guid>
		<description>Do let us know how you get on if you do, Sam. I did think about trying to come up with a Java (or C++) solution and decided that I didn&#039;t want to do that kind of violence to my brain :-)

Frankly, I&#039;d be amazed if you can come up with anything even close to the succinctness and clarity of the Haskell or Ruby solutions in Java. But I&#039;d love to be proven wrong!</description>
		<content:encoded><![CDATA[<p>Do let us know how you get on if you do, Sam. I did think about trying to come up with a Java (or C++) solution and decided that I didn&#8217;t want to do that kind of violence to my brain <img src='http://www.paulbutcher.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Frankly, I&#8217;d be amazed if you can come up with anything even close to the succinctness and clarity of the Haskell or Ruby solutions in Java. But I&#8217;d love to be proven wrong!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam Halliday</title>
		<link>http://www.paulbutcher.com/2007/09/escape-from-zurg/comment-page-1/#comment-25</link>
		<dc:creator>Sam Halliday</dc:creator>
		<pubDate>Sun, 16 Sep 2007 09:54:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.texperts.com/2007/09/09/escape-from-zurg/#comment-25</guid>
		<description>I recently bought &quot;Rails for Java Developers&quot; and &quot;Haskell: The Craft of Functional Programming&quot; for my holiday bookshelf. I&#039;ve been in the Java monoculture for too long!

However, I&#039;ve yet to see a more elegant solution in Ruby than in Java... might have a bash at doing this in Java to see if Ruby has some tricks that I missed.</description>
		<content:encoded><![CDATA[<p>I recently bought &#8220;Rails for Java Developers&#8221; and &#8220;Haskell: The Craft of Functional Programming&#8221; for my holiday bookshelf. I&#8217;ve been in the Java monoculture for too long!</p>
<p>However, I&#8217;ve yet to see a more elegant solution in Ruby than in Java&#8230; might have a bash at doing this in Java to see if Ruby has some tricks that I missed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lojic.com &#187; Blog Archive &#187; Escape from Zurg</title>
		<link>http://www.paulbutcher.com/2007/09/escape-from-zurg/comment-page-1/#comment-24</link>
		<dc:creator>lojic.com &#187; Blog Archive &#187; Escape from Zurg</dc:creator>
		<pubDate>Mon, 10 Sep 2007 20:39:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.texperts.com/2007/09/09/escape-from-zurg/#comment-24</guid>
		<description>[...] author blogged about it here - nice solution. He refers to the original paper that got things started, but I haven&#8217;t had [...]</description>
		<content:encoded><![CDATA[<p>[...] author blogged about it here &#8211; nice solution. He refers to the original paper that got things started, but I haven&#8217;t had [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

