OSDN Git Service

Fix #37023: utils/csa-filter.rb: Allow csa-filter.rb to filter games by a winner...
[shogi-server/shogi-server.git] / test / mock_player.rb
index 55319fd..94666e0 100644 (file)
@@ -6,6 +6,8 @@ class MockPlayer < ShogiServer::BasicPlayer
   attr_accessor :game, :status, :protocol
   attr_accessor :game_name
   attr_reader :socket_buffer
+  attr_reader :rate
+  attr_accessor :last_command_at
 
   def initialize
     @name     = "mock_player"
@@ -15,6 +17,7 @@ class MockPlayer < ShogiServer::BasicPlayer
     @protocol = nil
     @game_name = "dummy_game_name"
     @socket_buffer = []
+    @rate = 1500
   end
 
   def write_safe(str)