Browse files

Changed [##START] message format.

  • Loading branch information...
1 parent e11c64e commit fe53e9c72dfb0f36f273e11e464380b3b3bd27aa @Hidetchi Hidetchi committed Jun 15, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 shogi_server/game.rb
View
5 shogi_server/game.rb
@@ -382,8 +382,9 @@ def is_closable_status?
def start
log_message(sprintf("game started %s", @game_id))
- res = sprintf("##[START]%s,%d,%s,%s,%d,%s\n", @sente.name, @sente.rate, @sente.provisional?,
- @gote.name, @gote.rate, @gote.provisional?)
+ res = sprintf("##[START]%s,%d,%d,%d,%d,%s,%s,%d,%d\n", @game_id, @sente.country_code, @gote.country_code,
+ @sente.rate, @gote.rate, @sente.provisional?, @gote.provisional?,
+ @sente.exp34, @gote.exp34)
$league.players.each do |name, p|
p.write_safe(res)
end

0 comments on commit fe53e9c

Please sign in to comment.