#include <legalMoves.h>
Static Public Member Functions | |
static void | generate (const NumEffectState &, container::MoveVector &) |
全ての合法手を生成する. | |
static void | generateWithFullUnpromotions (const NumEffectState &, container::MoveVector &) |
打歩詰め絡み以外では有利にはならない手も含め, 全ての合法手を生成す る(Move::ignoredUnpromoteも生成する). |
Definition at line 14 of file legalMoves.h.
void osl::move_generator::LegalMoves::generate | ( | const NumEffectState & | , |
container::MoveVector & | |||
) | [static] |
全ての合法手を生成する.
玉の素抜きや打歩詰の確認をする. ただし, 打歩詰め絡み以外では有利にはならない手 (Move::ignoredUnpromote)は生成しない.
Definition at line 14 of file legalMoves.cc.
References osl::move_generator::capture::generate(), osl::Move::isDrop(), and osl::move_classifier::PlayerMoveAdaptor< Classifier >::isMember().
void osl::move_generator::LegalMoves::generateWithFullUnpromotions | ( | const NumEffectState & | , |
container::MoveVector & | |||
) | [static] |
打歩詰め絡み以外では有利にはならない手も含め, 全ての合法手を生成す る(Move::ignoredUnpromoteも生成する).
玉の素抜きや打歩詰の確認 をする.
Definition at line 44 of file legalMoves.cc.
References osl::move_generator::capture::generate(), osl::Move::hasIgnoredUnpromote(), and osl::Move::unpromote().