pairedit.cc

PiecePairEvalTable ˿ͰŪ˼ä [詳細]

#include "osl/eval/ppair/piecePairRawEval.h"
#include <boost/scoped_ptr.hpp>
#include <iostream>
#include <cstdlib>
#include <unistd.h>

pairedit.ccのインクルード依存関係図

ソースコードを見る。

関数

void usage (const char *prog)
void adjust (PiecePairRawTable &table, Position pos1, PtypeO ptypeo1, Position pos2, PtypeO ptypeo2, int value)
void adjustKingBonus (PiecePairRawTable &table, Position pos1, PtypeO ptypeo1, Position pos2, PtypeO ptypeo2, int bonus)
void adjustDual (PiecePairRawTable &table, Position king, Position attacker, Ptype attackerType, int blackAttackBonus, int whiteAttackBonus)
 king: white, attacker: black
void adjustDual (PiecePairRawTable &table, Position black, Ptype black_ptype, Position white, Ptype white_ptype, int value)
void addValue (Player player, PiecePairRawTable &table, Position pos1, Ptype ptype1, Position pos2, Ptype ptype2, int bonus)
void addPenalty (Player player, PiecePairRawTable &table, Position pos1, Ptype ptype1, Position pos2, Ptype ptype2, int bonus)
void addBonus (Player player, PiecePairRawTable &table, Position pos1, Ptype ptype1, Position pos2, Ptype ptype2, int bonus)
void addPenaltyDual (PiecePairRawTable &table, Position pos1, Ptype ptype1, Position pos2, Ptype ptype2, int black_bonus)
void addSelfPenaltyDual (PiecePairRawTable &table, Position pos, Ptype ptype, int black_bonus)
int main (int argc, char **argv)

変数

bool verbose = false


説明

PiecePairEvalTable ˿ͰŪ˼ä

ˡ̤μ5x5 üǤ4x4 ˤŨζ+100Ƥߤ ˹϶̤겼Ǥϲʤ˾Ф ˤȾʬ? ĺȾʬ?

http://www32.ocn.ne.jp/~yss/book.html#SEC3 ˡζ϶̤ºݤΰ֤⤦ʾˤȤƷ׻Ƥʷ˹ǤṲ̃飳ʾ夬Ȥʤ

pairedit.cc で定義されています。


関数

void addBonus ( Player  player,
PiecePairRawTable &  table,
Position  pos1,
Ptype  ptype1,
Position  pos2,
Ptype  ptype2,
int  bonus 
)

pairedit.cc116 行で定義されています。

参照先 addValue(), と osl::eval::betterThan().

参照元 main().

void addPenalty ( Player  player,
PiecePairRawTable &  table,
Position  pos1,
Ptype  ptype1,
Position  pos2,
Ptype  ptype2,
int  bonus 
)

pairedit.cc107 行で定義されています。

参照先 addValue(), と osl::eval::betterThan().

参照元 addPenaltyDual(), と main().

void addPenaltyDual ( PiecePairRawTable &  table,
Position  pos1,
Ptype  ptype1,
Position  pos2,
Ptype  ptype2,
int  black_bonus 
)

pairedit.cc125 行で定義されています。

参照先 addPenalty(), osl::BLACK, と osl::WHITE.

参照元 addSelfPenaltyDual().

void addSelfPenaltyDual ( PiecePairRawTable &  table,
Position  pos,
Ptype  ptype,
int  black_bonus 
)

pairedit.cc135 行で定義されています。

参照先 addPenaltyDual().

参照元 main().

void addValue ( Player  player,
PiecePairRawTable &  table,
Position  pos1,
Ptype  ptype1,
Position  pos2,
Ptype  ptype2,
int  bonus 
)

pairedit.cc97 行で定義されています。

参照先 adjust(), と osl::newPtypeO().

参照元 addBonus(), と addPenalty().

void adjust ( PiecePairRawTable &  table,
Position  pos1,
PtypeO  ptypeo1,
Position  pos2,
PtypeO  ptypeo2,
int  value 
)

void adjustDual ( PiecePairRawTable &  table,
Position  black,
Ptype  black_ptype,
Position  white,
Ptype  white_ptype,
int  value 
)

pairedit.cc86 行で定義されています。

参照先 adjust(), osl::BLACK, osl::newPtypeO(), osl::Position::rotate180(), と osl::WHITE.

void adjustDual ( PiecePairRawTable &  table,
Position  king,
Position  attacker,
Ptype  attackerType,
int  blackAttackBonus,
int  whiteAttackBonus 
)

king: white, attacker: black

pairedit.cc74 行で定義されています。

参照先 adjustKingBonus(), osl::BLACK, osl::KING, osl::newPtypeO(), osl::Position::rotate180(), と osl::WHITE.

参照元 main().

void adjustKingBonus ( PiecePairRawTable &  table,
Position  pos1,
PtypeO  ptypeo1,
Position  pos2,
PtypeO  ptypeo2,
int  bonus 
)

pairedit.cc60 行で定義されています。

参照先 adjust(), osl::BLACK, osl::getOwner(), osl::getPtype(), と osl::KING.

参照元 adjustDual(), と main().

int main ( int  argc,
char **  argv 
)

void usage ( const char *  prog  ) 

pairedit.cc26 行で定義されています。


変数

bool verbose = false

pairedit.cc34 行で定義されています。


Thu Oct 8 05:01:12 2009に生成されました。  doxygen 1.5.6