OSDN Git Service

[shogi-server] Enhance capability of Floodgate configuration file
[shogi-server/shogi-server.git] / test / mock_game.rb
index 80263df..943434c 100644 (file)
@@ -7,6 +7,7 @@ class MockGame
   attr_accessor :started
   attr_accessor :game_id
   attr_accessor :game_name
+  attr_accessor :last_move
 
   def initialize
     @finish_flag     = false
@@ -21,7 +22,7 @@ class MockGame
     @monitoroff_called = false
   end
 
-  def handle_one_move(move, player)
+  def handle_one_move(move, player, time)
     return @finish_flag
   end