<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,7 +3,6 @@
 
 Author:: {Rob Olson}[http://thinkingdigitally.com]
 Email:: rko618 [at] gmail.com
-Bug Tracker:: http://rubyforge.org/tracker/?group_id=5257
 GitHub:: http://github.com/robolson/ruby-poker/
 
 == Description
@@ -44,7 +43,7 @@ Ruby-Poker is compatible with Ruby 1.8.6 and Ruby 1.9.1.
 
 == History
 
-In the 0.2.0 release Patrick Hurley's Texas Holdem code from http://rubyquiz.com/quiz24.html was merged into ruby-poker.
+In the 0.2.0 release Patrick Hurley's Texas Holdem code from http://www.rubyquiz.com/quiz24.html was merged into ruby-poker.
 
 == License
 </diff>
      <filename>README.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -1,13 +1,5 @@
 # This is a sample Deck implementation.
 class Deck
-  def shuffle
-    deck_size = @cards.size
-    (deck_size * 2).times do
-      pos1, pos2 = rand(deck_size), rand(deck_size)
-      @cards[pos1], @cards[pos2] = @cards[pos2], @cards[pos1]
-    end
-  end
-
   def initialize
     @cards = []
     Card::SUITS.each_byte do |suit|
@@ -16,7 +8,12 @@ class Deck
         @cards.push(Card.new(face.chr, suit.chr))
       end
     end
-    shuffle()
+    shuffle!
+  end
+  
+  def shuffle!
+    @cards = @cards.sort_by { rand }
+    return self
   end
 
   # removes a single card from the top of the deck and returns it</diff>
      <filename>examples/deck.rb</filename>
    </modified>
    <modified>
      <diff>@@ -340,7 +340,7 @@ class PokerHand
     }
   end
   
-  protected
+  private
   
   def check_for_duplicates
     if @hand.size != @hand.uniq.size &amp;&amp; !@@allow_duplicates
@@ -359,7 +359,10 @@ class PokerHand
       end
       hand.strip.squeeze(&quot; &quot;)   # remove extra whitespace
   end
-  
+
+  # delta transform creates a version of the cards where the delta
+  # between card values is in the string, so a regexp can then match a
+  # straight and/or straight flush
   def delta_transform(use_suit = false)
     aces = @hand.select { |c| c.face == Card::face_value('A') }
     aces.map! { |c| Card.new(1,c.suit) }</diff>
      <filename>lib/ruby-poker.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5696de96449794578cf60c79a6e381c8796862d1</id>
    </parent>
  </parents>
  <author>
    <name>Robert Olson</name>
    <email>rob@thinkingdigitally.com</email>
  </author>
  <url>http://github.com/robolson/ruby-poker/commit/5bef245faf9e98f1ff181ece098941b2f03f47bf</url>
  <id>5bef245faf9e98f1ff181ece098941b2f03f47bf</id>
  <committed-date>2009-05-21T00:11:06-07:00</committed-date>
  <authored-date>2009-05-21T00:11:06-07:00</authored-date>
  <message>* Renamed Deck.shuffle to Deck.shuffle! in the sample Deck class * Changed protected methods in PokerHand to private</message>
  <tree>cd1fa2d56b0c65c342b188ee884c8565ea4bd6bc</tree>
  <committer>
    <name>Robert Olson</name>
    <email>rob@thinkingdigitally.com</email>
  </committer>
</commit>
