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

関数 | |
| 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 |
ˡ̤μ5x5 üǤ4x4 ˤŨζ+100Ƥߤ ˹϶̤겼Ǥϲʤ˾Ф ˤȾʬ? ĺȾʬ?
http://www32.ocn.ne.jp/~yss/book.html#SEC3 ˡζ϶̤ºݤΰ֤⤦ʾˤȤƷƤʷ˹ǤṲ̃飳ʾ夬Ȥʤ
pairedit.cc で定義されています。
| void addPenalty | ( | Player | player, | |
| PiecePairRawTable & | table, | |||
| Position | pos1, | |||
| Ptype | ptype1, | |||
| Position | pos2, | |||
| Ptype | ptype2, | |||
| int | bonus | |||
| ) |
pairedit.cc の 107 行で定義されています。
参照先 addValue(), と osl::eval::betterThan().
参照元 addPenaltyDual(), と main().
| void adjust | ( | PiecePairRawTable & | table, | |
| Position | pos1, | |||
| PtypeO | ptypeo1, | |||
| Position | pos2, | |||
| PtypeO | ptypeo2, | |||
| int | value | |||
| ) |
pairedit.cc の 36 行で定義されています。
参照先 osl::Position::isOnBoard(), osl::eval::max(), osl::eval::min(), と verbose.
参照元 addValue(), adjustDual(), adjustKingBonus(), DevMemSysAllocator::Alloc(), MmapSysAllocator::Alloc(), main(), TryDevMem(), と TryMmap().
| void adjustDual | ( | PiecePairRawTable & | table, | |
| Position | black, | |||
| Ptype | black_ptype, | |||
| Position | white, | |||
| Ptype | white_ptype, | |||
| int | value | |||
| ) |
pairedit.cc の 86 行で定義されています。
参照先 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.cc の 74 行で定義されています。
参照先 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.cc の 60 行で定義されています。
参照先 adjust(), osl::BLACK, osl::getOwner(), osl::getPtype(), と osl::KING.
参照元 adjustDual(), と main().
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
pairedit.cc の 143 行で定義されています。
参照先 addBonus(), addPenalty(), addSelfPenaltyDual(), adjust(), adjustDual(), adjustKingBonus(), osl::BISHOP, osl::BLACK, center, osl::GOLD, osl::Position::index(), osl::isPiece(), osl::KING, osl::KNIGHT, osl::LANCE, osl::eval::min(), osl::newPtypeO(), osl::PAWN, osl::PBISHOP, osl::PKNIGHT, osl::PLANCE, osl::PPAWN, osl::PROOK, osl::PSILVER, osl::ROOK, osl::Position::rotate180(), osl::SILVER, usage(), verbose, と osl::WHITE.
| void usage | ( | const char * | prog | ) |
pairedit.cc の 26 行で定義されています。
| bool verbose = false |
pairedit.cc の 34 行で定義されています。
1.5.6