@loss = 0
@last_game_win = false
@sente = nil
+ @game_name = ""
end
# Idetifier of the player in the rating system
# true for Sente; false for Gote
attr_accessor :sente
+ # game name
+ attr_accessor :game_name
+
def is_human?
return [%r!_human$!, %r!_human@!].any? do |re|
re.match(@name)
@protocol = nil # CSA or x1
@eol = eol || "\m" # favorite eol code
@game = nil
- @game_name = ""
@mytime = 0 # set in start method also
@socket_buffer = []
@main_thread = Thread::current
end
attr_accessor :socket, :status
- attr_accessor :protocol, :eol, :game, :mytime, :game_name
+ attr_accessor :protocol, :eol, :game, :mytime
attr_accessor :main_thread
attr_reader :socket_buffer