<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: HAMURABI.BAS</title>
	<atom:link href="http://programmingpraxis.com/2010/07/27/hamurabi-bas/feed/" rel="self" type="application/rss+xml" />
	<link>http://programmingpraxis.com/2010/07/27/hamurabi-bas/</link>
	<description>A collection of etudes, updated weekly, for the education and enjoyment of the savvy programmer</description>
	<lastBuildDate>Mon, 28 May 2012 03:30:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Martin DeMello</title>
		<link>http://programmingpraxis.com/2010/07/27/hamurabi-bas/#comment-1551</link>
		<dc:creator><![CDATA[Martin DeMello]]></dc:creator>
		<pubDate>Thu, 05 Aug 2010 10:38:40 +0000</pubDate>
		<guid isPermaLink="false">http://programmingpraxis.com/?p=2727#comment-1551</guid>
		<description><![CDATA[Here&#039;s my solution in ruby:

http://pastie.org/681968]]></description>
		<content:encoded><![CDATA[<p>Here&#8217;s my solution in ruby:</p>
<p><a href="http://pastie.org/681968" rel="nofollow">http://pastie.org/681968</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gold</title>
		<link>http://programmingpraxis.com/2010/07/27/hamurabi-bas/#comment-1550</link>
		<dc:creator><![CDATA[gold]]></dc:creator>
		<pubDate>Thu, 05 Aug 2010 00:52:12 +0000</pubDate>
		<guid isPermaLink="false">http://programmingpraxis.com/?p=2727#comment-1550</guid>
		<description><![CDATA[http://wiki.tcl.tk/26775,
Loaded an etcl version of Hamurabi with
either a small console demo version or
a larger etcl canvas version.
I&#039;m calling it Game kingdom of Strategy
gold]]></description>
		<content:encoded><![CDATA[<p><a href="http://wiki.tcl.tk/26775" rel="nofollow">http://wiki.tcl.tk/26775</a>,<br />
Loaded an etcl version of Hamurabi with<br />
either a small console demo version or<br />
a larger etcl canvas version.<br />
I&#8217;m calling it Game kingdom of Strategy<br />
gold</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2010-08-04 &#171; dstelow notes&#8230;</title>
		<link>http://programmingpraxis.com/2010/07/27/hamurabi-bas/#comment-1549</link>
		<dc:creator><![CDATA[links for 2010-08-04 &#171; dstelow notes&#8230;]]></dc:creator>
		<pubDate>Wed, 04 Aug 2010 23:05:46 +0000</pubDate>
		<guid isPermaLink="false">http://programmingpraxis.com/?p=2727#comment-1549</guid>
		<description><![CDATA[[...] HAMURABI.BAS « Programming Praxis Your task is to reimplement HAMURABI.BAS in a more modern computer language. Don’t peek at the solution unless you want to deprive yourself of the sheer joy of working out the spaghetti code and figuring out what the variables really stand for. When you are finished, you are welcome to read or run a suggested solution, or to post your own solution or discuss the exercise in the comments below. (tags: dev compsci programming todo) [...]]]></description>
		<content:encoded><![CDATA[<p>[...] HAMURABI.BAS « Programming Praxis Your task is to reimplement HAMURABI.BAS in a more modern computer language. Don’t peek at the solution unless you want to deprive yourself of the sheer joy of working out the spaghetti code and figuring out what the variables really stand for. When you are finished, you are welcome to read or run a suggested solution, or to post your own solution or discuss the exercise in the comments below. (tags: dev compsci programming todo) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://programmingpraxis.com/2010/07/27/hamurabi-bas/#comment-1547</link>
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Wed, 04 Aug 2010 00:26:45 +0000</pubDate>
		<guid isPermaLink="false">http://programmingpraxis.com/?p=2727#comment-1547</guid>
		<description><![CDATA[I wrote a version in Factor and blogged about it: 

    http://re-factor.blogspot.com/2010/08/hamurabi.html

The implementation can be seen here:

   http://paste.factorcode.org/paste?id=1833]]></description>
		<content:encoded><![CDATA[<p>I wrote a version in Factor and blogged about it: </p>
<p>    <a href="http://re-factor.blogspot.com/2010/08/hamurabi.html" rel="nofollow">http://re-factor.blogspot.com/2010/08/hamurabi.html</a></p>
<p>The implementation can be seen here:</p>
<p>   <a href="http://paste.factorcode.org/paste?id=1833" rel="nofollow">http://paste.factorcode.org/paste?id=1833</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rörd</title>
		<link>http://programmingpraxis.com/2010/07/27/hamurabi-bas/#comment-1535</link>
		<dc:creator><![CDATA[Rörd]]></dc:creator>
		<pubDate>Sat, 31 Jul 2010 19:35:38 +0000</pubDate>
		<guid isPermaLink="false">http://programmingpraxis.com/?p=2727#comment-1535</guid>
		<description><![CDATA[Sorry, there was a problem with the paste. The URL is now: http://lisp.pastebin.com/r1gL4zYT]]></description>
		<content:encoded><![CDATA[<p>Sorry, there was a problem with the paste. The URL is now: <a href="http://lisp.pastebin.com/r1gL4zYT" rel="nofollow">http://lisp.pastebin.com/r1gL4zYT</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rörd</title>
		<link>http://programmingpraxis.com/2010/07/27/hamurabi-bas/#comment-1534</link>
		<dc:creator><![CDATA[Rörd]]></dc:creator>
		<pubDate>Sat, 31 Jul 2010 19:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://programmingpraxis.com/?p=2727#comment-1534</guid>
		<description><![CDATA[So here&#039;s my reimplementation in Common Lisp: http://lisp.pastebin.com/wnUkj52V

I started with using tagbody/go for the control flow, but I had replaced all uses of these before I arrived at a working version.]]></description>
		<content:encoded><![CDATA[<p>So here&#8217;s my reimplementation in Common Lisp: <a href="http://lisp.pastebin.com/wnUkj52V" rel="nofollow">http://lisp.pastebin.com/wnUkj52V</a></p>
<p>I started with using tagbody/go for the control flow, but I had replaced all uses of these before I arrived at a working version.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rörd</title>
		<link>http://programmingpraxis.com/2010/07/27/hamurabi-bas/#comment-1529</link>
		<dc:creator><![CDATA[Rörd]]></dc:creator>
		<pubDate>Fri, 30 Jul 2010 19:17:27 +0000</pubDate>
		<guid isPermaLink="false">http://programmingpraxis.com/?p=2727#comment-1529</guid>
		<description><![CDATA[&gt; Hm… How INT and RND are work in the basic? Is INT(5*RND(1)) uniformy distributed in {0, 1, .., 4}?

IIRC yes. INT will truncate a floating point number (cut off everything behind the point), and RND returns a floating point number between 0 (including) and 1 (excluding).
(The argument to RND will be used as new seed, when negative; create a new seed, when zero; and use the existing seed, when positive.)]]></description>
		<content:encoded><![CDATA[<p>&gt; Hm… How INT and RND are work in the basic? Is INT(5*RND(1)) uniformy distributed in {0, 1, .., 4}?</p>
<p>IIRC yes. INT will truncate a floating point number (cut off everything behind the point), and RND returns a floating point number between 0 (including) and 1 (excluding).<br />
(The argument to RND will be used as new seed, when negative; create a new seed, when zero; and use the existing seed, when positive.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TravisH82</title>
		<link>http://programmingpraxis.com/2010/07/27/hamurabi-bas/#comment-1528</link>
		<dc:creator><![CDATA[TravisH82]]></dc:creator>
		<pubDate>Fri, 30 Jul 2010 16:28:05 +0000</pubDate>
		<guid isPermaLink="false">http://programmingpraxis.com/?p=2727#comment-1528</guid>
		<description><![CDATA[Wish you were allowed to edit your posts here.. or maybe you can and I don&#039;t know how.. anyways.  I think I figured out how to embed the code in the comments here...

]]></description>
		<content:encoded><![CDATA[<p>Wish you were allowed to edit your posts here.. or maybe you can and I don&#8217;t know how.. anyways.  I think I figured out how to embed the code in the comments here&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alexander</title>
		<link>http://programmingpraxis.com/2010/07/27/hamurabi-bas/#comment-1517</link>
		<dc:creator><![CDATA[alexander]]></dc:creator>
		<pubDate>Wed, 28 Jul 2010 20:50:47 +0000</pubDate>
		<guid isPermaLink="false">http://programmingpraxis.com/?p=2727#comment-1517</guid>
		<description><![CDATA[Hm... How INT and RND are work in the basic? Is INT(5*RND(1)) uniformy distributed in {0, 1, .., 4}?]]></description>
		<content:encoded><![CDATA[<p>Hm&#8230; How INT and RND are work in the basic? Is INT(5*RND(1)) uniformy distributed in {0, 1, .., 4}?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alexander</title>
		<link>http://programmingpraxis.com/2010/07/27/hamurabi-bas/#comment-1516</link>
		<dc:creator><![CDATA[alexander]]></dc:creator>
		<pubDate>Wed, 28 Jul 2010 20:27:21 +0000</pubDate>
		<guid isPermaLink="false">http://programmingpraxis.com/?p=2727#comment-1516</guid>
		<description><![CDATA[One more rendition, in lua: http://codepad.org/pc8FSfnQ

It seems that average size of population in optimal game should be somewhere between 380 and 390 (if we remove restriction on the game duration).]]></description>
		<content:encoded><![CDATA[<p>One more rendition, in lua: <a href="http://codepad.org/pc8FSfnQ" rel="nofollow">http://codepad.org/pc8FSfnQ</a></p>
<p>It seems that average size of population in optimal game should be somewhere between 380 and 390 (if we remove restriction on the game duration).</p>
]]></content:encoded>
	</item>
</channel>
</rss>

