OSDN Git Service

Modify mk_rate to follow the change in mk_game_results
authorDaigo Moriwaki <daigo@debian.org>
Sat, 2 Sep 2017 12:55:25 +0000 (21:55 +0900)
committerDaigo Moriwaki <daigo@debian.org>
Sat, 2 Sep 2017 12:55:25 +0000 (21:55 +0900)
changelog
mk_rate

index 8501706..afd2d3b 100644 (file)
--- a/changelog
+++ b/changelog
@@ -5,7 +5,7 @@
          "%SENNICHITE" are now recorded in CSA files when a game ends for
          timed up or sennichite respectively.
          (Closes #37490)
          "%SENNICHITE" are now recorded in CSA files when a game ends for
          timed up or sennichite respectively.
          (Closes #37490)
-       * [shogi-server] [mk_game_results] Change schema to add number of
+       * [shogi-server, mk_game_results, mk_rate] Change schema to add number of
          moves The format of an internal game result summary file, '00LIST',
          has been changed to add number of moves of a game, which would be of
          help for a script calculating rating scores.
          moves The format of an internal game result summary file, '00LIST',
          has been changed to add number of moves of a game, which would be of
          help for a script calculating rating scores.
diff --git a/mk_rate b/mk_rate
index 103988d..0e67375 100755 (executable)
--- a/mk_rate
+++ b/mk_rate
@@ -672,7 +672,7 @@ def parse(line)
   end
   $history.add line
 
   end
   $history.add line
 
-  time, state, black_mark, black_id, white_id, white_mark, file = line.split("\t")
+  time, state, black_mark, black_id, white_id, white_mark, file, moves = line.split("\t")
   unless time && state && black_mark && black_id &&
          white_id && white_mark && file
     $stderr.puts "Failed to parse the line : #{line}"
   unless time && state && black_mark && black_id &&
          white_id && white_mark && file
     $stderr.puts "Failed to parse the line : #{line}"