]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
Sort azgame scores from highest to lowest
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 26 Jan 2007 00:12:14 +0000 (00:12 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 26 Jan 2007 00:12:14 +0000 (00:12 +0000)
data/rbot/plugins/azgame.rb

index ae6dbeb749324c0b6c22e9b285f59ef4e897a50d..ae410e87a16144c4408954e0766ba44f48d84794 100644 (file)
@@ -77,7 +77,7 @@ class AzGame
       tries = ret[@winner].last\r
       ret[@winner] = [t, "winner, #{tries}"]\r
     end\r
-    return ret.sort_by { |h| h.last.first }\r
+    return ret.sort_by { |h| h.last.first }.reverse\r
   end\r
 \r
 end\r