OSDN Git Service

New feature: max moves
[shogi-server/shogi-server.git] / shogi_server / game.rb
index ec9b702..a10cb65 100644 (file)
@@ -292,6 +292,8 @@ class Game
     elsif (move_status == :oute_kaihimore)
       # the current player losed
       @result = GameResultOuteKaihiMoreWin.new(self, @next_player, @current_player)
+    elsif (move_status == :max_moves_draw)
+      @result = GameResultMaxMovesDraw.new(self, @current_player, @next_player)
     else
       finish_flag = false
     end