king8Group.h
Go to the documentation of this file.
/* king8Group.h
*/
#ifndef _KING8GROUP_H
#define _KING8GROUP_H
#include "osl/rating/group.h"
#include "osl/rating/feature/king8.h"
namespace osl
{
namespace rating
{
struct AttackKing8Group : public Group
{
AttackKing8Group();
void show(std::ostream& os, int name_width, const range_t& range,
const std::vector<double>& weights) const
{
showTopN(os, name_width, range, weights, 3);
}
int findMatch(const NumEffectState& state, Move m, const RatingEnv&) const;
bool effectiveInCheck() const { return true; }
};
struct DefenseKing8Group : public Group
{
DefenseKing8Group();
void show(std::ostream& os, int name_width, const range_t& range,
const std::vector<double>& weights) const
{
showTopN(os, name_width, range, weights, 3);
}
int findMatch(const NumEffectState& state, Move m, const RatingEnv&) const;
};
}
}
#endif /* _KING8GROUP_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
osl::Move
圧縮していない moveの表現 .
Definition basic_type.h:1052
osl::NumEffectState
利きを持つ局面
Definition numEffectState.h:34
osl::rating::Group::showTopN
void showTopN(std::ostream &os, int name_width, const range_t &range, const std::vector< double > &weights, int n) const
Definition group.cc:100
osl::rating::Group::Group
Group(const std::string &name)
Definition group.cc:15
osl::rating::RatingEnv
Definition ratingEnv.h:16
group.h
osl::rating
Definition construct.h:18
osl::rating::range_t
std::pair< int, int > range_t
Definition range.h:10
osl
Definition additionalEffect.h:6
king8.h
osl::rating::AttackKing8Group::AttackKing8Group
AttackKing8Group()
Definition king8Group.cc:6
osl::rating::AttackKing8Group::show
void show(std::ostream &os, int name_width, const range_t &range, const std::vector< double > &weights) const
Definition king8Group.h:16
osl::rating::AttackKing8Group::findMatch
int findMatch(const NumEffectState &state, Move m, const RatingEnv &) const
Definition king8Group.cc:25
osl::rating::AttackKing8Group::effectiveInCheck
bool effectiveInCheck() const
Definition king8Group.h:22
osl::rating::DefenseKing8Group::findMatch
int findMatch(const NumEffectState &state, Move m, const RatingEnv &) const
Definition king8Group.cc:67
osl::rating::DefenseKing8Group::DefenseKing8Group
DefenseKing8Group()
Definition king8Group.cc:54
osl::rating::DefenseKing8Group::show
void show(std::ostream &os, int name_width, const range_t &range, const std::vector< double > &weights) const
Definition king8Group.h:28