<?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>Tamás Blog &#187; python</title>
	<atom:link href="http://tmarki.com/wp/tag/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://tmarki.com/wp</link>
	<description>The personal home page of Tamas Marki</description>
	<lastBuildDate>Tue, 16 Aug 2011 14:05:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>IRC Uno bot for Phenny</title>
		<link>http://tmarki.com/wp/2010/02/18/irc-uno-bot-for-phenny/</link>
		<comments>http://tmarki.com/wp/2010/02/18/irc-uno-bot-for-phenny/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 22:18:02 +0000</pubDate>
		<dc:creator>Márki Tamás</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bot]]></category>
		<category><![CDATA[irc]]></category>
		<category><![CDATA[irc bot]]></category>
		<category><![CDATA[phenny]]></category>
		<category><![CDATA[phenny game]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[uno]]></category>

		<guid isPermaLink="false">http://tmarki.com/wp/?p=52</guid>
		<description><![CDATA[<p>In my free time I like to hang out on a particular IRC channel, where we occasionally play some simple games. One of our favorite was Uno, a simple mIRC script that hosted Uno games. Since it is a mIRC script, it&#8217;s difficult to keep on the channel all the time, so I decided to [...]]]></description>
			<content:encoded><![CDATA[<p>In my free time I like to hang out on a particular IRC channel, where we occasionally play some simple games. One of our favorite was Uno, a simple mIRC script that hosted Uno games. Since it is a mIRC script, it&#8217;s difficult to keep on the channel all the time, so I decided to clone it for <a href="http://inamidst.com/phenny/">Phenny, the Python IRC bot</a>.</p>
<p>It was a nice exercise, and I think the end result is not so bad, so I&#8217;m making the code public.</p>
<p><strong>Features:</strong><br />
- slightly modified UNO gameplay<br />
- unlimited number of players in a round (minimum 2)<br />
- logging of total score, games played, won, and total time spent playing per nickname<br />
- separated strings, so localization to other languages should be easy</p>
<p><strong>How to set up:</strong><br />
1. Download the unobot.zip file below, and extract the unobot.py file from it.<br />
2. Install phenny. Edit the ~/.phenny/default.py config, add the unobot.py file with path to the &#8216;extra&#8217; modules. Set up the other settings as desired.<br />
3. Edit the unobot.py file, set the channel&#8217;s name (same as in default.py), and change the score file path. Make sure that Phenny has the proper rights for writing the file.<br />
4. All set, start phenny and enjoy playing, by typing the .uno command in the channel!</p>
<p><strong>Known issues:</strong><br />
Note that ordinary IRC nicknames are used to identify the players. The bot cannot react to a player leaving the channel or timeouting, either the game must be stopped (if the game owner quit then someone will have to take their nick temporarly to do the .unostop action) or someone must step in with the same nickname.</p>
<p><strong></strong><a title="Phenny Uno Bot" href="http://www.tmarki.com/unobot.zip">Download unobot.zip</a></p>
<p>Uno Bot for Phenny is licensed under the FreeBSD license.</p>
<p>For more games for Phenny visit <a href="http://relet.net/trac/phenny-games" target="_blank">Phenny Games</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://tmarki.com/wp/2010/02/18/irc-uno-bot-for-phenny/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

