OSDN Git Service

Refactoring: Changed the name of a constant.
authordaigo <beatles@users.sourceforge.jp>
Sat, 18 Sep 2010 02:18:38 +0000 (11:18 +0900)
committerDaigo Moriwaki <daigo@debian.org>
Sat, 18 Sep 2010 02:18:38 +0000 (11:18 +0900)
shogi_server/board.rb
shogi_server/game.rb

index be22ef1..ca12959 100644 (file)
@@ -28,7 +28,7 @@ class Board
   # Initial board setup. 
   # The string ends with '+', not a line break.
   #
-  INITIAL_POSITION = (<<-EOF).chomp
+  INITIAL_HIRATE_POSITION = (<<-EOF).chomp
 P1-KY-KE-GI-KI-OU-KI-GI-KE-KY
 P2 * -HI *  *  *  *  * -KA * 
 P3-FU-FU-FU-FU-FU-FU-FU-FU-FU
index 232eac4..f8c20fb 100644 (file)
@@ -402,7 +402,7 @@ Byoyomi:#{@byoyomi}
 Least_Time_Per_Move:#{Least_Time_Per_Move}
 END Time
 BEGIN Position
-#{Board::INITIAL_POSITION}
+#{Board::INITIAL_HIRATE_POSITION}
 #{@board.initial_moves.collect {|m| m + ",T1"}.join("\n")}
 END Position
 END Game_Summary