OSDN Git Service

Apply CSA Protocol V1.2.1 for MAX_MOVES
[shogi-server/shogi-server.git] / shogi_server / board.rb
index eb2efaa..bcf8887 100644 (file)
@@ -626,7 +626,7 @@ EOF
   #   - :uchifuzume 
   #   - :oute_kaihimore 
   #   - (:outori will not be returned)
-  #   - :max_moves_draw
+  #   - :max_moves
   #
   def handle_one_move(str, sente=nil)
     if (str =~ /^([\+\-])(\d)(\d)(\d)(\d)([A-Z]{2})/)
@@ -719,7 +719,7 @@ EOF
     # When running test cases $options might be nil.
     if $options && $options["max-moves"] &&
        $options["max-moves"] > 0 && @move_count >= $options["max-moves"]
-      return :max_moves_draw
+      return :max_moves
     end
 
     return :normal