All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
osl Namespace Reference

attackDefense.h More...

Namespaces

 annotate
 
 checkmate
 詰将棋関係
 
 container
 一般的に存在するデータ構造の将棋版,PieceVectorや各種bitsetなど.
 
 effect
 利きを局面に持たせるためのコード.
 
 effect_action
 forEachEffect, forSortedEffect等で渡す対象
 
 effect_util
 利きを利用した計算をするコード
 
 enter_king
 入玉の判定と予測
 
 eval
 評価関数
 
 game_playing
 対局に必要な諸々.
 
 hash
 ハッシュ
 
 misc
 特に将棋と関係ない基礎的なコード
 
 mobility
 
 move_action
 生成された指手を処理する
 
 move_classifier
 Moveを分類するクラス群.
 
 move_generator
 低レベルの指手生成
 
 move_order
 Move の並べ変え
 
 move_probability
 
 ntesuki
 ntesuki
 
 progress
 進行度
 
 ptl
 Ptype の template による list.
 
 rating
 
 record
 棋譜関係
 
 search
 探索関係
 
 search4
 
 stat
 統計関係
 
 state
 局面.
 
 stl
 stl コンテナのallocatorを取り替えたものを提供する.
 
 threatmate
 詰めろ予測関数 指した後の局面(state)と指し手(move) を引数に取る predict で予測結果を返す
 

Classes

class  BoardTable
 
struct  Centering3x3
 3x3が盤上におさまるように中心を調整 More...
 
struct  Centering5x3
 5x3が盤上におさまるように中心を調整 More...
 
struct  DirectionTraitsGen
 
struct  DirectionTraitsGen< UL >
 
struct  DirectionTraitsGen< U >
 
struct  DirectionTraitsGen< UR >
 
struct  DirectionTraitsGen< L >
 
struct  DirectionTraitsGen< R >
 
struct  DirectionTraitsGen< DL >
 
struct  DirectionTraitsGen< D >
 
struct  DirectionTraitsGen< DR >
 
struct  DirectionTraitsGen< UUL >
 
struct  DirectionTraitsGen< UUR >
 
struct  DirectionTraitsGen< LONG_UL >
 
struct  DirectionTraitsGen< LONG_U >
 
struct  DirectionTraitsGen< LONG_UR >
 
struct  DirectionTraitsGen< LONG_L >
 
struct  DirectionTraitsGen< LONG_R >
 
struct  DirectionTraitsGen< LONG_DL >
 
struct  DirectionTraitsGen< LONG_D >
 
struct  DirectionTraitsGen< LONG_DR >
 
struct  DirectionTraits
 
struct  DirectionPlayerTraits
 
struct  DirectionPlayerTraits< Dir, BLACK >
 
struct  DirectionPlayerTraits< Dir, WHITE >
 
class  PieceFilter
 exceptPiece以外の場合にactionを呼び出す More...
 
class  EffectContent
 
class  Move
 圧縮していない moveの表現 . More...
 
struct  GenerateAllMoves
 
struct  GenerateEscapeKing
 
class  MoveLogProb
 
struct  Neighboring8
 
class  Offset
 座標の差分 More...
 
class  Offset32Base
 差が uniqになるような座標の差分. More...
 
struct  OslConfig
 osl の実行環境に関する指定 More...
 
struct  NoMoreMemory
 
class  PathEncodingTable
 
class  PathEncoding
 
class  Piece
 駒. More...
 
class  PieceStand
 片方の手番の持駒の枚数を記録するクラス. More...
 
struct  PieceStandIO
 
class  PieceTable
 
struct  PlayerTraits
 
struct  PlayerTraits< BLACK >
 
struct  PlayerTraits< WHITE >
 
class  PtypeTable
 
struct  PtypeTraits
 
struct  PtypeTraits< PTYPE_EMPTY >
 
struct  PtypeTraits< PTYPE_EDGE >
 
struct  PtypeTraits< GOLD >
 
struct  PtypeTraits< PAWN >
 
struct  PtypeTraits< PPAWN >
 
struct  PtypeTraits< LANCE >
 
struct  PtypeTraits< PLANCE >
 
struct  PtypeTraits< KNIGHT >
 
struct  PtypeTraits< PKNIGHT >
 
struct  PtypeTraits< SILVER >
 
struct  PtypeTraits< PSILVER >
 
struct  PtypeTraits< BISHOP >
 
struct  PtypeTraits< PBISHOP >
 
struct  PtypeTraits< ROOK >
 
struct  PtypeTraits< PROOK >
 
struct  PtypeTraits< KING >
 
struct  PtypeFunsSub
 
struct  PtypeFunsSub< T, true >
 
struct  PtypeFunsSub< T, false >
 
struct  PtypeFuns
 
struct  PtypeDirectionTraits
 
struct  KingTraits
 
struct  PtypePlayerTraits
 
class  RepetitionCounter
 千日手の検出. More...
 
class  Sennichite
 
class  Square
 
struct  SquareCompressor
 Square を [0..81] に圧縮する 0: 駒台,1..81 盤上 More...
 
struct  LogProbCompare
 
struct  PieceBasicLessThan
 
struct  PiecePtypeMoreThan
 
struct  PtypeOSquareLessThan
 
struct  IntArrayReader
 
class  normal_distribution
 
struct  TopProb
 カテゴリ内でトップの手が指された確率 More...
 
struct  RatingDiffRange
 rating とその局面のratingの最大値との差に基づく 2次元の実現確率 More...
 
struct  RatingDiff
 

Typedefs

typedef QuadInt MultiInt
 
typedef QuadIntPair MultiIntPair
 
typedef Offset32Base< 8, 9 > Offset32
 
typedef Offset32Base< 10, 10 > Offset32Wide
 
typedef search::AlphaBeta2
< eval::ProgressEval
AlphaBeta2ProgressEval
 
typedef search::AlphaBeta2
< eval::ml::OpenMidEndingEval
AlphaBeta2OpenMidEndingEval
 

Enumerations

enum  Direction {
  SHORT_DIRECTION_MIN =0, SHORT8_DIRECTION_MIN =0, UL =0, U =1,
  UR =2, L =3, R =4, DL =5,
  D =6, DR =7, SHORT8_DIRECTION_MAX =7, UUL =8,
  UUR =9, LONG_DIRECTION_MIN =10, LONG_UL =10, LONG_U =11,
  LONG_UR =12, LONG_L =13, LONG_R =14, LONG_DL =15,
  LONG_D =16, LONG_DR =17, LONG_DIRECTION_MAX =17, DIRECTION_MIN =0,
  SHORT_DIRECTION_MAX =9, SHORT_DIRECTION_SIZE =10, DIRECTION_MAX =17, DIRECTION_INVALID_VALUE =18,
  DIRECTION_SIZE =18
}
 
enum  Handicap { HIRATE }
 
enum  Move16 { MOVE16_NONE = 0 }
 16bit 表現 More...
 
enum  PromoteType { NoPromoteType =0, CanPromoteType =1, CheckPromoteType =2, MustPromoteType =3 }
 
enum  Player { BLACK =0, WHITE = -1 }
 
enum  Ptype {
  PTYPE_EMPTY =0, PTYPE_EDGE =1, PPAWN =2, PLANCE =3,
  PKNIGHT =4, PSILVER =5, PBISHOP =6, PROOK =7,
  KING =8, GOLD =9, PAWN =10, LANCE =11,
  KNIGHT =12, SILVER =13, BISHOP =14, ROOK =15,
  PTYPE_MIN =0, PTYPE_BASIC_MIN =KING, PTYPE_PIECE_MIN =2, PTYPE_MAX =15
}
 駒の種類を4ビットでコード化する More...
 
enum  PtypeO { PTYPEO_MIN = PTYPE_EMPTY-16, PTYPEO_MAX = 15 }
 Player + Ptype [-15, 15] PtypeO の O は Owner の O. More...
 
enum  MoveConstraint { CannotMove, OnlyPromoted, OnlyBasic, NoConstraint }
 ある方向にある駒が移動可能かを表す. More...
 
enum  Property {
  All, TakeBack, TakeBack2, NoTakeBack,
  SeePlus, SeePlus2, SeePlusX, NoSeePlus
}
 

Functions

bool isShort (Direction d)
 
bool isShort8 (Direction d)
 
bool isLong (Direction d)
 
Direction inverseUnsafe (Direction d)
 
Direction inverse (Direction d)
 
Direction primDir (Direction d)
 8方向について,primitiveな4方向を求める More...
 
Direction primDirUnsafe (Direction d)
 8方向について,primitiveな4方向を求める dとしてknight, INVALIDなども来る More...
 
bool isValid (Direction d)
 
Direction longToShort (Direction d)
 
Direction shortToLong (Direction d)
 引数に longDirを与えてはいけない More...
 
int dirToMask (Direction dir)
 
std::ostream & operator<< (std::ostream &os, const Direction d)
 
bool operator== (EffectContent l, EffectContent r)
 
bool operator!= (EffectContent l, EffectContent r)
 
bool operator< (EffectContent l, EffectContent r)
 
const char * ctime_r (const time_t *timep, char *buf)
 
bool operator< (Move lhs, Move rhs)
 
bool operator== (Move lhs, Move rhs)
 
bool operator!= (Move lhs, Move rhs)
 
std::ostream & operator<< (std::ostream &os, Move move)
 
std::ostream & operator<< (std::ostream &os, MoveLogProb const &move)
 
bool operator== (MoveLogProb const &lhs, MoveLogProb const &rhs)
 
bool operator< (MoveLogProb const &lhs, MoveLogProb const &rhs)
 
Offset newOffset (int dx, int dy)
 
bool operator== (Offset l, Offset r)
 
bool operator!= (Offset l, Offset r)
 
bool operator< (Offset l, Offset r)
 
std::ostream & operator<< (std::ostream &, Offset)
 
bool operator== (const PathEncoding &l, const PathEncoding &r)
 
bool operator!= (const PathEncoding &l, const PathEncoding &r)
 
std::ostream & operator<< (std::ostream &, const PathEncoding &)
 
bool operator== (Piece l, Piece r)
 
bool operator< (Piece l, Piece r)
 
bool operator!= (Piece l, Piece r)
 
std::ostream & operator<< (std::ostream &os, const Piece piece)
 
bool operator== (PieceStand l, PieceStand r)
 
bool operator!= (PieceStand l, PieceStand r)
 
bool operator< (PieceStand l, PieceStand r)
 
std::ostream & operator<< (std::ostream &, PieceStand l)
 
Player alt (Player player)
 
int playerToIndex (Player player)
 
Player indexToPlayer (int n)
 
int playerToMul (Player player)
 
int playerToSign (Player player)
 
int playerToMask (Player player)
 
int operator+ (Player, int)
 
int operator+ (int, Player)
 
int operator- (Player, int)
 
int operator- (int, Player)
 
int operator* (Player, int)
 
int operator* (int, Player)
 
int operator/ (Player, int)
 
int operator/ (int, Player)
 
bool isValid (Player player)
 cast等で作られたplayerが正しいかどうかを返す More...
 
std::ostream & operator<< (std::ostream &os, Player player)
 
std::istream & operator>> (std::istream &is, Ptype &ptype)
 
std::ostream & operator<< (std::ostream &os, const Ptype ptype)
 
bool isValid (Ptype ptype)
 int等からcastして作ったptypeが,正しい範囲に入っているかどうかのチェック More...
 
bool isPiece (Ptype ptype)
 ptypeが空白やEDGEでないかのチェック More...
 
bool isBasic (Ptype ptype)
 ptypeが基本型(promoteしていない)かのチェック More...
 
bool isPromoted (Ptype ptype)
 ptypeがpromote後の型かどうかのチェック More...
 
bool canPromote (Ptype ptype)
 ptypeがpromote可能な型かどうかのチェック promote済みの場合はfalseを返す More...
 
Ptype unpromote (Ptype ptype)
 ptypeがpromote後の型の時に,promote前の型を返す. promoteしていない型の時はそのまま返す More...
 
Ptype unpromoteSafe (Ptype ptype)
 
Ptype promote (Ptype ptype)
 promote可能なptypeに対して,promote後の型を返す promote不可のptypeを与えてはいけない. More...
 
bool isMajorBasic (Ptype ptype)
 
bool isMajor (Ptype ptype)
 
bool isMajorNonPieceOK (Ptype ptype)
 
unsigned int ptypeOIndex (PtypeO ptypeo)
 
PtypeO newPtypeO (Player player, Ptype ptype)
 
Ptype getPtype (PtypeO ptypeO)
 
PtypeO promote (PtypeO ptypeO)
 pieceをpromoteさせる. More...
 
PtypeO promoteWithMask (PtypeO ptypeO, int promoteMask)
 pieceを引数次第でpromoteさせる More...
 
PtypeO unpromote (PtypeO ptypeO)
 pieceをunpromoteさせる. More...
 
bool isValidPtypeO (int ptypeO)
 
bool isPiece (PtypeO ptypeO)
 EMPTY, EDGEではない More...
 
Player getOwner (PtypeO ptypeO)
 
PtypeO captured (PtypeO ptypeO)
 unpromoteすると共に,ownerを反転する. More...
 
PtypeO alt (PtypeO ptypeO)
 owner を反転する More...
 
PtypeO altIfPiece (PtypeO ptypeO)
 Pieceの時にはowner を反転する More...
 
bool canPromote (PtypeO ptypeO)
 
bool isPromoted (PtypeO ptypeO)
 ptypeOが promote済みかどうか More...
 
std::ostream & operator<< (std::ostream &os, const PtypeO ptypeO)
 
std::ostream & csaShow (std::ostream &os, Move move)
 
std::ostream & csaShow (std::ostream &, Square)
 
std::ostream & csaShow (std::ostream &os, Piece piece)
 
std::ostream & csaShow (std::ostream &os, Ptype ptype)
 
bool importantMove (const NumEffectState &state, Move move, Square my_king, Square op_king)
 
bool operator== (const Sennichite &l, const Sennichite &r)
 
std::ostream & operator<< (std::ostream &, const Sennichite &)
 
bool operator== (Square l, Square r)
 
bool operator!= (Square l, Square r)
 
bool operator< (Square l, Square r)
 
bool operator> (Square l, Square r)
 
std::ostream & operator<< (std::ostream &, Square)
 
template void EffectUtil::findThreat< osl::eval::ml::OpenMidEndingEval > (const NumEffectState &state, Square position, PtypeO ptypeo, PieceVector &out)
 
template void EffectUtil::findThreat< eval::ProgressEval > (const NumEffectState &state, Square position, PtypeO ptypeo, PieceVector &out)
 
 BOOST_STATIC_ASSERT (sizeof(HashKey)==sizeof(int)*4)
 
 BOOST_STATIC_ASSERT (sizeof(Move)==4)
 
 BOOST_STATIC_ASSERT (sizeof(Piece)==4)
 
 BOOST_STATIC_ASSERT (sizeof(unsigned int)*8 >=32)
 
template<Player P, Ptype PTYPE>
static void makeCapture (const NumEffectState &state, MoveVector &out)
 
void showLogProb (const stat::Histogram &numerator, const stat::Histogram &denominator)
 
void showLogProb (const stat::Histogram &numerator, const stat::Histogram &denom1, const stat::Histogram &denom2)
 
void showLogProb (const Histogram8 &numerator, const Histogram8 &denom1, const Histogram8 &denom2)
 
size_t find (Property property, const NumEffectState &state, const RatingEnv &e, const RatedMoveVector &moves, Move selected)
 

Variables

const BoardTable Board_Table
 
const int NStages = 4
 
const int EvalStages = 4
 
const int EndgameIndex = EvalStages-1
 
const PathEncodingTable Path_Encoding_Table
 
const int EMPTY_NUM =0x80
 
const int EDGE_NUM =0x40
 
const PieceTable Piece_Table
 
const int PTYPE_SIZE =PTYPE_MAX-PTYPE_MIN+1
 
const PtypeO PTYPEO_EMPTY =newPtypeO(BLACK,PTYPE_EMPTY)
 
const PtypeO PTYPEO_EDGE =newPtypeO(WHITE,PTYPE_EDGE)
 
const int PTYPEO_SIZE =PTYPEO_MAX-PTYPEO_MIN+1
 
const PtypeTable Ptype_Table
 

Detailed Description

attackDefense.h

defenseKing.cc

attackKing.cc

osl 一般

mtdfstat, alphabetastat 用の記録用 (text)

mtdfstat, alphabetastat 用の記録の親クラス

mtdfstat, alphabetastat 用の記録

defenseKing.h

attackKing.h

将棋盤や基本的なデータ型など.

Typedef Documentation

Definition at line 352 of file alphaBeta2.h.

Definition at line 351 of file alphaBeta2.h.

typedef QuadInt osl::MultiInt

Definition at line 15 of file midgame.h.

typedef QuadIntPair osl::MultiIntPair

Definition at line 16 of file midgame.h.

Definition at line 67 of file offset32.h.

Definition at line 68 of file offset32.h.

Enumeration Type Documentation

Enumerator
SHORT_DIRECTION_MIN 
SHORT8_DIRECTION_MIN 
UL 
U 
UR 
L 
R 
DL 
D 
DR 
SHORT8_DIRECTION_MAX 
UUL 
UUR 
LONG_DIRECTION_MIN 
LONG_UL 
LONG_U 
LONG_UR 
LONG_L 
LONG_R 
LONG_DL 
LONG_D 
LONG_DR 
LONG_DIRECTION_MAX 
DIRECTION_MIN 
SHORT_DIRECTION_MAX 
SHORT_DIRECTION_SIZE 
DIRECTION_MAX 
DIRECTION_INVALID_VALUE 
DIRECTION_SIZE 

Definition at line 8 of file direction.h.

Enumerator
HIRATE 

Definition at line 4 of file handicap.h.

16bit 表現

Enumerator
MOVE16_NONE 

Definition at line 27 of file move.h.

ある方向にある駒が移動可能かを表す.

(basicTypeだけは確定しているが,promote済みかどうかはわからない場合)

Enumerator
CannotMove 

可能でない

OnlyPromoted 

promote済みの駒の場合にのみ可能

OnlyBasic 

promoteしていない駒の場合にのみ可能

NoConstraint 

promoteしていようが,いまいが可能

Definition at line 334 of file ptypeTraits.h.

Enumerator
BLACK 
WHITE 

Definition at line 7 of file player.h.

Enumerator
NoPromoteType 
CanPromoteType 
CheckPromoteType 
MustPromoteType 

Definition at line 7 of file promoteType.h.

Enumerator
All 
TakeBack 

一手目の取り返し

TakeBack2 

2手目の取り返し

NoTakeBack 

取り返しでない先頭

SeePlus 

取り返し以外の駒得の先頭

SeePlus2 
SeePlusX 

3手目の駒得または駒得以外の先頭

NoSeePlus 

取り返しでも駒得でもない先頭

Definition at line 202 of file ratingstat.cc.

enum osl::Ptype

駒の種類を4ビットでコード化する

Enumerator
PTYPE_EMPTY 
PTYPE_EDGE 
PPAWN 
PLANCE 
PKNIGHT 
PSILVER 
PBISHOP 
PROOK 
KING 
GOLD 
PAWN 
LANCE 
KNIGHT 
SILVER 
BISHOP 
ROOK 
PTYPE_MIN 
PTYPE_BASIC_MIN 
PTYPE_PIECE_MIN 
PTYPE_MAX 

Definition at line 13 of file ptype.h.

Player + Ptype [-15, 15] PtypeO の O は Owner の O.

Enumerator
PTYPEO_MIN 
PTYPEO_MAX 

Definition at line 131 of file ptype.h.

Function Documentation

Player osl::alt ( Player  player)
inline

Definition at line 12 of file player.h.

Referenced by osl::checkmate::ProofPiecesUtil::addMonopolizedPieces(), osl::search::AlphaBeta2Tree< EvalT >::addMultiPV(), osl::eval::ml::MajorCheckWithCapture::addOne(), osl::eval::ml::AttackMajorsInBase::addOne(), osl::move_probability::King5x5Ptype::addOne(), osl::move_probability::MoveInfo::adhocAdjustAttackCheckmateDefender(), osl::move_probability::MoveInfo::adhocAdjustBishopFork(), osl::move_probability::MoveInfo::adhocAdjustBreakThreatmate(), osl::move_probability::MoveInfo::adhocAdjustSlider(), FullWidth::alphaBeta(), osl::search::AlphaBeta2Tree< EvalT >::alphaBetaSearch(), osl::search::AlphaBeta2Tree< EvalT >::alphaBetaSearchAfterMove(), osl::search::AlphaBeta2< EvalT >::alphaBetaSearchRoot(), osl::checkmate::ProofTreeDepthDfpn::andNode(), osl::checkmate::FixedDepthSearcher2::attack(), osl::checkmate::FixedDepthSearcher::attack(), osl::checkmate::Dfpn::attack(), osl::eval::ProgressEvalGeneral< progress_eval_opening_t >::attackBonusScale(), osl::progress::Effect5x3WithBonus::attackEffect3(), osl::checkmate::ProofNumberTable::attackEstimation(), osl::search::QuiescenceGenerator< P >::attackGoldWithPawn(), osl::checkmate::PureLibertyEstimator::attackH(), osl::checkmate::LibertyEstimator::attackH(), osl::search::QuiescenceGenerator< P >::attackKing8(), osl::search::QuiescenceGenerator< P >::attackKnightWithPawn(), osl::search::QuiescenceGenerator< P >::attackMajorPiece(), osl::search::QuiescenceGenerator< P >::attackMajorPieceFirstSelection(), osl::checkmate::attackProofCost(), osl::search::QuiescenceGenerator< P >::attackSilverWithPawn(), osl::search::QuiescenceGenerator< P >::attackToPinned(), osl::search::QuiescenceGenerator< P >::attackWithKnight(), osl::Square::back(), osl::rating::BadLance::basicMatch(), osl::search::AlphaBeta2Window::beta(), osl::move_probability::KingBlockade::blockAll(), osl::rating::DefenseKing8::blocking(), osl::checkmate::Dfpn::blockingSimulation(), osl::search::QuiescenceGenerator< P >::breakThreatmate(), osl::search::FixedEval::brinkmatePenalty(), osl::eval::ProgressEvalGeneral< OpeningEval >::calculateAttackBonusOne(), osl::eval::ProgressEvalGeneral< OpeningEval >::calculateAttackRooks(), osl::eval::ProgressEvalGeneral< OpeningEval >::calculateEnterKingBonus(), osl::eval::ProgressEvalGeneral< OpeningEval >::calculateGoldPenalty(), osl::eval::ProgressEvalGeneral< OpeningEval >::calculateRookRankBonus(), osl::eval::ProgressEvalGeneral< OpeningEval >::calculateSilverPenalty(), osl::eval::ml::GoldFeatures::canMoveToSide(), osl::checkmate::CheckmateIfCapture::cannotCapture(), osl::eval::ml::SilverFeatures::canRetreat(), osl::eval::ml::GoldFeatures::canRetreat(), osl::search::QuiescenceGenerator< P >::capture(), osl::rating::Threatmate::captureForKnightCheck(), osl::Move::capturePtypeO(), osl::eval::captureVal(), osl::state::SimpleState::changeTurn(), osl::search::QuiescenceGenerator< P >::check(), check_all(), osl::state::NumEffectState::checkShadow(), osl::move_probability::Feature::classifyEffect9(), osl::move_probability::StateInfo::clearOldCache(), convert_from_first(), osl::record::KisenUtils::convertMove(), osl::effect_util::ShadowEffect::count(), osl::rating::CountEffect2::count(), osl::rating::DefenseKing8::count(), Searcher::count(), osl::eval::ml::King25Effect::countEffectAndPieces(), osl::eval::ml::King25EffectBoth::countEffectAndPiecesBoth(), osl::progress::Effect5x3WithBonus::countEffectPieces(), osl::checkmate::ProofNumberTable::countLiberty(), osl::search::QuiescenceSearch2< EvalT >::currentValueWithLastThreat(), osl::move_probability::CoverFork::defending(), osl::checkmate::Dfpn::defense(), osl::checkmate::FixedDepthSearcher2::defense(), osl::checkmate::FixedDepthSearcher::defense(), osl::checkmate::FixedDepthSearcher2::defenseEstimation(), osl::checkmate::FixedDepthSearcher::defenseEstimation(), osl::checkmate::LibertyEstimator::defenseH(), osl::search::DominanceCheck::detect(), osl::eval::ppair::PiecePairEval< PiecePairWithStand< Table >, Table >::diffWithMove(), osl::state::NumEffectState::doCaptureMove(), doMain(), osl::checkmate::CheckmateIfCapture::effectiveAttackCandidate0(), osl::eval::ml::King8Effect::effectState(), osl::eval::ml::King8EffectAll::effectState(), osl::eval::ml::King25EffectEach< Stage >::effectState(), osl::state::SimpleState::emulateHandPiece(), osl::search::QuiescenceGenerator< P >::escapeAll(), osl::search::QuiescenceGenerator< P >::escapeByMoveOnly(), osl::move_action::EscapeFilter< P, OrigAction >::EscapeFilter(), osl::search::QuiescenceGenerator< P >::escapeFromLastMove(), osl::search::QuiescenceGenerator< P >::escapeKing(), osl::search::QuiescenceGenerator< P >::escapeKingInTakeBack(), osl::search::QuiescenceGenerator< P >::escapeNormalPiece(), osl::eval::ml::NumPiecesBetweenBishopAndKing::eval(), osl::eval::ml::KnightHead::eval(), osl::eval::ml::LanceEffectPieceKingRelative::eval(), osl::eval::ml::KnightFork::eval(), osl::eval::ml::PinPtypeAll::evalOne(), osl::eval::ml::MajorGoldSilverAttacked< Opening >::evalOne(), osl::eval::ml::CheckShadowPtype::evalOne(), osl::eval::ml::SilverFeatures::evalOne(), osl::eval::ml::KingMobility::evalOne(), osl::eval::ml::NonPawnAttackedPtypePair::evalOne(), osl::eval::ml::BishopExchangeSilverKing::evalOne(), osl::eval::ml::BishopRookFork::evalOne(), osl::eval::ml::Promotion37::evalOne(), osl::eval::ml::PieceEval::evalWithUpdate(), osl::eval::ml::KingPieceRelativeNoSupport::evalWithUpdate(), osl::eval::ml::PtypeYY::evalWithUpdate(), osl::eval::ml::PawnDropBoth::evalWithUpdate(), osl::eval::ml::PieceStandY::evalWithUpdate(), osl::eval::ml::King25EmptyAbs< Opening >::evalWithUpdate(), osl::eval::ml::PtypeY::evalWithUpdate(), osl::eval::ml::PawnPtypeOPtypeO::evalWithUpdate(), osl::eval::ml::KnightFork::evalWithUpdate(), osl::eval::ml::PiecePairKing::evalWithUpdateBang(), osl::eval::ml::NonPawnAttacked::evalWithUpdateBang(), osl::eval::ml::NonPawnAttackedPtype::evalWithUpdateBang(), osl::eval::ml::PtypeYPawnY::evalWithUpdateBang(), osl::search::QuiescenceSearch2< EvalT >::examineMoves(), osl::search::AlphaBeta2Tree< EvalT >::examineMovesRoot(), osl::search::QuiescenceSearch2< EvalT >::examineTakeBack(), osl::search::QuiescenceSearch2< EvalT >::examineTakeBack2(), osl::progress::Effect5x3::expect(), osl::progress::Effect5x3WithBonus::expect(), osl::eval::MinorPieceBonus::expect(), osl::effect_util::UnblockableEffect::find(), osl::effect_util::SendOffSquare::find(), osl::rating::PatternBlock::find(), find_all(), osl::move_probability::BlockLong::findAll(), osl::search::BreakThreatmate::findBlockLong(), osl::move_probability::StateInfo::findCheckmateDefender(), osl::search::AlphaBeta2< EvalT >::findCheckmateInPV(), osl::checkmate::Dfpn::findDagSource(), osl::effect_util::Pin::findDirection(), osl::eval::ml::BishopRookFork::findDropInLine(), osl::rating::AttackKing8Group::findMatch(), osl::rating::PtypeAttackedGroup::findMatch(), osl::rating::PatternBlockGroup::findMatch(), osl::rating::BlockGroup::findMatch(), osl::rating::BadLanceGroup::findMatch(), osl::move_probability::StateInfo::findShortThreatmate(), osl::move_action::EscapeFilter< P, OrigAction >::findThreat(), osl::effect_util::EffectUtil::findThreat(), osl::state::NumEffectState::findThreatenedPiece(), osl::move_probability::StateInfo::finishUpdate(), osl::search::AlphaBeta2< EvalT >::fullWindow(), osl::move_generator::SafeDropMajorPiece< P >::generate(), osl::search::BreakThreatmate::generate(), osl::search::BreakThreatmate::generateAddEffect(), osl::search::MoveGenerator::generateAll(), osl::search::QuiescenceSearch2< EvalT >::generateAndExamineTakeBack2(), osl::checkmate::Dfpn::generateCheck(), osl::search::MoveScore::generateCheckNoCapture(), osl::checkmate::Dfpn::generateEscape(), osl::search::MoveGenerator::generateKingEscape(), osl::move_generator::without_effect::generateLongMove(), osl::game_playing::GameState::generateMoves(), osl::search::BreakThreatmate::generateOpenRoad(), osl::move_generator::PieceOnBoard< Action, noCapturePromote >::generatePiecePtype(), osl::rating::FeatureSet::generateRating(), osl::move_generator::addeffect8::generateShortDrop(), osl::game_playing::UsiResponse::genmoveProbability(), osl::record::KisenFile::getMoves(), osl::enter_king::SimplePredictor::getProbability(), osl::enter_king::SimplePredictor::getProbability27(), osl::checkmate::Dfpn::grandParentSimulation(), osl::effect_util::Neighboring8Direct::Table::hasEffectOrAdditional(), osl::checkmate::Dfpn::hasEscapeMove(), osl::state::NumEffectState::inCheck(), increment(), osl::eval::ml::KingPieceRelative::index(), osl::rating::BigramAttack::index(), osl::rating::PinAttack::index(), osl::eval::ml::PtypeYY::index(), osl::rating::Open::index(), osl::rating::ImmediateAddSupport::index(), osl::eval::ml::LanceEffectPieceKingRelative::index(), osl::eval::ml::NonPawnAttackedPtypePair::index1(), osl::search::MoveGenerator::init(), osl::rating::Threatmate::isCandidate(), osl::annotate::Analyzer::isCheckmate(), osl::state::NumEffectState::isConsistent(), osl::RepetitionCounter::isConsistent(), osl::move_probability::BreakThreatmate::isDefendingKing8(), osl::game_playing::GameState::isIllegal(), osl::checkmate::DualDfpn::isLosingState(), isMated(), osl::move_classifier::TrapRook< P >::isMember(), osl::effect_util::UnblockableCheck::isMember(), osl::search::QuiescenceGenerator< P >::kingWalk(), osl::checkmate::ProofPieces::leaf(), osl::checkmate::ProofNumberTable::libertyAfterAllDrop(), osl::checkmate::ProofNumberTable::libertyAfterAllMove(), main(), osl::rating::RatingEnv::make(), osl::checkmate::King8Info::make(), osl::effect_util::Pin::makeByPiece(), osl::effect_util::Pin::makeByPieceKing(), makeCapture(), osl::move_probability::BlockLong::makeLongAttackOne(), osl::rating::RelativeKingX::makeOldX(), osl::rating::RelativeKingY::makeOldY(), osl::state::NumEffectState::makePinOpen(), osl::progress::Effect5x3::makeProgressAll(), osl::effect_util::PinOrOpen::makeStep(), osl::checkmate::King8Info::makeWithPin(), osl::rating::RelativeKingX::makeX(), osl::rating::RelativeKingY::makeY(), osl::rating::CheckmateIfCapture::match(), osl::rating::AttackKing8::match(), osl::rating::PinAttack::match(), osl::rating::PtypeAttacked::match(), osl::annotate::CheckmateForEscape::match(), osl::annotate::ThreatmateIfMorePieces::match(), osl::annotate::Vision3::match(), osl::rating::Block::match(), osl::move_probability::SeeFeature::match(), osl::move_probability::CapturePtype::match(), osl::rating::PatternBlock::match(), osl::rating::BadLance::match(), osl::move_probability::KingRelativeY::match(), osl::move_probability::KingRelativeX::match(), osl::move_probability::FromEffect::match(), osl::move_probability::FromEffectLong::match(), osl::move_probability::ToEffectLong::match(), osl::move_probability::PatternBase< TestPromotable >::match(), osl::move_probability::MoveFromOpposingSliders::match(), osl::move_probability::AttackFromOpposingSliders::match(), osl::move_probability::LongRecapture::match(), osl::move_probability::LanceAttack::match(), osl::move_probability::RookAttack::match(), osl::move_probability::LureDefender::match(), osl::move_probability::CheckmateIfCapture::match(), osl::move_probability::OpposingPawn::match(), osl::move_probability::DropAfterOpposingPawn::match(), osl::move_probability::CoverPawn::match(), osl::move_probability::SacrificeAttack::match(), osl::move_probability::King5x5Ptype::match(), osl::move_probability::KingBlockade::match(), osl::move_probability::CoverFork::match(), osl::move_probability::PromotionBySacrifice::match(), osl::move_probability::EscapeThreatened::match(), osl::rating::Karanari::matchGeneral(), osl::eval::ml::SilverFork::matchGold(), osl::annotate::EscapeFromCheck::matchMain(), osl::move_probability::PawnAttack::matchPtype(), osl::eval::ml::SilverFork::matchRook(), osl::search::FixedEval::minusInfty(), osl::hash::HashKey::newMakeMove(), osl::hash::HashKey::newUnmakeMove(), osl::ntesuki::NtesukiMoveList::NtesukiMoveList(), osl::effect_util::SendOffSquare::onlyOneSupport(), osl::rating::Threatmate::Helper::operator()(), osl::move_order::CaptureEstimation::operator()(), osl::eval::ml::King8EffectBase::MakeEffectStateSimple::operator()(), osl::search::QSearch2SafeEscape< Eval, P >::operator()(), osl::eval::ml::King8EffectBase::MakeEffectStateDefense::operator()(), osl::eval::ml::PinPtypeAll::pawnAttack(), osl::RepetitionCounter::pop(), osl::game_playing::WinCountTracer::popMove(), osl::game_playing::WeightTracer::popMove(), osl::search::SearchState2Core::popPass(), osl::threatmate::KfendPredictor::predict(), osl::threatmate::RichPredictor::predict(), osl::threatmate::TreePredictor::predict(), osl::threatmate::MlPredictor::predict(), osl::search::AlphaBeta3::presearch(), osl::threatmate::TreePredictor::probability(), osl::search::MoveStackRejections::probe(), osl::game_playing::GnuShogiClient::processComputerMove(), processKifu(), osl::progress::ml::NewProgress::progress16(), osl::progress::ml::NewProgress::progressAttack(), osl::progress::ml::NewProgress::progressDefense(), osl::progress::ml::NewProgress::progressOne(), osl::state::NumEffectState::prologueCapture(), osl::state::NumEffectState::prologueDrop(), osl::state::NumEffectState::prologueSimple(), osl::search::QuiescenceGenerator< P >::promote(), osl::search::QuiescenceGenerator< P >::promoteN(), osl::progress::ml::NewProgress::promotion37One(), osl::checkmate::Dfpn::proofOracleAttack(), osl::checkmate::Dfpn::proofOracleDefense(), osl::RepetitionCounter::push(), qsearch(), osl::search::AlphaBeta3::quiesce(), osl::search::AlphaBeta2Tree< EvalT >::quiesce(), osl::search::AlphaBeta3::quiesceRoot(), osl::search::AlphaBeta2Tree< EvalT >::quiesceRoot(), osl::search::AlphaBeta2Tree< EvalT >::quiesceStable(), osl::game_playing::GnuShogiClient::readAndProcessCommand(), osl::state::NumEffectState::recalcPinOpen(), osl::search::SearchBase< EvalT, SimpleHashTable, CountRecorder, RealizationProbability >::recordCheckmateResult(), osl::search::SearchBase< EvalT, SimpleHashTable, CountRecorder, RealizationProbability >::recordLoseByCheckmate(), osl::game_playing::GameState::rejectByStack(), osl::game_playing::CsaLogger::resign(), osl::search::AlphaBeta2Tree< EvalT >::rootAlpha(), osl::state::SimpleState::rotate180(), osl::Move::rotate180(), run(), search(), osl::search::QuiescenceSearch2< EvalT >::search(), Analyzer::search(), osl::search::AlphaBeta2Tree< EvalT >::searchAllMoves(), osl::search::QuiescenceSearch2< EvalT >::searchInternal(), osl::search::QuiescenceSearch2< EvalT >::searchIteratively(), osl::search::QuiescenceSearch2< EvalT >::searchMain(), osl::search::QuiescenceSearch2< EvalT >::searchProbCut(), osl::search::AlphaBeta3::searchRoot(), osl::search::QuiescenceRecord::sendOffSquare(), osl::checkmate::DualDfpn::OraclePool::setAttack(), osl::checkmate::Dfpn::Node::setCheckmateDefense(), osl::checkmate::Dfpn::Node::setNoCheckmateAttack(), osl::checkmate::Dfpn::Node::setNoCheckmateDefense(), osl::ntesuki::NtesukiMoveGenerator::setOrder(), osl::state::SimpleState::setPieceAll(), osl::checkmate::DualDfpn::setRootPlayer(), osl::progress::Effect5x3Table::setupBlockEffect(), osl::progress::Effect5x3Table::setupLongEffect(), osl::progress::Effect5x3Table::setupShortEffect(), showPairStat(), osl::move_probability::CheckFeature::sign(), osl::search::AlphaBeta2Tree< EvalT >::stableThreshold(), osl::search::QuiescenceSearch2< EvalT >::staticValueWithThreat(), osl::move_action::EscapeFilter< P, OrigAction >::suitable(), osl::annotate::ThreatmateIfMorePieces::suitable(), osl::move_probability::ToEffect::supportAttack(), osl::search::QuiescenceSearch2< EvalT >::takeBackOrChase(), osl::search::QuiescenceSearch2< EvalT >::takeBackValue(), test_file(), test_position(), test_record(), osl::eval::ml::BishopRookFork::testCenter(), testWinOrLose(), osl::search::FixedEval::threatmatePenalty(), trim_last(), osl::search::AlphaBeta2Tree< EvalT >::tryCheckmate(), osl::search::AlphaBeta2Tree< EvalT >::tryCheckmateAgain(), osl::game_playing::WinCountTracer::update(), osl::game_playing::WeightTracer::update(), osl::eval::endgame::AttackDefense::update(), osl::progress::Effect5x3::update(), osl::eval::MinorPieceBonus::update(), osl::eval::ml::OpenMidEndingEval::update(), osl::progress::ml::NewProgress::updateAttack5x5PiecesAndState(), osl::move_probability::PatternCommon::updateCacheOne(), osl::eval::ml::NonPawnAttackedPtype::updateChanged(), osl::eval::ml::NonPawnAttacked::updateEffectChanged(), osl::search::DualThreatmateState::updateInLock(), osl::progress::ml::NewProgress::updateNonPawnAttackedPtypePairOne(), osl::progress::ml::NewProgress::updatePieceKingRelativeBonus(), osl::move_probability::StateInfo::updatePinnedGenerals(), osl::search::AlphaBeta2Tree< EvalT >::updateRootPV(), osl::eval::ml::OpenMidEndingEval::updateSub(), and osl::state::NumEffectState::wasCheckEvasion().

PtypeO osl::alt ( PtypeO  ptypeO)
inline

owner を反転する

Definition at line 203 of file ptype.h.

References isPiece().

PtypeO osl::altIfPiece ( PtypeO  ptypeO)
inline
osl::BOOST_STATIC_ASSERT ( sizeof(Piece)  = =4)
osl::BOOST_STATIC_ASSERT ( sizeof(Move)  = =4)
osl::BOOST_STATIC_ASSERT ( sizeof(HashKey)  = =sizeof(int)*4)
osl::BOOST_STATIC_ASSERT ( sizeof(unsigned int)*8 >=  32)
bool osl::canPromote ( Ptype  ptype)
inline

ptypeがpromote可能な型かどうかのチェック promote済みの場合はfalseを返す

Definition at line 77 of file ptype.h.

References GOLD, and isPiece().

Referenced by canPromote(), osl::eval::See::computeValue(), osl::eval::TakeBackValue::computeValue(), osl::effect_action::SimpleMove< Action >::doAction(), osl::effect_action::BetterToPromote< Action >::doAction(), osl::effect_action::AlwaysMove< Action >::doAction(), osl::effect_action::SimpleMove< Action >::doActionPtype(), osl::effect_action::BetterToPromote< Action >::doActionPtype(), osl::effect_action::AlwaysMove< Action >::doActionPtype(), osl::move_generator::without_effect::generateLongMove(), osl::move_generator::addeffect8::generateLongMove(), osl::move_generator::detail::generateMovePiecePtypeMask(), osl::move_generator::PieceOnBoard< Action, noCapturePromote >::generatePiecePtypeUnsafe(), osl::move_generator::PieceOnBoard< Action, noCapturePromote >::generatePieceUnsafe(), osl::move_generator::PieceOnBoard< Action, noCapturePromote >::generatePtypeUnsafe(), osl::checkmate::ImmediateCheckmate::hasCheckmateMoveDirPiece(), osl::move_generator::addeffect8::AddEffect8Table::initMoveOffset(), osl::PtypeTable::initPtypeSub(), osl::Piece::isPlayerBasicPtype(), osl::state::SimpleState::isValidMoveByRule(), osl::move_probability::LureDefender::match(), promote(), osl::Piece::promote(), osl::Move::promote(), osl::search::promoteIf(), osl::search::QuiescenceSearch2< EvalT >::searchMain(), show(), osl::record::ki2::show(), osl::record::psn::showXP(), and update().

bool osl::canPromote ( PtypeO  ptypeO)
inline

Definition at line 219 of file ptype.h.

References canPromote(), and getPtype().

PtypeO osl::captured ( PtypeO  ptypeO)
inline

unpromoteすると共に,ownerを反転する.

Definition at line 196 of file ptype.h.

References isPiece().

Referenced by osl::checkmate::ProofPieces::attack(), osl::search::QuiescenceGenerator< P >::attackKing8(), osl::search::QuiescenceGenerator< P >::attackToPinned(), osl::search::QuiescenceGenerator< P >::breakThreatmate(), osl::rating::Threatmate::captureForKnightCheck(), osl::eval::ml::OpenMidEndingEval::captureValue(), osl::search::QuiescenceGenerator< P >::check(), osl::record::KisenUtils::convertMove(), osl::checkmate::DisproofPieces::defense(), osl::eval::ppair::PiecePairWithStand< PiecePairPieceTable >::diffAfterCaptureMove(), osl::eval::ppair::PiecePairWithStand< PiecePairPieceTable >::diffWithUpdate(), osl::checkmate::CheckmateIfCapture::effectiveAttackCandidate0(), osl::eval::ml::PieceEval::evalWithUpdate(), osl::eval::ml::PieceStand::evalWithUpdate(), osl::eval::ml::KingPieceRelative::evalWithUpdate(), osl::eval::ml::KingPieceRelativeNoSupport::evalWithUpdate(), osl::eval::ml::PtypeYY::evalWithUpdate(), osl::eval::ml::PawnDropBoth::evalWithUpdate(), osl::eval::ml::King25EmptyAbs< Opening >::evalWithUpdate(), osl::eval::ml::PtypeY::evalWithUpdate(), osl::eval::ml::PtypeX::evalWithUpdate(), osl::eval::ml::PawnPtypeOPtypeO::evalWithUpdate(), osl::eval::ml::PromotedMinorPieces::evalWithUpdate(), osl::eval::ml::PiecePairKing::evalWithUpdateBang(), osl::eval::ml::PawnAdvanceAll::evalWithUpdateBang(), osl::eval::ml::NonPawnAttacked::evalWithUpdateBang(), osl::eval::ml::NonPawnAttackedPtype::evalWithUpdateBang(), osl::eval::ml::PtypeCount::evalWithUpdateBang(), osl::eval::ml::PtypeYPawnY::evalWithUpdateBang(), osl::eval::endgame::AttackDefense::expect(), osl::eval::PieceEval::expect(), osl::search::FirstMoveThreatmate::isMember(), osl::state::NumEffectState::makeMove(), osl::state::NumEffectState::makeUnmakeMove(), osl::move_probability::CapturePtype::match(), osl::move_probability::ToEffect::match(), osl::move_probability::BreakThreatmate::match(), osl::move_probability::ThreatmateByCapture::match(), osl::annotate::EscapeFromCheck::matchMain(), osl::hash::HashKey::newMakeMove(), osl::hash::HashKey::newUnmakeMove(), osl::eval::PtypeEvalTable::reset(), osl::record::kakinoki::strToMove(), osl::eval::endgame::AttackDefense::update(), osl::eval::MinorPieceBonus::update(), osl::eval::PieceEval::update(), osl::eval::ProgressEvalGeneral< OpeningEval >::update(), osl::progress::ml::NewProgress::updateMain(), osl::progress::ml::NewProgress::updateSub(), and osl::eval::ml::OpenMidEndingEval::updateSub().

std::ostream & osl::csaShow ( std::ostream &  os,
Move  move 
)
std::ostream & osl::csaShow ( std::ostream &  os,
Square  pos 
)

Definition at line 198 of file csa.cc.

References osl::record::csa::show().

std::ostream & osl::csaShow ( std::ostream &  os,
Piece  piece 
)

Definition at line 203 of file csa.cc.

References osl::record::csa::show().

std::ostream & osl::csaShow ( std::ostream &  os,
const osl::Ptype  ptype 
)

Definition at line 208 of file csa.cc.

References osl::record::csa::show().

const char * osl::ctime_r ( const time_t *  timep,
char *  buf 
)
int osl::dirToMask ( Direction  dir)
inline
template void osl::EffectUtil::findThreat< eval::ProgressEval > ( const NumEffectState &  state,
Square  position,
PtypeO  ptypeo,
PieceVector &  out 
)
template void osl::EffectUtil::findThreat< osl::eval::ml::OpenMidEndingEval > ( const NumEffectState &  state,
Square  position,
PtypeO  ptypeo,
PieceVector &  out 
)
size_t osl::find ( Property  property,
const NumEffectState &  state,
const RatingEnv e,
const RatedMoveVector moves,
Move  selected 
)
Player osl::getOwner ( PtypeO  ptypeO)
inline
Ptype osl::getPtype ( PtypeO  ptypeO)
inline

Definition at line 149 of file ptype.h.

Referenced by osl::search::StateElements::addMyMove(), osl::search::StateElements::addOpMove(), adjustKingBonus(), canPromote(), osl::search::StateElements::canReject(), osl::eval::ml::PawnAdvanceUtil::cantAdvance(), osl::state::NumEffectState::epilogueCapture(), osl::eval::endgame::AttackDefense::expect(), osl::eval::PieceEval::expect(), osl::effect_util::UnblockableEffect::find(), osl::effect_util::Neighboring8Direct::Table::findNearest(), osl::effect_util::EffectUtil::forEachEffectOfPtypeO(), osl::effect_util::Neighboring8Direct::Table::hasEffect(), osl::effect_util::Neighboring8Effect::Table::hasEffect(), osl::effect_util::Neighboring25Direct::hasEffectNaive(), osl::effect_util::Neighboring8Effect::hasEffectNaive(), osl::effect_util::Neighboring8Direct::hasEffectNaive(), osl::effect_util::Neighboring8Direct::Table::hasEffectOrAdditional(), osl::hash::HashGenTable::HashGenTable(), osl::eval::ml::RookEffectBase::index1(), osl::eval::ml::BishopEffectBase::index1(), isPiece(), isPromoted(), osl::state::SimpleState::isValidMoveByRule(), osl::move_probability::BlockLong::longAttackIndex(), osl::Move::oldPtype(), operator<<(), osl::state::NumEffectState::prologueCapture(), promote(), osl::eval::SelectSafePieces< P >::select(), osl::eval::ml::RookEffectPieceKingRelative::setUp(), osl::eval::ml::BishopEffectPieceKingRelative::setUp(), show(), osl::record::usi::show(), osl::eval::ppair::PiecePairWithStand< PiecePairPieceTable >::standBonus(), osl::eval::endgame::DefenseKing::valueOf(), and osl::eval::endgame::AttackKing::valueOf().

bool osl::importantMove ( const NumEffectState &  state,
Move  move,
Square  my_king,
Square  op_king 
)
inline
Player osl::indexToPlayer ( int  n)
inline
Direction osl::inverse ( Direction  d)
inline
Direction osl::inverseUnsafe ( Direction  d)
inline

Definition at line 52 of file direction.h.

Referenced by inverse(), osl::state::NumEffectState::pinAttacker(), and primDirUnsafe().

bool osl::isBasic ( Ptype  ptype)
inline
bool osl::isLong ( Direction  d)
inline
bool osl::isMajor ( Ptype  ptype)
inline
bool osl::isMajorBasic ( Ptype  ptype)
inline
bool osl::isMajorNonPieceOK ( Ptype  ptype)
inline
bool osl::isPiece ( Ptype  ptype)
inline

ptypeが空白やEDGEでないかのチェック

Definition at line 50 of file ptype.h.

References isValid(), and PTYPE_PIECE_MIN.

Referenced by alt(), osl::checkmate::ProofPieces::attack(), canPromote(), captured(), osl::search::MoveGenerator::captureValue(), osl::checkmate::DisproofPieces::defense(), osl::eval::ml::Promotion37::evalOne(), osl::rating::AttackKing8Group::findMatch(), osl::rating::PatternGroup::findMatch(), osl::search::BigramKillerMove::getMove(), getOwner(), osl::effect_util::Neighboring8Direct::Table::init(), osl::effect_util::Neighboring8Effect::Table::init(), isMajor(), isPiece(), isPromoted(), osl::record::kakinokiParseLine(), main(), osl::move_probability::BlockLong::makeLongAttackOne(), osl::move_probability::StateInfo::makePinOfLongPieces(), osl::rating::AttackKing8::match(), osl::rating::Pattern::match(), osl::rating::LongTarget2::match(), operator<<(), osl::threatmate::TreePredictor::predict(), osl::record::KanjiPrint::print(), promote(), osl::progress::ml::NewProgress::promotion37One(), osl::checkmate::ProofNumberTable::ProofNumberTable(), osl::eval::PtypeEvalTable::reset(), osl::eval::ml::PiecePair::sanitize(), osl::search::QuiescenceSearch2< EvalT >::searchMain(), osl::eval::ppair::PiecePairPieceTable::setUp(), osl::record::usi::show(), osl::record::csa::show(), osl::eval::endgame::AttackKing::Table::Table(), osl::eval::endgame::DefenseKing::Table::Table(), unpromote(), unpromoteSafe(), and osl::move_probability::PatternCommon::updateCacheOne().

bool osl::isPiece ( PtypeO  ptypeO)
inline

EMPTY, EDGEではない

Definition at line 182 of file ptype.h.

References getPtype(), isPiece(), and isValidPtypeO().

bool osl::isPromoted ( Ptype  ptype)
inline
bool osl::isPromoted ( PtypeO  ptypeO)
inline

ptypeOが promote済みかどうか

Definition at line 228 of file ptype.h.

References getPtype(), isPromoted(), and isValidPtypeO().

bool osl::isShort ( Direction  d)
inline

Definition at line 40 of file direction.h.

References SHORT_DIRECTION_MAX.

Referenced by shortToLong().

bool osl::isShort8 ( Direction  d)
inline

Definition at line 44 of file direction.h.

References SHORT8_DIRECTION_MAX.

Referenced by inverse(), and primDir().

bool osl::isValid ( Player  player)

cast等で作られたplayerが正しいかどうかを返す

Definition at line 4 of file player.cc.

References BLACK, and WHITE.

bool osl::isValid ( Ptype  ptype)

int等からcastして作ったptypeが,正しい範囲に入っているかどうかのチェック

Definition at line 6 of file ptype.cc.

References PTYPE_MAX, and PTYPE_MIN.

bool osl::isValid ( Direction  d)
bool osl::isValidPtypeO ( int  ptypeO)
Direction osl::longToShort ( Direction  d)
inline
template<Player P, Ptype PTYPE>
static void osl::makeCapture ( const NumEffectState &  state,
MoveVector &  out 
)
static
Offset osl::newOffset ( int  dx,
int  dy 
)
inline
PtypeO osl::newPtypeO ( Player  player,
Ptype  ptype 
)
inline

Definition at line 143 of file ptype.h.

Referenced by osl::search::AlphaBeta2Tree< EvalT >::addMultiPV(), osl::eval::ml::MajorCheckWithCapture::addOne(), addValue(), adjustDual(), osl::search::AlphaBeta2< EvalT >::alphaBetaSearchRoot(), osl::search::QuiescenceGenerator< P >::attackMajorPieceFirstSelection(), osl::search::QuiescenceGenerator< P >::attackToPinned(), osl::rating::DefenseKing8::blocking(), osl::Move::capturePtypeO(), osl::eval::captureVal(), osl::search::MoveGenerator::captureValue(), osl::record::usi::charToPtypeO(), osl::search::QuiescenceGenerator< P >::check(), osl::search::AlphaBeta2< EvalT >::computeBestMoveIteratively(), osl::eval::See::computeValue(), osl::eval::ppair::PiecePairWithStand< PiecePairPieceTable >::diffAfterCaptureMove(), osl::eval::ppair::PiecePairEvalTableBase< PiecePairPieceTable >::diffAfterCaptureMove(), osl::eval::ppair::PiecePairWithStand< PiecePairPieceTable >::diffAfterSimpleMove(), osl::eval::ppair::PiecePairEvalTableBase< PiecePairPieceTable >::diffAfterSimpleMove(), osl::eval::ppair::PiecePairEval< PiecePairWithStand< Table >, Table >::diffWithMove(), osl::state::NumEffectState::doCaptureMove(), osl::state::NumEffectState::doSimpleMove(), osl::state::NumEffectState::doUndoCaptureMove(), osl::effect::ApplyDoUndoDropMove< P, SignatureEffect< BaseState > >::doUndoDropMove(), osl::state::NumEffectState::doUndoSimpleMove(), osl::move_action::NoAddEffectFilter< OrigAction >::dropMove(), osl::state::NumEffectState::epilogueCapture(), osl::state::NumEffectState::epilogueSimple(), osl::move_action::EscapeFilter< P, OrigAction >::EscapeFilter(), osl::eval::ml::PieceEval::evalWithUpdate(), osl::eval::ml::PtypeYY::evalWithUpdate(), osl::search::AlphaBeta2Tree< EvalT >::examineMovesRoot(), osl::eval::ppair::PiecePairEval< Eval, Table >::expect(), osl::effect_util::Pin::findPtype(), osl::eval::ppair::PiecePairIndex::forEachRelation(), osl::move_generator::without_effect::generateLongMove(), osl::move_generator::addeffect8::hasEffect(), osl::effect::hasLongMove(), osl::move_generator::addeffect8::hasShortEffect(), osl::effect::hasShortMove(), osl::move_generator::addeffect8::hasUnblockableEffect(), osl::checkmate::ImmediateCheckmateTable::ImmediateCheckmateTable(), osl::effect_util::Neighboring8Direct::Table::init(), osl::effect_util::Neighboring8Effect::Table::init(), osl::PtypeTable::init(), osl::rating::Threatmate::isCandidate(), osl::move_classifier::DirectCheck< P >::isMember(), osl::move_classifier::TrapRook< P >::isMember(), osl::record::Characters::kanji(), osl::effect::Liberty8Table::Liberty8Table(), main(), osl::annotate::Vision3::match(), osl::hash::HashKey::newMakeMove(), osl::hash::HashKey::newUnmakeMove(), osl::game_playing::SearchPlayer::pawnValue(), osl::eval::PieceEval::PieceEval(), osl::eval::ml::PiecePair::IndexTable::pindex(), osl::threatmate::KfendPredictor::predict(), osl::threatmate::TreePredictor::predict(), osl::threatmate::MlPredictor::predict(), osl::record::KanjiPrint::print(), osl::threatmate::TreePredictor::probability(), osl::state::NumEffectState::prologueCapture(), osl::state::NumEffectState::prologueSimple(), osl::progress::PtypeProgress::PtypeProgress(), osl::progress::PtypeProgressTable::PtypeProgressTable(), osl::PtypeTable::PtypeTable(), osl::search::AlphaBeta3::quiesce(), osl::search::AlphaBeta3::quiesceRoot(), osl::eval::PtypeEvalTable::reset(), osl::search::AlphaBeta2Tree< EvalT >::rootAlpha(), osl::eval::ml::PiecePair::sanitize(), Analyzer::search(), osl::search::QuiescenceSearch2< EvalT >::searchMain(), osl::search::QuiescenceSearch2< EvalT >::searchProbCut(), osl::eval::ProgressEvalGeneral< progress_eval_opening_t >::seeScale(), osl::effect::setBetweenMask(), osl::effect::MoveSignatureTable::setSignature(), osl::eval::ml::PieceEval::setUp(), osl::eval::ppair::PiecePairPieceTable::setUp(), osl::eval::ml::BishopHeadKingRelative::setUp(), osl::progress::Effect5x3Table::setupLongEffect(), osl::progress::Effect5x3Table::setupShortEffect(), osl::eval::ppair::PiecePairWithStand< Table >::setValues(), show(), osl::search::AlphaBeta2Tree< EvalT >::showFailLow(), showPairStat(), showPairStatAgainst(), showPieceStat(), osl::search::AlphaBeta2Tree< EvalT >::showPV(), osl::move_action::NoAddEffectFilter< OrigAction >::simpleMove(), osl::search::AlphaBeta2Tree< EvalT >::stableThreshold(), osl::eval::ppair::PiecePairWithStand< PiecePairPieceTable >::standBonus(), osl::search::QuiescenceSearch2< EvalT >::staticValue(), osl::move_action::EscapeFilter< P, OrigAction >::suitable(), osl::eval::endgame::AttackKing::Table::Table(), osl::eval::endgame::DefenseKing::Table::Table(), osl::effect_util::SendOffSquare::Table::Table(), osl::search::QuiescenceSearch2< EvalT >::takeBackOrChase(), osl::search::AlphaBeta2Tree< EvalT >::tryCheckmateAgain(), osl::move_action::NoAddEffectFilter< OrigAction >::unknownMove(), and osl::search::AlphaBeta2Tree< EvalT >::updateRootPV().

bool osl::operator!= ( EffectContent  l,
EffectContent  r 
)
inline

Definition at line 58 of file effectContent.h.

bool osl::operator!= ( const PathEncoding &  l,
const PathEncoding &  r 
)
inline

Definition at line 79 of file pathEncoding.h.

bool osl::operator!= ( Offset  l,
Offset  r 
)
inline

Definition at line 112 of file offset.h.

bool osl::operator!= ( Piece  l,
Piece  r 
)
inline

Definition at line 258 of file piece.h.

bool osl::operator!= ( PieceStand  l,
PieceStand  r 
)
inline

Definition at line 261 of file pieceStand.h.

bool osl::operator!= ( Square  l,
Square  r 
)
inline

Definition at line 299 of file square.h.

bool osl::operator!= ( Move  lhs,
Move  rhs 
)
inline

Definition at line 348 of file move.h.

int osl::operator* ( Player  ,
int   
)
int osl::operator* ( int  ,
Player   
)
int osl::operator+ ( Player  ,
int   
)
int osl::operator+ ( int  ,
Player   
)
int osl::operator- ( int  ,
Player   
)
int osl::operator- ( Player  ,
int   
)
int osl::operator/ ( int  ,
Player   
)
int osl::operator/ ( Player  ,
int   
)
bool osl::operator< ( MoveLogProb const &  lhs,
MoveLogProb const &  rhs 
)
inline

Definition at line 53 of file moveLogProb.h.

References osl::MoveLogProb::logProb(), and osl::MoveLogProb::move().

bool osl::operator< ( EffectContent  l,
EffectContent  r 
)
inline

Definition at line 62 of file effectContent.h.

References osl::EffectContent::intValue().

bool osl::operator< ( Offset  l,
Offset  r 
)
inline

Definition at line 116 of file offset.h.

References osl::Offset::intValue().

bool osl::operator< ( Piece  l,
Piece  r 
)
inline

Definition at line 250 of file piece.h.

References osl::Piece::intValue().

bool osl::operator< ( PieceStand  l,
PieceStand  r 
)
inline

Definition at line 265 of file pieceStand.h.

References osl::PieceStand::getFlags(), and osl::PieceStand::testCarries().

bool osl::operator< ( Square  l,
Square  r 
)
inline

Definition at line 303 of file square.h.

References osl::Square::uintValue().

bool osl::operator< ( Move  lhs,
Move  rhs 
)
inline

Definition at line 332 of file move.h.

References osl::Move::intValue().

std::ostream & osl::operator<< ( std::ostream &  os,
const Sennichite &  s 
)
std::ostream & osl::operator<< ( std::ostream &  os,
const Ptype  ptype 
)

Definition at line 60 of file ptype.cc.

References osl::PtypeTable::getName(), and Ptype_Table.

std::ostream & osl::operator<< ( std::ostream &  os,
MoveLogProb const &  move 
)

Definition at line 7 of file moveLogProb.cc.

References osl::MoveLogProb::logProb(), and osl::MoveLogProb::move().

std::ostream & osl::operator<< ( std::ostream &  os,
Player  player 
)

Definition at line 9 of file player.cc.

References BLACK.

std::ostream & osl::operator<< ( std::ostream &  os,
const PathEncoding &  path 
)

Definition at line 33 of file pathEncoding.cc.

References osl::PathEncoding::getDepth(), and osl::PathEncoding::getPath().

std::ostream & osl::operator<< ( std::ostream &  os,
const Direction  d 
)

Definition at line 10 of file direction.cc.

std::ostream & osl::operator<< ( std::ostream &  os,
Offset  offset 
)

Definition at line 67 of file offset.cc.

References osl::Offset::intValue().

std::ostream & osl::operator<< ( std::ostream &  os,
const PtypeO  ptypeO 
)

Definition at line 65 of file ptype.cc.

References getOwner(), getPtype(), and isPiece().

std::ostream & osl::operator<< ( std::ostream &  os,
const Piece  piece 
)
std::ostream & osl::operator<< ( std::ostream &  os,
osl::PieceStand  stand 
)

Definition at line 81 of file pieceStand.cc.

References osl::PieceStand::get(), and osl::PieceStand::order.

std::ostream & osl::operator<< ( std::ostream &  os,
Square  square 
)

Definition at line 42 of file square.cc.

References osl::Square::isPieceStand(), osl::Square::x(), and osl::Square::y().

std::ostream & osl::operator<< ( std::ostream &  os,
Move  move 
)
bool osl::operator== ( Piece  l,
Piece  r 
)
inline

Definition at line 254 of file piece.h.

References osl::Piece::intValue().

bool osl::operator== ( const Sennichite &  l,
const Sennichite &  r 
)
inline

Definition at line 35 of file sennichite.h.

References osl::Sennichite::value.

bool osl::operator== ( Square  l,
Square  r 
)
inline

Definition at line 295 of file square.h.

References osl::Square::uintValue().

bool osl::operator== ( MoveLogProb const &  lhs,
MoveLogProb const &  rhs 
)
inline

Definition at line 49 of file moveLogProb.h.

References osl::MoveLogProb::logProb(), and osl::MoveLogProb::move().

bool osl::operator== ( EffectContent  l,
EffectContent  r 
)
inline

Definition at line 54 of file effectContent.h.

References osl::EffectContent::intValue().

bool osl::operator== ( const PathEncoding &  l,
const PathEncoding &  r 
)
inline

Definition at line 75 of file pathEncoding.h.

References osl::PathEncoding::getPath().

bool osl::operator== ( Offset  l,
Offset  r 
)
inline

Definition at line 108 of file offset.h.

References osl::Offset::intValue().

bool osl::operator== ( PieceStand  l,
PieceStand  r 
)
inline

Definition at line 255 of file pieceStand.h.

References osl::PieceStand::getFlags(), and osl::PieceStand::testCarries().

bool osl::operator== ( Move  lhs,
Move  rhs 
)
inline

Definition at line 344 of file move.h.

References osl::Move::intValue().

bool osl::operator> ( Square  l,
Square  r 
)
inline

Definition at line 307 of file square.h.

References osl::Square::uintValue().

std::istream & osl::operator>> ( std::istream &  is,
osl::Ptype ptype 
)

Definition at line 17 of file ptype.cc.

References BISHOP, GOLD, KING, KNIGHT, LANCE, PAWN, PBISHOP, PKNIGHT, PLANCE, PPAWN, PROOK, PSILVER, PTYPE_EDGE, PTYPE_EMPTY, ROOK, and SILVER.

int osl::playerToIndex ( Player  player)
inline

Definition at line 15 of file player.h.

Referenced by osl::eval::endgame::AttackDefense::addValue(), osl::search::PassCounter::dec(), osl::effect::NumSimpleEffectTable::effectedChanged(), osl::effect::NumSimpleEffectTable::effectedMask(), osl::eval::endgame::KingPieceTable::effectiveIndexOf(), osl::eval::ml::KingXBlockedBase::eval(), osl::eval::ml::KingXBlockedYBase::eval(), osl::eval::ml::KnightFork::evalOne(), osl::eval::ml::PawnDropBoth::evalWithUpdate(), osl::progress::Effect5x3WithBonus::expect(), osl::rating::PatternGroup::findMatch(), osl::search::MoveGenerator::generateAll(), osl::PtypeTable::getCanDropLimit(), osl::PtypeTable::getShortMoveMask(), osl::search::PassCounter::inc(), osl::state::SimpleState::isConsistent(), osl::hash::GeneralBoardKey< Integer, SIZE >::isPlayerOfTurn(), osl::hash::HashKey128::isPlayerOfTurn(), osl::eval::endgame::KingPieceTable::kingIndex(), osl::record::MiniBoardChar50::MiniBoardChar50(), osl::search::MoveGenerator::nextMoveWithGeneration(), osl::search::MoveGenerator::nextTacticalMoveWithGeneration(), osl::misc::CArray2dProxy< T, Capacity2 >::operator[](), osl::misc::CArray2d< T, Capacity2, Capacity3 >::operator[](), osl::misc::CArray< std::string, 10 >::operator[](), osl::rating::PatternGroup::PatternGroup(), osl::progress::ml::NewProgress::progress16(), osl::state::SimpleState::setPiece(), osl::state::SimpleState::setPieceAll(), osl::hash::GeneralBoardKey< Integer, SIZE >::setPlayer(), osl::hash::HashKey128::setPlayer(), osl::eval::ProgressEvalGeneral< OpeningEval >::update(), and osl::eval::endgame::AttackDefense::value().

int osl::playerToMask ( Player  player)
inline

Definition at line 31 of file player.h.

int osl::playerToMul ( Player  player)
inline
int osl::playerToSign ( Player  player)
inline

Definition at line 27 of file player.h.

References playerToMul().

Referenced by compare(), and count().

Direction osl::primDir ( Direction  d)
inline
Direction osl::primDirUnsafe ( Direction  d)
inline
Ptype osl::promote ( Ptype  ptype)
inline

promote可能なptypeに対して,promote後の型を返す promote不可のptypeを与えてはいけない.

Definition at line 105 of file ptype.h.

References canPromote(), and isPiece().

Referenced by osl::eval::See::computeValue(), osl::eval::TakeBackValue::computeValue(), osl::record::KisenUtils::convertMove(), osl::effect_action::SimpleBetterToPromote< Action >::doAction(), osl::effect_action::Promote< Action >::doAction(), osl::effect_action::SimpleMove< Action >::doAction(), osl::effect_action::BetterToPromote< Action >::doAction(), osl::effect_action::AlwaysMove< Action >::doAction(), osl::effect_action::SimpleBetterToPromote< Action >::doActionPtype(), osl::effect_action::SimpleMove< Action >::doActionPtype(), osl::effect_action::Promote< Action >::doActionPtype(), osl::effect_action::BetterToPromote< Action >::doActionPtype(), osl::effect_action::AlwaysMove< Action >::doActionPtype(), osl::Move::fromMove16(), osl::move_generator::piece_on_board::generateLong(), osl::move_generator::detail::generateMovePiecePtypeMask(), osl::move_generator::PieceOnBoard< Action, noCapturePromote >::generatePiecePtypeUnsafe(), osl::move_generator::PieceOnBoard< Action, noCapturePromote >::generatePieceUnsafe(), osl::move_generator::piece_on_board::generateShort(), osl::search::BigramKillerMove::getMove(), osl::record::KisenPlusFile::getMoves(), osl::record::MiniBoard::getState(), osl::checkmate::ImmediateCheckmate::hasCheckmateMoveDirPiece(), osl::move_generator::addeffect8::AddEffect8Table::initMoveOffset(), osl::PtypeTable::initPtypeSub(), osl::Piece::isPlayerBasicPtype(), osl::move_probability::LureDefender::match(), osl::search::promoteIf(), osl::search::QuiescenceSearch2< EvalT >::searchMain(), show(), osl::record::kakinoki::strToMove(), osl::record::MiniBoardChar50::toSimpleState(), and update().

PtypeO osl::promote ( PtypeO  ptypeO)
inline

pieceをpromoteさせる.

promote不可のptypeを与えてはいけない.

Definition at line 155 of file ptype.h.

References canPromote(), getPtype(), and isPiece().

PtypeO osl::promoteWithMask ( PtypeO  ptypeO,
int  promoteMask 
)
inline
unsigned int osl::ptypeOIndex ( PtypeO  ptypeo)
inline

Definition at line 137 of file ptype.h.

References PTYPEO_MIN, and result.

Referenced by osl::move_probability::PatternCommon::addOne(), osl::eval::ml::PiecePair::adjust12(), osl::eval::ProgressEvalGeneral< progress_eval_opening_t >::captureValue(), osl::search::BigramKillerMove::dump(), osl::eval::ml::BishopStandFile5::eval(), osl::eval::ml::PiecePair::evalWithUpdateCompiled(), osl::effect_util::Neighboring8Direct::Table::findNearest(), osl::effect_util::Neighboring8Direct::Table::hasEffect(), osl::effect_util::Neighboring8Effect::Table::hasEffect(), osl::effect_util::Neighboring8Direct::Table::hasEffectOrAdditional(), osl::eval::ml::PiecePair::index(), osl::eval::ml::King3Pieces::index(), osl::eval::ml::BishopHead::indexK(), osl::eval::ml::BishopHead::indexX(), osl::eval::ml::King3Pieces::indexX(), osl::eval::ml::King3Pieces::indexY(), osl::effect_util::Neighboring8Direct::Table::init(), osl::effect_util::Neighboring8Effect::Table::init(), osl::move_probability::BlockLong::makeLongAttackOne(), osl::move_probability::BreakThreatmate::match(), osl::search::BigramKillerMove::operator[](), osl::misc::CArray< std::string, 10 >::operator[](), osl::eval::ml::PiecePair::IndexTable::pindex(), osl::search::BigramKillerMove::setMove(), osl::eval::ml::BishopHeadKingRelative::setUp(), osl::progress::Effect5x3Table::setupLongEffect(), osl::progress::Effect5x3Table::setupShortEffect(), osl::eval::ml::PiecePair::sum12(), osl::move_probability::PatternCommon::updateCacheOne(), and osl::eval::ml::PiecePair::valueCompiled().

Direction osl::shortToLong ( Direction  d)
inline
void osl::showLogProb ( const stat::Histogram numerator,
const stat::Histogram denominator 
)
void osl::showLogProb ( const stat::Histogram numerator,
const stat::Histogram denom1,
const stat::Histogram denom2 
)
void osl::showLogProb ( const Histogram8 numerator,
const Histogram8 denom1,
const Histogram8 denom2 
)

Definition at line 141 of file ratingstat.cc.

References length, and width.

Ptype osl::unpromote ( Ptype  ptype)
inline

ptypeがpromote後の型の時に,promote前の型を返す. promoteしていない型の時はそのまま返す

Definition at line 87 of file ptype.h.

References isPiece().

Referenced by osl::search::StateElements::addMyMove(), osl::search::StateElements::addOpMove(), osl::move_probability::MoveInfo::adhocAdjustBishopFork(), osl::ntesuki::NtesukiTable::allocateWithMove(), osl::checkmate::OracleAdjust::attack(), osl::checkmate::ProofPieces::attack(), osl::checkmate::Dfpn::attack(), osl::checkmate::LibertyEstimator::attackH(), osl::search::QuiescenceGenerator< P >::attackMajorPieceFirstSelection(), osl::ntesuki::NtesukiRecord::calcProofPiecesOr(), osl::search::StateElements::canReject(), osl::rating::Threatmate::captureForKnightCheck(), osl::search::QuiescenceGenerator< P >::check(), osl::search::SacrificeCheck::count2(), osl::checkmate::ProofNumberTable::countLibertyLong(), osl::checkmate::DisproofPieces::defense(), osl::checkmate::FixedDepthSearcher::defense(), osl::effect_action::BetterToPromote< Action >::doActionPtype(), osl::effect_action::AlwaysMove< Action >::doActionPtype(), osl::checkmate::CheckmateIfCapture::effectiveAttackCandidate0(), osl::state::SimpleState::emulateCapture(), osl::state::NumEffectState::epilogueCapture(), osl::search::QuiescenceGenerator< P >::escapeNormalPiece(), osl::eval::ml::PieceEval::evalWithUpdate(), osl::eval::ml::PieceStand::evalWithUpdate(), osl::eval::ml::PawnDropBoth::evalWithUpdate(), osl::eval::ml::PieceStandY::evalWithUpdate(), osl::eval::ml::NonPawnPieceStandTurn::evalWithUpdateBang(), osl::eval::ml::PtypeCount::evalWithUpdateBang(), osl::search::QuiescenceSearch2< EvalT >::examineTakeBack2(), osl::eval::MinorPieceBonus::expect(), osl::rating::DropCapturedGroup::findMatchWithoutProgress(), osl::ntesuki::NtesukiTable::findWithMove(), osl::ntesuki::NtesukiTable::findWithMoveConst(), osl::move_probability::StateInfo::finishUpdate(), osl::GenerateEscapeKing::generate(), osl::checkmate::Dfpn::generateCheck(), osl::search::MoveGenerator::generateKingEscape(), osl::move_generator::without_effect::generateLongMove(), osl::search::BigramKillerMove::getMove(), osl::PtypeTable::hasLongMove(), osl::eval::ml::PtypeCount::indexBoardCount(), osl::eval::ml::PtypeCount::indexBoardCountX(), osl::eval::ml::PtypeCount::indexBoardCountY(), osl::eval::ml::PtypeCount::indexCount(), osl::eval::ml::PtypeCount::indexCountX(), osl::eval::ml::PtypeCount::indexCountY(), osl::state::SimpleState::isConsistent(), isMajor(), osl::move_classifier::BlockLongEffect< P, T >::isMember(), osl::eval::ml::KnightFork::isTarget(), osl::state::SimpleState::isValidMoveByRule(), make1(), make2(), osl::rating::PatternLongGroup::makeDirection(), osl::rating::PatternLongGroup2::makeDirection(), osl::rating::DropCaptured::match(), osl::annotate::ThreatmateIfMorePieces::match(), osl::move_probability::CapturePtype::match(), osl::move_probability::BishopAttack::match(), osl::move_probability::RookAttack::match(), osl::record::MiniBoardChar50::MiniBoardChar50(), osl::PieceStand::nextStand(), osl::PieceBasicLessThan::operator()(), osl::rating::PatternLong::PatternLong(), osl::rating::PatternLong2::PatternLong2(), osl::PieceStand::previousStand(), osl::state::NumEffectState::prologueCapture(), osl::eval::PtypeEvalTable::reset(), osl::search::QuiescenceSearch2< EvalT >::searchMain(), osl::ntesuki::NtesukiRecord::setDisproofPieces(), osl::state::SimpleState::setPiece(), osl::progress::Effect5x3Table::setupOnStand(), osl::record::usi::show(), osl::record::csa::show(), osl::record::ki2::show(), show(), osl::eval::endgame::AttackKing::Table::Table(), osl::eval::endgame::DefenseKing::Table::Table(), osl::state::SimpleState::testValidityOtherThanEffect(), unpromoteSafe(), osl::eval::MinorPieceBonus::update(), osl::eval::ProgressEvalGeneral< OpeningEval >::update(), osl::progress::ml::NewProgress::updateMain(), osl::progress::Effect5x3::updateStand(), osl::eval::ml::OpenMidEndingEval::updateSub(), osl::search::StateElements::validCaptureMove(), and osl::search::StateElements::validSimpleMove().

PtypeO osl::unpromote ( PtypeO  ptypeO)
inline

pieceをunpromoteさせる.

promoteしていないptypeを与えてもよい

Definition at line 172 of file ptype.h.

Ptype osl::unpromoteSafe ( Ptype  ptype)
inline

Definition at line 94 of file ptype.h.

References isPiece(), and unpromote().

Referenced by osl::eval::ml::AttackMajorsInBase::index().

Variable Documentation

const BoardTable osl::Board_Table

Definition at line 107 of file tables.cc.

Referenced by osl::move_probability::AddEffectLong::addOne(), osl::move_probability::BlockLong::addPiece(), osl::checkmate::OracleAdjust::attack(), osl::Square::back(), osl::move_probability::KingBlockade::blockAll(), osl::checkmate::detail::blockingDiagonalAttack(), osl::move_generator::detail::blockingU(), osl::search::QuiescenceGenerator< P >::breakThreatmate(), osl::eval::ProgressEvalGeneral< OpeningEval >::calculateGoldPenalty(), osl::eval::ProgressEvalGeneral< OpeningEval >::calculateSilverPenalty(), osl::move_generator::addeffect8::canAddLongEffect(), osl::move_classifier::PawnDropCheckmate< P >::canEscape(), osl::eval::ml::PawnAdvanceUtil::cantAdvance(), osl::rating::Threatmate::captureForKnightCheck(), osl::move_probability::StateInfo::clearOldCache(), osl::effect_util::AdditionalOrShadow::count(), osl::eval::ml::NumPiecesBetweenBishopAndKing::countBetween(), osl::checkmate::ProofNumberTable::countLibertyLong(), osl::checkmate::ProofNumberTable::countLibertyShortNotKnight(), osl::move_probability::CoverFork::defending(), osl::effect::directionOf(), osl::effect::NumSimpleEffectTable::doBlockAt(), osl::checkmate::EdgeTable::EdgeTable(), osl::effect::EffectedNumTable::EffectedNumTable(), osl::checkmate::CheckmateIfCapture::effectiveAttackCandidate0(), osl::eval::ml::King8Effect::effectState(), osl::eval::ml::King8EffectAll::effectState(), osl::search::QuiescenceGenerator< P >::escapeByMoveOnly(), osl::search::QuiescenceGenerator< P >::escapeNormalPiece(), osl::eval::ml::KnightHead::eval(), osl::eval::ml::PawnPtypeOPtypeO::eval(), osl::effect_util::AdditionalEffect::find(), osl::effect_util::UnblockableEffect::find(), osl::rating::PatternLong2::find(), osl::rating::PatternBlock::find(), osl::eval::See::findAdditionalPieces(), osl::search::BreakThreatmate::findBlockLong(), osl::move_probability::StateInfo::findCheckmateDefender(), osl::effect_util::VirtualPin::findDirection(), osl::effect_util::Pin::findDirection(), osl::eval::ml::BishopRookFork::findDropInLine(), osl::eval::TakeBackValue::findEffectPiecesAfterMove(), osl::rating::BadLanceGroup::findMatch(), osl::move_action::EscapeFilter< P, OrigAction >::findThreat(), osl::search::BreakThreatmate::generate(), osl::move_generator::AddEffect8Defense< P >::generate(), osl::move_generator::CaptureEffectToAroundKing8< P >::generate(), osl::move_generator::Escape< Action >::generateBlocking(), osl::move_generator::Escape< Action >::generateBlockingKing(), osl::move_generator::OpenKingRoad< P >::generateDir(), osl::move_generator::without_effect::generateDrop(), osl::move_generator::without_effect::generateLongMove(), osl::move_generator::addeffect8::generateLongMove(), osl::move_generator::without_effect::generateLongMoveDirectCanPromote(), osl::move_generator::without_effect::generateLongMoveDirectNoPromote(), osl::move_generator::without_effect::generateMove(), osl::move_generator::detail::generateMoveToPtypeMaskWithPieceMask(), osl::move_generator::detail::generateOpenOrCapture(), osl::move_generator::PieceOnBoard< Action, noCapturePromote >::generatePiece(), osl::move_generator::PieceOnBoard< Action, noCapturePromote >::generatePiecePtype(), osl::move_generator::detail::generateRookLongMoveNotKing(), osl::effect_util::Neighboring8Effect::Table::hasAtMaxPieceBetween(), osl::checkmate::ImmediateCheckmate::hasCheckmateMoveDir(), osl::checkmate::ImmediateCheckmate::hasCheckmateMoveDirPiece(), osl::effect_util::AdditionalEffect::hasEffect(), osl::state::NumEffectState::hasEffectByWithRemove(), osl::effect_util::Neighboring8Effect::hasEffectFromTo(), osl::effect_util::Neighboring8Direct::hasEffectFromTo(), osl::state::NumEffectState::hasEffectIf(), osl::state::NumEffectState::hasEffectInDirection(), osl::effect_util::Neighboring8Direct::Table::hasEffectOrAdditional(), osl::effect::hasShortMove(), osl::checkmate::ImmediateCheckmateTable::ImmediateCheckmateTable(), osl::effect_util::Neighboring8Direct::Table::init(), osl::effect_util::Neighboring8Effect::Table::init(), osl::PtypeTable::init(), osl::state::SimpleState::isEmptyBetween(), osl::move_generator::without_effect::isEmptyOrAdditional(), osl::move_classifier::KingOpenMove< P >::isMember(), osl::move_classifier::BlockLongEffect< P, T >::isMember(), osl::move_classifier::KingOpenMove< P >::isMemberMain(), osl::Neighboring8::isNeighboring8(), osl::move_action::ToAroundKing24Filter< P, OrigAction >::isToAroundKing24Move(), osl::move_action::ToAroundKing8Filter< P, OrigAction >::isToAroundKing8Move(), osl::checkmate::ProofNumberTable::libertyAfterAllMove(), osl::effect::Liberty8Table::longEffectOf(), osl::checkmate::King8Info::make(), osl::move_probability::BlockLong::makeLongAttackOne(), osl::rating::BadLance::match(), osl::move_probability::LanceAttack::match(), osl::move_probability::LureDefender::match(), osl::move_probability::OpposingPawn::match(), osl::move_probability::DropAfterOpposingPawn::match(), osl::move_probability::CoverPawn::match(), osl::move_probability::KingBlockade::match(), osl::move_probability::PromotionBySacrifice::match(), osl::eval::ml::SilverFork::matchGold(), osl::eval::ml::SilverFork::matchRook(), osl::Square::neighbor(), osl::rating::PatternLong::nextPieceOrEnd(), osl::rating::Pattern::nextSquare(), osl::Offset::Offset(), osl::effect::AddMaskAction< Liberty, P, T >::operator()(), osl::eval::ml::King8EffectBase::MakeEffectStateSimple::operator()(), osl::eval::ml::King8EffectBase::MakeEffectStateDefense::operator()(), osl::state::NumEffectState::pinnedCanMoveTo(), osl::state::NumEffectState::pinnedDir(), osl::state::NumEffectState::recalcPinOpen(), osl::effect::shortMaskOf(), osl::checkmate::detail::slowCheckDrop(), osl::checkmate::ImmediateCheckmate::slowHasCheckmateMoveDirPiece(), osl::move_action::EscapeFilter< P, OrigAction >::suitable(), osl::move_probability::StateInfo::updatePinnedGenerals(), and osl::state::NumEffectState::wasCheckEvasion().

const int osl::EDGE_NUM =0x40

Definition at line 14 of file piece.h.

Referenced by osl::Piece::EDGE().

const int osl::EMPTY_NUM =0x80
const int osl::EndgameIndex = EvalStages-1
const int osl::EvalStages = 4

Definition at line 14 of file midgame.h.

Referenced by osl::eval::ml::King25EffectEachXY::setUp().

const int osl::NStages = 4

Definition at line 13 of file midgame.h.

Referenced by osl::eval::ml::PinPtype::setUp(), osl::eval::ml::KingPieceRelativeNoSupport::setUp(), osl::eval::ml::NonPawnPieceStandCombination::setUp(), osl::eval::ml::RookMobilitySum::setUp(), osl::eval::ml::PinPtypeDistance::setUp(), osl::eval::ml::RookMobilityX::setUp(), osl::eval::ml::RookPawnY::setUp(), osl::eval::ml::PinPtypePawnAttack::setUp(), osl::eval::ml::RookMobilityY::setUp(), osl::eval::ml::RookMobilitySumKingX::setUp(), osl::eval::ml::CheckShadowPtype::setUp(), osl::eval::ml::PtypeYY::setUp(), osl::eval::ml::NonPawnPieceStandTurn::setUp(), osl::eval::ml::RookMobilityXKingX::setUp(), osl::eval::ml::RookPawnYX::setUp(), osl::eval::ml::BishopMobilityEach::setUp(), osl::eval::ml::PieceStandY::setUp(), osl::eval::ml::CanCheckNonPawnPieceStandCombination::setUp(), osl::eval::ml::PieceStandCombinationBoth::setUp(), osl::eval::ml::KingXBothBlocked::setUp(), osl::eval::ml::RookEffectPiece::setUp(), osl::eval::ml::RookEffectPieceKingRelative::setUp(), osl::eval::ml::KingXBothBlockedY::setUp(), osl::eval::ml::RookPromoteDefense::setUp(), osl::eval::ml::KingXBlocked3::setUp(), osl::eval::ml::RookPromoteDefenseRookH::setUp(), osl::eval::ml::King25Effect2::setUp(), osl::eval::ml::KingXBlocked3Y::setUp(), osl::eval::ml::King25EffectY2::setUp(), osl::eval::ml::King25EffectSupported::setUp(), osl::eval::ml::King25EffectSupportedY::setUp(), osl::eval::ml::BishopEffectPiece::setUp(), osl::eval::ml::BishopEffectPieceKingRelative::setUp(), osl::eval::ml::BishopHead::setUp(), osl::eval::ml::PawnDropX::setUp(), osl::eval::ml::PawnDropPawnStand::setUp(), osl::eval::ml::PawnDropPawnStandX::setUp(), osl::eval::ml::PawnDropPawnStandY::setUp(), osl::eval::ml::BishopHeadKingRelative::setUp(), osl::eval::ml::PawnDropNonDrop::setUp(), osl::eval::ml::BishopHeadX::setUp(), osl::eval::ml::PawnStateKingRelative::setUp(), osl::eval::ml::KingRookBishop::setUp(), osl::eval::ml::NumPiecesBetweenBishopAndKingSelf::setUp(), osl::eval::ml::NumPiecesBetweenBishopAndKingOpp::setUp(), osl::eval::ml::NumPiecesBetweenBishopAndKingAll::setUp(), osl::eval::ml::BishopBishopPiece::setUp(), osl::eval::ml::RookRook::setUp(), osl::eval::ml::SilverHeadPawnKingRelative::setUp(), osl::eval::ml::RookRookPiece::setUp(), osl::eval::ml::King25EffectEachXY::setUp(), osl::eval::ml::King25EffectEachKXY::setUp(), osl::eval::ml::BishopStandFile5::setUp(), osl::eval::ml::King3Pieces::setUp(), osl::eval::ml::MajorCheckWithCapture::setUp(), osl::eval::ml::RookSilverKnight::setUp(), osl::eval::ml::BishopSilverKnight::setUp(), osl::eval::ml::GoldKnightKingRelative::setUp(), osl::eval::ml::GoldSideMove::setUp(), osl::eval::ml::AttackMajorsInBase::setUp(), osl::eval::ml::King3PiecesXY::setUp(), osl::eval::ml::KingMobility::setUp(), osl::eval::ml::KingMobilityWithRook::setUp(), osl::eval::ml::KingMobilityWithBishop::setUp(), osl::eval::ml::KingMobilitySum::setUp(), osl::eval::ml::King25BothSide::setUp(), osl::eval::ml::KnightCheckY::setUp(), osl::eval::ml::KnightHead::setUp(), osl::eval::ml::King25BothSideX::setUp(), osl::eval::ml::KnightHeadOppPiecePawnOnStand::setUp(), osl::eval::ml::King25BothSideY::setUp(), osl::eval::ml::King25Mobility::setUp(), osl::eval::ml::PawnPtypeOPtypeO::setUp(), osl::eval::ml::PromotedMinorPieces::setUp(), osl::eval::ml::King25MobilityX::setUp(), osl::eval::ml::King25MobilityY::setUp(), osl::eval::ml::King25Effect3::setUp(), osl::eval::ml::NonPawnAttacked::setUp(), osl::eval::ml::King25Effect3Y::setUp(), osl::eval::ml::King25EffectCountCombination::setUp(), osl::eval::ml::King25EffectCountCombinationY::setUp(), osl::eval::ml::NonPawnAttackedKingRelative::setUp(), osl::eval::ml::PromotedMinorPiecesY::setUp(), osl::eval::ml::PawnPtypeOPtypeOY::setUp(), osl::eval::ml::NonPawnAttackedPtype::setUp(), osl::eval::ml::NonPawnAttackedPtypePair::setUp(), osl::eval::ml::PtypeCount::setUp(), osl::eval::ml::PtypeCountXY::setUp(), osl::eval::ml::PtypeCountXYAttack::setUp(), osl::eval::ml::LanceEffectPieceKingRelative::setUp(), osl::eval::ml::PtypeYPawnY::setUp(), osl::eval::ml::GoldAndSilverNearKing::setUp(), osl::eval::ml::GoldAndSilverNearKingCombination::setUp(), osl::eval::ml::PtypeCombination::setUp(), osl::eval::ml::SilverFork::setUp(), osl::eval::ml::BishopRookFork::setUp(), osl::eval::ml::KnightFork::setUp(), osl::eval::ml::SilverAdvance26::setUp(), and osl::eval::ml::Promotion37::setUp().

const PathEncodingTable osl::Path_Encoding_Table

Definition at line 129 of file tables.cc.

Referenced by osl::PathEncoding::popMove(), and osl::PathEncoding::pushMove().

const PieceTable osl::Piece_Table
const int osl::PTYPE_SIZE =PTYPE_MAX-PTYPE_MIN+1

Definition at line 37 of file ptype.h.

Referenced by osl::move_probability::King5x5Ptype::addOne(), osl::eval::ppair::PiecePairPieceEval::adjustableDimension(), osl::eval::ml::BishopRookFork::bishopIndex(), compare(), osl::eval::ml::OpenMidEndingEval::doResetWeights(), osl::eval::endgame::KingPieceTable::effectiveIndexOf(), osl::eval::ml::PinPtypeAll::evalOne(), osl::eval::ml::CheckShadowPtype::evalOne(), osl::eval::ml::MajorGoldSilverAttacked< Opening >::index(), osl::eval::ml::BishopBishopPiece::index(), osl::eval::ml::RookRookPiece::index(), osl::eval::ml::NonPawnAttacked::index(), osl::eval::ml::NonPawnAttackedPtype::index(), osl::eval::ml::KnightFork::index(), osl::eval::ml::NonPawnAttackedPtypePair::index1(), osl::eval::ml::NonPawnAttackedPtypePair::index2(), osl::eval::ml::NonPawnAttacked::indexK(), osl::move_probability::CheckFeature::match(), osl::move_probability::CapturePtype::match(), osl::move_probability::SquareY::match(), osl::move_probability::SquareX::match(), osl::move_probability::KingRelativeY::match(), osl::move_probability::KingRelativeX::match(), osl::move_probability::FromEffect::match(), osl::move_probability::ToEffect::match(), osl::move_probability::MoveFromOpposingSliders::match(), osl::move_probability::AttackFromOpposingSliders::match(), osl::move_probability::AttackToOpposingSliders::match(), osl::move_probability::BreakThreatmate::match(), osl::move_probability::LureDefender::match(), osl::move_probability::CheckmateIfCapture::match(), osl::move_probability::AttackKing8Long::match(), osl::move_probability::CoverPawn::match(), osl::move_probability::SacrificeAttack::match(), osl::move_probability::CoverFork::match(), osl::move_probability::ThreatmateByCapture::match(), osl::move_probability::PromotionBySacrifice::match(), osl::move_probability::EscapeThreatened::match(), osl::move_probability::PawnAttack::matchPtype(), median(), osl::search::operator<<(), osl::eval::endgame::KingPieceTable::otherIndex(), osl::PathEncodingTable::PathEncodingTable(), osl::eval::endgame::KingPieceTable::randomize(), osl::eval::ppair::PiecePairPieceEval::resetWeights(), osl::eval::endgame::KingPieceTable::resetWeights(), osl::eval::ProgressEvalGeneral< OpeningEval >::resetWeights(), osl::eval::endgame::KingPieceTable::saveText(), osl::progress::ml::NewProgress::setUp(), osl::eval::ml::NonPawnAttackedKingRelative::setUp(), osl::eval::ml::NonPawnAttackedPtypePair::setUp(), osl::eval::ml::BishopRookFork::setUp(), osl::eval::ml::KnightFork::setUp(), osl::move_probability::PawnAttack::squareStatus(), and osl::move_probability::ToEffect::supportAttack().

const PtypeTable osl::Ptype_Table

Definition at line 109 of file tables.cc.

Referenced by osl::checkmate::OracleAdjust::attack(), osl::checkmate::Dfpn::attack(), osl::search::QuiescenceGenerator< P >::attackKing8(), osl::search::QuiescenceGenerator< P >::breakThreatmate(), osl::PieceStand::canAdd(), osl::move_generator::addeffect8::canAddLongEffect(), osl::search::ShouldPromoteCut::canIgnore(), osl::state::SimpleState::countPiecesOnStandBit(), osl::checkmate::FixedDepthSearcher2::defenseEstimation(), osl::checkmate::FixedDepthSearcher::defenseEstimation(), osl::effect_action::SimpleMove< Action >::doAction(), osl::effect_action::BetterToPromote< Action >::doAction(), osl::effect_action::AlwaysMove< Action >::doAction(), osl::effect::EffectedNumTable::EffectedNumTable(), osl::eval::ml::PieceStand::eval(), osl::eval::ml::PieceStand::evalWithUpdate(), osl::search::QuiescenceSearch2< EvalT >::examineMoves(), osl::search::QuiescenceSearch2< EvalT >::examineTakeBack2(), osl::effect_util::AdditionalEffect::find(), osl::effect_util::UnblockableEffect::find(), osl::eval::See::findAdditionalPieces(), osl::move_generator::addeffect8::findBlocker(), osl::effect_util::VirtualPin::findDirection(), osl::effect_util::Pin::findDirection(), osl::eval::TakeBackValue::findEffectPiecesAfterMove(), osl::rating::EscapePinGroup::findMatch(), osl::effect_util::Neighboring8Direct::Table::findNearest(), osl::effect_util::Pin::findPtype(), osl::state::NumEffectState::findThreatenedPiece(), osl::effect_util::EffectUtil::forEachEffectOfPtypeO(), osl::search::BreakThreatmate::generate(), osl::search::BreakThreatmate::generateBreakDrop(), osl::search::AlphaBeta3::generateCapture(), osl::search::AlphaBeta3::generateCaptureAll(), osl::checkmate::Dfpn::generateCheck(), osl::move_generator::addeffect8::generateLongDropWithOffset(), osl::move_generator::without_effect::generateLongMove(), osl::move_generator::PieceOnBoard< Action, noCapturePromote >::generatePieceUnsafe(), osl::effect::Liberty8Table::getLongEffect(), osl::search::BigramKillerMove::getMove(), osl::effect_util::Neighboring8Direct::Table::hasEffect(), osl::move_generator::addeffect8::hasEffect(), osl::effect_util::Neighboring8Effect::Table::hasEffect(), osl::state::NumEffectState::hasEffectIf(), osl::effect_util::Neighboring25Direct::hasEffectNaive(), osl::effect_util::Neighboring8Effect::hasEffectNaive(), osl::effect_util::Neighboring8Direct::hasEffectNaive(), osl::effect_util::Neighboring8Direct::Table::hasEffectOrAdditional(), osl::effect::hasLongMove(), osl::move_generator::addeffect8::hasShortEffect(), osl::effect::hasShortMove(), osl::move_generator::addeffect8::hasUnblockableEffect(), osl::checkmate::ImmediateCheckmateTable::ImmediateCheckmateTable(), osl::eval::ml::NonPawnPieceStandTurn::index(), osl::eval::ml::PieceStandY::index(), osl::rating::ImmediateAddSupport::index(), osl::eval::ml::PtypeCount::indexBoardCount(), osl::eval::ml::PtypeCount::indexBoardCountX(), osl::eval::ml::PtypeCount::indexBoardCountY(), osl::eval::ml::PtypeCount::indexCount(), osl::eval::ml::PtypeCount::indexCountX(), osl::eval::ml::PtypeCount::indexCountY(), osl::effect_util::Neighboring8Direct::Table::init(), osl::effect_util::Neighboring8Effect::Table::init(), osl::move_generator::addeffect8::AddEffect8Table::initDropSquare(), osl::move_generator::addeffect8::AddEffect8Table::initLongDropSquare(), osl::state::SimpleState::isAlmostValidMove(), osl::move_probability::BreakThreatmate::isDefendingThreatmate(), osl::effect_util::UnblockableCheck::isMember(), osl::move_classifier::KingOpenMove< P >::isMemberMain(), osl::state::SimpleState::isValidMoveByRule(), osl::effect::Liberty8Table::Liberty8Table(), osl::effect::Liberty8Table::longEffectOf(), osl::rating::EscapePin::match(), osl::annotate::ThreatmateIfMorePieces::match(), osl::move_probability::AddEffectLong::match(), osl::record::MiniBoardChar50::MiniBoardChar50(), osl::rating::AttackKing8::name(), osl::rating::Pattern::name(), osl::rating::DropPtype::name(), osl::rating::RelativeKingX::name(), osl::rating::DefenseKing8::name(), osl::rating::PinAttack::name(), osl::rating::RelativeKingY::name(), osl::rating::LongTarget::name(), osl::rating::LongTarget2::name(), osl::rating::PatternLong::name(), osl::rating::PatternLong2::name(), osl::rating::Chase::name(), osl::progress::ml::NewProgress::NewProgress(), osl::effect::AddMaskAction< Liberty, P, T >::operator()(), operator<<(), osl::state::NumEffectState::prologueDrop(), osl::checkmate::ProofNumberTable::ProofNumberTable(), osl::search::AlphaBeta3::quiesce(), osl::search::AlphaBeta3::quiesceRoot(), osl::effect::setBetweenMask(), osl::eval::ml::PieceStandY::setUp(), osl::eval::ml::PtypeCountXY::setUp(), osl::eval::ml::PtypeCountXYAttack::setUp(), osl::record::csa::show(), osl::record::ki2::show(), show(), osl::record::csa::strToPtype(), osl::effect_util::SendOffSquare::Table::Table(), osl::progress::ml::NewProgress::updateMain(), osl::move_probability::StateInfo::updatePinnedGenerals(), osl::search::StateElements::validCaptureMove(), and osl::search::StateElements::validSimpleMove().

const PtypeO osl::PTYPEO_EDGE =newPtypeO(WHITE,PTYPE_EDGE)
const PtypeO osl::PTYPEO_EMPTY =newPtypeO(BLACK,PTYPE_EMPTY)
const int osl::PTYPEO_SIZE =PTYPEO_MAX-PTYPEO_MIN+1