<?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>Daniel Stutzbach &#187; python</title>
	<atom:link href="http://www.barsoom.org/tag/python/feed" rel="self" type="application/rss+xml" />
	<link>http://www.barsoom.org</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 05 Jan 2012 07:46:42 +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>A Scriptable Equity Calculator</title>
		<link>http://www.barsoom.org/scriptable-equity-calculator</link>
		<comments>http://www.barsoom.org/scriptable-equity-calculator#comments</comments>
		<pubDate>Thu, 24 Jun 2010 20:09:42 +0000</pubDate>
		<dc:creator>Daniel Stutzbach</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[poker]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.barsoom.org/?p=891</guid>
		<description><![CDATA[<p>For all of your programming poker players out there, yesterday I made the <a href="http://pokersleuth.com/">Poker Sleuth</a> <a href="http://pokersleuth.com/poker-equity-calculator.shtml">Equity Calculator</a> scriptable with <a href="http://pokersleuth.com/programmable-poker-calculator.shtml">bindings for C/C++, C#, and Python.</a></p> <p>If you have easy_install or pip set up for Python, you can just do &#8220;easy_install pokersleuth&#8221;. It requires a 32-bit version of Python for Windows.</p> <p>As an <p style="font-family: serif;">Continue reading &#8220;<a href="http://www.barsoom.org/scriptable-equity-calculator">A Scriptable Equity Calculator</a>&#8221;</p>]]></description>
			<content:encoded><![CDATA[<p>For all of your programming poker players out there, yesterday I made the <a href="http://pokersleuth.com/">Poker Sleuth</a> <a href="http://pokersleuth.com/poker-equity-calculator.shtml">Equity Calculator</a> scriptable with <a href="http://pokersleuth.com/programmable-poker-calculator.shtml">bindings for C/C++, C#, and Python.</a></p>
<p>If you have easy_install or pip set up for Python, you can just do &ldquo;easy_install pokersleuth&rdquo;.  It requires a 32-bit version of Python for Windows.</p>
<p>As an example, to compute the odds of winning when you have a pair of Jacks, your opponent has the Ace and 5 of diamonds, and the board cards are the 3 of diamonds, 5 of clubs, and 9 of diamonds:</p>
<p><code>>>> import pokersleuth<br />
>>> pokersleuth.calculate_equity('3d5c9d', ('JJ', 'Ad5d')<br />
[0.48225, 0.51775]</code></p>
<p>The module can also be used directly from the command line:</p>
<p><code>C:\>python -m pokersleuth 3d5c9d JJ Ad5d<br />
[0.48225, 0.51775]</code></p>
<p>It supports up to 10 players and a quite extensive syntax for specifying hand ranges.  Accuracy is within one percentage point with at least 99.5% probability.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.barsoom.org/scriptable-equity-calculator/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

