+2009-01-13 Daigo Moriwaki <daigo at debian dot org>
+
+ * [shogi_server]
+ - It failed to proccess a game result, OuteKaihiMoreWin where a
+ checked king does not escape. This issue has been fixed.
+
2009-01-02 Daigo Moriwaki <daigo at debian dot org>
* [shogi-server]
end
end
-class GameResultOuteKaihiMoreWin < GameResultWin
+class GameResultOuteKaihiMoreWin < GameResultIllegalWin
def initialize(game, winner, loser)
super(game, winner, loser, "oute_kaihimore")
end
class GameResultOutoriWin < GameResultWin
def initialize(game, winner, loser)
- super(game, winner, loser, "outori")
+ super(game, winner, loser)
end
end
-class GameReulstToryoWin < GameResultWin
+class GameResultToryoWin < GameResultWin
def process
@winner.write_safe("%TORYO\n#RESIGN\n#WIN\n")
@loser.write_safe( "%TORYO\n#RESIGN\n#LOSE\n")
elsif (move_status == :kachi_lose)
result = GameResultIllegalKachiWin.new(self, @next_player, @current_player)
elsif (move_status == :toryo)
- result = GameReulstToryoWin.new(self, @next_player, @current_player)
+ result = GameResultToryoWin.new(self, @next_player, @current_player)
elsif (move_status == :outori)
# The current player captures the next player's king
result = GameResultOutoriWin.new(self, @current_player, @next_player)
class Usi2png_args
include Thrift::Struct
+ USI = 1
+
Thrift::Struct.field_accessor self, :usi
FIELDS = {
- 1 => {:type => Thrift::Types::STRING, :name => 'usi'}
+ USI => {:type => Thrift::Types::STRING, :name => 'usi'}
}
+ def validate
+ end
+
end
class Usi2png_result
include Thrift::Struct
+ SUCCESS = 0
+
Thrift::Struct.field_accessor self, :success
FIELDS = {
- 0 => {:type => Thrift::Types::STRING, :name => 'success'}
+ SUCCESS => {:type => Thrift::Types::STRING, :name => 'success'}
}
+ def validate
+ end
+
end
end