osl::move_generator::LegalMoves Struct Reference

- Main Page
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Static Public Member Functions | List of all members
osl::move_generator::LegalMoves Struct Reference

`#include <legalMoves.h>`

## Static Public Member Functions
static void | generate (const NumEffectState &, container::MoveVector &)
| 全ての合法手を生成する. More...
static void | generateWithFullUnpromotions (const NumEffectState &, container::MoveVector &)
| 打歩詰め絡み以外では有利にはならない手も含め, 全ての合法手を生成す る（Move::ignoredUnpromoteも生成する）. More...

## Detailed Description

Definition at line 14 of file legalMoves.h.

## Member Function Documentation

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().

Referenced by osl::search::AlphaBeta2< EvalT >::computeBestMoveIteratively().

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().

The documentation for this struct was generated from the following files:

- legalMoves.h
- legalMoves.cc