OSDN Git Service

Add a space in the output of %%RATING.
authorbeatles <beatles@b8c68f68-1e22-0410-b08e-880e1f8202b4>
Wed, 16 Aug 2006 10:19:53 +0000 (10:19 +0000)
committerbeatles <beatles@b8c68f68-1e22-0410-b08e-880e1f8202b4>
Wed, 16 Aug 2006 10:19:53 +0000 (10:19 +0000)
changelog
shogi-server

index 7e1deaa..79c5f05 100644 (file)
--- a/changelog
+++ b/changelog
@@ -1,3 +1,10 @@
+2006-08-13  Daigo Moriwaki <daigo at debian dot org>
+
+       * [mk_rate]
+         - Fix a bug. Now it can see black/white players in a csa file.
+       * [shogi-server]
+         - Add a space in the output of %%RATING.
+
 2006-08-14  Daigo Moriwaki <daigo at debian dot org>
 
        * [mk_rate] Record numbers of win/loss games.
 2006-08-14  Daigo Moriwaki <daigo at debian dot org>
 
        * [mk_rate] Record numbers of win/loss games.
index 3b93486..d5f04b2 100755 (executable)
@@ -362,7 +362,7 @@ class Player < RatedPlayer
         when /^%%RATING/
           players = LEAGUE.rated_players
           players.sort {|a,b| b.rate <=> a.rate}.each do |p|
         when /^%%RATING/
           players = LEAGUE.rated_players
           players.sort {|a,b| b.rate <=> a.rate}.each do |p|
-            write_safe("##[RATING]%s (%s) \t %4d @%s\n" % 
+            write_safe("##[RATING] %s (%s) \t %4d @%s\n" % 
                        [p.name, p.id, p.rate, p.modified_at.strftime("%Y-%m-%d")])
           end
           write_safe("##[RATING] +OK\n")
                        [p.name, p.id, p.rate, p.modified_at.strftime("%Y-%m-%d")])
           end
           write_safe("##[RATING] +OK\n")