X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=test%2FTC_game.rb;fp=test%2FTC_game.rb;h=08ffcf206b6288ddd1754ab78f78f4ff6a0f807f;hb=b0a2884dfa2bde82572e2156a7b6ec142bed51f5;hp=8d7d4934a615158eaa0ca64bf0b6dbb48f2e575c;hpb=41ba80a29edf749ee498caf9694675e6fa63d0e7;p=shogi-server%2Fshogi-server.git diff --git a/test/TC_game.rb b/test/TC_game.rb index 8d7d493..08ffcf2 100644 --- a/test/TC_game.rb +++ b/test/TC_game.rb @@ -5,6 +5,9 @@ require 'shogi_server/board' require 'shogi_server/game' require 'shogi_server/player' +$options = {} +$options["least-time-per-move"] = 1 + def log_message(str) $stderr.puts str end @@ -52,7 +55,7 @@ BEGIN Time Time_Unit:1sec Total_Time:1500 Byoyomi:0 -Least_Time_Per_Move:1 +Least_Time_Per_Move:#{$options["least-time-per-move"]} END Time BEGIN Position P1-KY-KE-GI-KI-OU-KI-GI-KE-KY @@ -86,7 +89,7 @@ BEGIN Time Time_Unit:1sec Total_Time:1500 Byoyomi:0 -Least_Time_Per_Move:1 +Least_Time_Per_Move:#{$options["least-time-per-move"]} END Time BEGIN Position P1-KY-KE-GI-KI-OU-KI-GI-KE-KY @@ -154,7 +157,7 @@ BEGIN Time Time_Unit:1sec Total_Time:1500 Byoyomi:0 -Least_Time_Per_Move:1 +Least_Time_Per_Move:#{$options["least-time-per-move"]} END Time BEGIN Position P1-KY-KE-GI-KI-OU-KI-GI-KE-KY @@ -189,7 +192,7 @@ BEGIN Time Time_Unit:1sec Total_Time:1500 Byoyomi:0 -Least_Time_Per_Move:1 +Least_Time_Per_Move:#{$options["least-time-per-move"]} END Time BEGIN Position P1-KY-KE-GI-KI-OU-KI-GI-KE-KY @@ -261,7 +264,7 @@ BEGIN Time Time_Unit:1sec Total_Time:1500 Byoyomi:0 -Least_Time_Per_Move:1 +Least_Time_Per_Move:#{$options["least-time-per-move"]} END Time BEGIN Position P1-KY-KE-GI-KI-OU-KI-GI-KE-KY @@ -297,7 +300,7 @@ BEGIN Time Time_Unit:1sec Total_Time:1500 Byoyomi:0 -Least_Time_Per_Move:1 +Least_Time_Per_Move:#{$options["least-time-per-move"]} END Time BEGIN Position P1-KY-KE-GI-KI-OU-KI-GI-KE-KY