<?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: Using BitmapData to manage a deck of cards &#8211; part 2</title>
	<atom:link href="http://www.emanueleferonato.com/2007/12/28/using-bitmapdata-to-manage-a-deck-of-cards-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.emanueleferonato.com/2007/12/28/using-bitmapdata-to-manage-a-deck-of-cards-part-2/</link>
	<description>italian geek and PROgrammer</description>
	<lastBuildDate>Sat, 11 Feb 2012 05:27:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: John-Michael Glenn</title>
		<link>http://www.emanueleferonato.com/2007/12/28/using-bitmapdata-to-manage-a-deck-of-cards-part-2/#comment-453513</link>
		<dc:creator>John-Michael Glenn</dc:creator>
		<pubDate>Wed, 27 May 2009 06:07:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2007/12/28/using-bitmapdata-to-manage-a-deck-of-cards-part-2/#comment-453513</guid>
		<description>I made a slightly better deck shuffler on my own, compare it and see how ya&#039;ll like it:

var deck:Array = new Array(&quot;S1&quot;, &quot;S2&quot;, &quot;S3&quot;, &quot;S4&quot;, &quot;S5&quot;, &quot;S6&quot;, &quot;S7&quot;, &quot;S8&quot;, &quot;S9&quot;, &quot;S10&quot;, &quot;S11&quot;, &quot;S12&quot;, &quot;S13&quot;, &quot;C1&quot;, &quot;C2&quot;, &quot;C3&quot;, &quot;C4&quot;, &quot;C5&quot;, &quot;C6&quot;, &quot;C7&quot;, &quot;C8&quot;, &quot;C9&quot;, &quot;C10&quot;, &quot;C11&quot;, &quot;C12&quot;, &quot;C13&quot;, &quot;D1&quot;, &quot;D2&quot;, &quot;D3&quot;, &quot;D4&quot;, &quot;D5&quot;, &quot;D6&quot;, &quot;D7&quot;, &quot;D8&quot;, &quot;D9&quot;, &quot;D10&quot;, &quot;D11&quot;, &quot;D12&quot;, &quot;D13&quot;, &quot;H1&quot;, &quot;H2&quot;, &quot;H3&quot;, &quot;H4&quot;, &quot;H5&quot;, &quot;H6&quot;, &quot;H7&quot;, &quot;H8&quot;, &quot;H9&quot;, &quot;H10&quot;, &quot;H11&quot;, &quot;H12&quot;, &quot;H13&quot;);
var deck2:Array = new Array();
for (var i:Number = 0; i&lt;52; i++) {
	var r:Number = random(deck.length);
	var pick = deck[r];
	var card = deck.splice(r, 1);
	deck2.push(card);
}
trace(&quot;Shuffled: &quot;+deck2);</description>
		<content:encoded><![CDATA[<p>I made a slightly better deck shuffler on my own, compare it and see how ya&#8217;ll like it:</p>
<p>var deck:Array = new Array(&#8220;S1&#8243;, &#8220;S2&#8243;, &#8220;S3&#8243;, &#8220;S4&#8243;, &#8220;S5&#8243;, &#8220;S6&#8243;, &#8220;S7&#8243;, &#8220;S8&#8243;, &#8220;S9&#8243;, &#8220;S10&#8243;, &#8220;S11&#8243;, &#8220;S12&#8243;, &#8220;S13&#8243;, &#8220;C1&#8243;, &#8220;C2&#8243;, &#8220;C3&#8243;, &#8220;C4&#8243;, &#8220;C5&#8243;, &#8220;C6&#8243;, &#8220;C7&#8243;, &#8220;C8&#8243;, &#8220;C9&#8243;, &#8220;C10&#8243;, &#8220;C11&#8243;, &#8220;C12&#8243;, &#8220;C13&#8243;, &#8220;D1&#8243;, &#8220;D2&#8243;, &#8220;D3&#8243;, &#8220;D4&#8243;, &#8220;D5&#8243;, &#8220;D6&#8243;, &#8220;D7&#8243;, &#8220;D8&#8243;, &#8220;D9&#8243;, &#8220;D10&#8243;, &#8220;D11&#8243;, &#8220;D12&#8243;, &#8220;D13&#8243;, &#8220;H1&#8243;, &#8220;H2&#8243;, &#8220;H3&#8243;, &#8220;H4&#8243;, &#8220;H5&#8243;, &#8220;H6&#8243;, &#8220;H7&#8243;, &#8220;H8&#8243;, &#8220;H9&#8243;, &#8220;H10&#8243;, &#8220;H11&#8243;, &#8220;H12&#8243;, &#8220;H13&#8243;);<br />
var deck2:Array = new Array();<br />
for (var i:Number = 0; i&lt;52; i++) {<br />
	var r:Number = random(deck.length);<br />
	var pick = deck[r];<br />
	var card = deck.splice(r, 1);<br />
	deck2.push(card);<br />
}<br />
trace(&#8220;Shuffled: &#8220;+deck2);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.emanueleferonato.com/2007/12/28/using-bitmapdata-to-manage-a-deck-of-cards-part-2/#comment-271511</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Mon, 08 Sep 2008 00:56:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2007/12/28/using-bitmapdata-to-manage-a-deck-of-cards-part-2/#comment-271511</guid>
		<description>Thanks so much for posting this. I have been looking for a simple card shuffle and deal routine for a while now. This is be far the best. Thanks for taking the time to share.</description>
		<content:encoded><![CDATA[<p>Thanks so much for posting this. I have been looking for a simple card shuffle and deal routine for a while now. This is be far the best. Thanks for taking the time to share.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: steve</title>
		<link>http://www.emanueleferonato.com/2007/12/28/using-bitmapdata-to-manage-a-deck-of-cards-part-2/#comment-171644</link>
		<dc:creator>steve</dc:creator>
		<pubDate>Mon, 26 May 2008 10:54:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2007/12/28/using-bitmapdata-to-manage-a-deck-of-cards-part-2/#comment-171644</guid>
		<description>i beat u all -134</description>
		<content:encoded><![CDATA[<p>i beat u all -134</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maniac</title>
		<link>http://www.emanueleferonato.com/2007/12/28/using-bitmapdata-to-manage-a-deck-of-cards-part-2/#comment-160384</link>
		<dc:creator>Maniac</dc:creator>
		<pubDate>Fri, 09 May 2008 21:37:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2007/12/28/using-bitmapdata-to-manage-a-deck-of-cards-part-2/#comment-160384</guid>
		<description>x_x 136
Awesome game!</description>
		<content:encoded><![CDATA[<p>x_x 136<br />
Awesome game!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darthvulture</title>
		<link>http://www.emanueleferonato.com/2007/12/28/using-bitmapdata-to-manage-a-deck-of-cards-part-2/#comment-69671</link>
		<dc:creator>Darthvulture</dc:creator>
		<pubDate>Thu, 10 Jan 2008 18:15:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2007/12/28/using-bitmapdata-to-manage-a-deck-of-cards-part-2/#comment-69671</guid>
		<description>i hope it aint any bad that i used ur sources and changed design,font style and such and gave it out on deviantart?</description>
		<content:encoded><![CDATA[<p>i hope it aint any bad that i used ur sources and changed design,font style and such and gave it out on deviantart?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: emanuel</title>
		<link>http://www.emanueleferonato.com/2007/12/28/using-bitmapdata-to-manage-a-deck-of-cards-part-2/#comment-65411</link>
		<dc:creator>emanuel</dc:creator>
		<pubDate>Sun, 30 Dec 2007 23:28:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2007/12/28/using-bitmapdata-to-manage-a-deck-of-cards-part-2/#comment-65411</guid>
		<description>86 nice game and its not random its probavilities</description>
		<content:encoded><![CDATA[<p>86 nice game and its not random its probavilities</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Custard</title>
		<link>http://www.emanueleferonato.com/2007/12/28/using-bitmapdata-to-manage-a-deck-of-cards-part-2/#comment-65350</link>
		<dc:creator>Custard</dc:creator>
		<pubDate>Sun, 30 Dec 2007 17:32:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2007/12/28/using-bitmapdata-to-manage-a-deck-of-cards-part-2/#comment-65350</guid>
		<description>-7</description>
		<content:encoded><![CDATA[<p>-7</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shiv</title>
		<link>http://www.emanueleferonato.com/2007/12/28/using-bitmapdata-to-manage-a-deck-of-cards-part-2/#comment-65203</link>
		<dc:creator>shiv</dc:creator>
		<pubDate>Sun, 30 Dec 2007 05:27:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2007/12/28/using-bitmapdata-to-manage-a-deck-of-cards-part-2/#comment-65203</guid>
		<description>To Fred:
in case of equal cards the game compares in the basis of suit.

spades&gt;hearts&gt;clubs&gt;diamonds</description>
		<content:encoded><![CDATA[<p>To Fred:<br />
in case of equal cards the game compares in the basis of suit.</p>
<p>spades&gt;hearts&gt;clubs&gt;diamonds</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frederik J</title>
		<link>http://www.emanueleferonato.com/2007/12/28/using-bitmapdata-to-manage-a-deck-of-cards-part-2/#comment-65065</link>
		<dc:creator>Frederik J</dc:creator>
		<pubDate>Sat, 29 Dec 2007 19:28:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2007/12/28/using-bitmapdata-to-manage-a-deck-of-cards-part-2/#comment-65065</guid>
		<description>Got 34.. I realized a little &quot;personal bug&quot;, when I play cards, the ace is the highest cards, not the lowest. :-) You need to write a little &quot;Card rules&quot; thing. Also, you need to include what happens when the next card is equal to the first.

I think games like this, is pretty boring. Not for blaming you game or tuturial which I love, but those games is too simple, and it is random. Here is a little idea.

It can be fun that when you finish the first game, you&#039;ll get your score in $, and earn money. Then you can by power ups like: you will get a statistic of procents for which the next card would be, you can see the next card, you can decide the next card, and so on...

Then, if we want to make big things out of it, there can be a multiplayer part, where you play against another player. Then you switch to guess higher or lower, and that person who guess most cards correct wins.

Anyway: Great game engine, which works incredible, but I would love to see a more advanced game. Keep them coming!</description>
		<content:encoded><![CDATA[<p>Got 34.. I realized a little &#8220;personal bug&#8221;, when I play cards, the ace is the highest cards, not the lowest. :-) You need to write a little &#8220;Card rules&#8221; thing. Also, you need to include what happens when the next card is equal to the first.</p>
<p>I think games like this, is pretty boring. Not for blaming you game or tuturial which I love, but those games is too simple, and it is random. Here is a little idea.</p>
<p>It can be fun that when you finish the first game, you&#8217;ll get your score in $, and earn money. Then you can by power ups like: you will get a statistic of procents for which the next card would be, you can see the next card, you can decide the next card, and so on&#8230;</p>
<p>Then, if we want to make big things out of it, there can be a multiplayer part, where you play against another player. Then you switch to guess higher or lower, and that person who guess most cards correct wins.</p>
<p>Anyway: Great game engine, which works incredible, but I would love to see a more advanced game. Keep them coming!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shiv</title>
		<link>http://www.emanueleferonato.com/2007/12/28/using-bitmapdata-to-manage-a-deck-of-cards-part-2/#comment-65053</link>
		<dc:creator>shiv</dc:creator>
		<pubDate>Sat, 29 Dec 2007 18:24:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2007/12/28/using-bitmapdata-to-manage-a-deck-of-cards-part-2/#comment-65053</guid>
		<description>105!!!! Gr8</description>
		<content:encoded><![CDATA[<p>105!!!! Gr8</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching 6/11 queries in 0.010 seconds using disk: basic

Served from: www.emanueleferonato.com @ 2012-02-11 13:23:47 -->
