[#68] Fix Tori Shogi legalitycheck to detect in-check condition.master/fix-tori
commit9e48665ad37dee8de59465be34cbdb2125e3198b
authorYann Dirson <ydirson@altern.org>
Tue, 12 Feb 2008 23:50:13 +0000 (13 00:50 +0100)
committerYann Dirson <ydirson@altern.org>
Tue, 12 Feb 2008 23:50:13 +0000 (13 00:50 +0100)
tree145294c1e8d53ad7c74bff9ae014c5c06c591f95
parent44918a79ece77a99faddb48ad4b37875ad22e35e
[#68] Fix Tori Shogi legalitycheck to detect in-check condition.

This is a hack around a template-instantation problem:
Base::canBeCaptured() instantiates a Base::LegalityCheck<>, so we
cut'n'paste it to be sure.  There may be a cleaner fix, but since this
code will be rewritten for the new component API for 1.0beta, there is
not point in spending more time on it.
src/hlvariant/tori-shogi/legalitycheck.h