OSDN Git Service
(root)
/
shogi-server
/
shogi-server.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[shogi-server] Enhance capability of Floodgate configuration file
[shogi-server/shogi-server.git]
/
test
/
mock_game.rb
diff --git
a/test/mock_game.rb
b/test/mock_game.rb
index
b18ab20
..
943434c
100644
(file)
--- a/
test/mock_game.rb
+++ b/
test/mock_game.rb
@@
-7,6
+7,7
@@
class MockGame
attr_accessor :started
attr_accessor :game_id
attr_accessor :game_name
attr_accessor :started
attr_accessor :game_id
attr_accessor :game_name
+ attr_accessor :last_move
def initialize
@finish_flag = false
def initialize
@finish_flag = false
@@
-21,7
+22,7
@@
class MockGame
@monitoroff_called = false
end
@monitoroff_called = false
end
- def handle_one_move(move, player)
+ def handle_one_move(move, player
, time
)
return @finish_flag
end
return @finish_flag
end
@@
-46,7
+47,7
@@
class MockGame
end
def show
end
def show
- return "dummy_game_show"
+ return "dummy_game_show
\nline1\nline2\n
"
end
def monitoron(player)
end
def monitoron(player)