My Project
king8Group.h
Go to the documentation of this file.
1/* king8Group.h
2 */
3#ifndef _KING8GROUP_H
4#define _KING8GROUP_H
5
6#include "osl/rating/group.h"
8
9namespace osl
10{
11 namespace rating
12 {
13 struct AttackKing8Group : public Group
14 {
16 void show(std::ostream& os, int name_width, const range_t& range,
17 const std::vector<double>& weights) const
18 {
19 showTopN(os, name_width, range, weights, 3);
20 }
21 int findMatch(const NumEffectState& state, Move m, const RatingEnv&) const;
22 bool effectiveInCheck() const { return true; }
23 };
24
25 struct DefenseKing8Group : public Group
26 {
28 void show(std::ostream& os, int name_width, const range_t& range,
29 const std::vector<double>& weights) const
30 {
31 showTopN(os, name_width, range, weights, 3);
32 }
33 int findMatch(const NumEffectState& state, Move m, const RatingEnv&) const;
34 };
35 }
36}
37
38#endif /* _KING8GROUP_H */
39// ;;; Local Variables:
40// ;;; mode:c++
41// ;;; c-basic-offset:2
42// ;;; End:
圧縮していない moveの表現 .
利きを持つ局面
mutually exclusive set of features
Definition group.h:17
void showTopN(std::ostream &os, int name_width, const range_t &range, const std::vector< double > &weights, int n) const
Definition group.cc:100
std::pair< int, int > range_t
Definition range.h:10
void show(std::ostream &os, int name_width, const range_t &range, const std::vector< double > &weights) const
Definition king8Group.h:16
int findMatch(const NumEffectState &state, Move m, const RatingEnv &) const
Definition king8Group.cc:25
int findMatch(const NumEffectState &state, Move m, const RatingEnv &) const
Definition king8Group.cc:67
void show(std::ostream &os, int name_width, const range_t &range, const std::vector< double > &weights) const
Definition king8Group.h:28