OSDN Git Service

Refactored methods: League#find_rival and Game::decide_turns.
[shogi-server/shogi-server.git] / test / mock_game.rb
index b18ab20..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
 
@@ -46,7 +47,7 @@ class MockGame
   end
 
   def show
-    return "dummy_game_show"
+    return "dummy_game_show\nline1\nline2\n"
   end
 
   def monitoron(player)