## $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
@total_time = $1.to_i
@byoyomi = $2.to_i
- @time_clock = TimeClock::factory(Least_Time_Per_Move, @game_name)
+ @time_clock = TimeClock::factory($options["least-time-per-move"], @game_name)
end
if (player0.sente)
elsif (move_status == :oute_kaihimore)
# the current player losed
@result = GameResultOuteKaihiMoreWin.new(self, @next_player, @current_player)
+ elsif (move_status == :max_moves)
+ @result = GameResultMaxMovesDraw.new(self, @current_player, @next_player)
else
finish_flag = false
end
Rematch_On_Draw:NO
To_Move:+
BEGIN Time
-Time_Unit:1sec
+Time_Unit:#{@time_clock.time_unit}
Total_Time:#{@total_time}
Byoyomi:#{@byoyomi}
-Least_Time_Per_Move:#{Least_Time_Per_Move}
+Least_Time_Per_Move:#{$options["least-time-per-move"]}
Remaining_Time+:#{@sente.mytime}
Remaining_Time-:#{@gote.mytime}
Last_Move:#{@last_move}
Rematch_On_Draw:NO
To_Move:#{@board.teban ? "+" : "-"}
BEGIN Time
-Time_Unit:1sec
+Time_Unit:#{@time_clock.time_unit}
Total_Time:#{@total_time}
Byoyomi:#{@byoyomi}
-Least_Time_Per_Move:#{Least_Time_Per_Move}
+Least_Time_Per_Move:#{$options["least-time-per-move"]}
END Time
BEGIN Position
#{@board.initial_string.chomp}