3 #ifndef _PATTERNGROUP_H 4 #define _PATTERNGROUP_H 19 void show(std::ostream& os,
int name_width,
const range_t& range,
20 const std::vector<double>& weights)
const 22 showTopN(os, name_width, range, weights, 3);
35 static std::string
name(
int direction_id);
42 return (
unpromote(ptype) ==
BISHOP) ? bishop_direction4[direction_id] : rook_direction4[direction_id];
44 void show(std::ostream& os,
int name_width,
const range_t& range,
45 const std::vector<double>& weights)
const 47 showTopN(os, name_width, range, weights, 3);
56 static std::string
name(
int direction_id);
67 void show(std::ostream& os,
int name_width,
const range_t& range,
68 const std::vector<double>& weights)
const 70 showTopN(os, name_width, range, weights, 3);
81 void show(std::ostream& os,
int name_width,
const range_t& range,
82 const std::vector<double>& weights)
const 84 showTopN(os, name_width, range, weights, 3);
Ptype unpromote(Ptype ptype)
ptypeがpromote後の型の時に,promote前の型を返す. promoteしていない型の時はそのまま返す ...
static const CArray< Direction, 4 > bishop_direction4
CArray2d< unsigned char, 2, Square::SIZE > target_table
mutually exclusive set of features
std::pair< int, int > range_t
void show(std::ostream &os, int name_width, const range_t &range, const std::vector< double > &weights) const
void show(std::ostream &os, int name_width, const range_t &range, const std::vector< double > &weights) const
static const Direction INVALID
PatternGroup(Direction d, Direction d2=Pattern::INVALID)
Direction makeDirection(Ptype ptype) const
void showTopN(std::ostream &os, int name_width, const range_t &range, const std::vector< double > &weights, int n) const
Direction makeDirection(Ptype ptype) const
void show(std::ostream &os, int name_width, const range_t &range, const std::vector< double > &weights) const
void show(std::ostream &os, int name_width, const range_t &range, const std::vector< double > &weights) const
int findMatch(const NumEffectState &state, Move m, const RatingEnv &) const
bool effectiveInCheck() const
static std::string name(Direction direction, Direction direction2)
bool effectiveInCheck() const
static const CArray< Direction, 4 > rook_direction4
bool effectiveInCheck() const