## $Id$
## Copyright (C) 2004 NABEYA Kenichi (aka nanami@2ch)
-## Copyright (C) 2007-2008 Daigo Moriwaki (daigo at debian dot org)
+## Copyright (C) 2007-2012 Daigo Moriwaki (daigo at debian dot org)
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
black_name = @sente.rated? ? @sente.player_id : @sente.name
white_name = @gote.rated? ? @gote.player_id : @gote.name
@fh.puts("'rating:%s:%s" % [black_name, white_name])
+ if @sente.rated? && @sente.rate != 0
+ @fh.puts("'black_rate:%s:%s" % [@sente.player_id, @sente.rate])
+ end
+ if @gote.rated? && @gote.rate != 0
+ @fh.puts("'white_rate:%s:%s" % [@gote.player_id, @gote.rate])
+ end
end
unless @board.initial_moves.empty?
@fh.puts "'buoy game starting with %d moves" % [@board.initial_moves.size]