lib/bioshogi/player/soldier_methods.rb in bioshogi-0.0.14 vs lib/bioshogi/player/soldier_methods.rb in bioshogi-0.0.15
- old
+ new
@@ -21,11 +21,11 @@
end
# 入玉している?
def king_soldier_entered?
if soldier = king_soldier
- soldier.place.promotable?(location)
+ soldier.place.opp_side?(location)
end
end
# 玉を除く駒が10毎以上相手陣に入っているか?
def many_soliders_are_in_the_opponent_area?
@@ -34,10 +34,10 @@
# 相手陣に入っている玉を除く駒
def entered_soldiers
soldiers.find_all do |e|
if e.piece.key != :king
- e.place.promotable?(location)
+ e.place.opp_side?(location)
end
end
end
end
end