+2006-11-26 Daigo Moriwaki <daigo at debian dot org>
+
+ * [shogi-server] Sente (gote) was able to move gote's (sente's) hand.
+ That move should be illegal. This issue has been fixed.
+
2006-11-01 Daigo Moriwaki <daigo at debian dot org>
* [mk_rate] Skip "abnormal" games, which were finished because of
return true
end
- def handle_one_move(str, sente=nil)
+ def handle_one_move(str, sente)
if (str =~ /^([\+\-])(\d)(\d)(\d)(\d)([A-Z]{2})/)
sg = $1
x0 = $2.to_i
end
if (sg == "+")
- sente = true
+ return :illegal unless sente == true # black player's move must be black
hands = @sente_hands
else
- sente = false
+ return :illegal unless sente == false # white player's move must be white
hands = @gote_hands
end