|
My Project
|
#include <feature.h>
Public Types | |
| enum | { PromotionSize = TestPromotable ? 3 : 1 , DIM = PromotionSize * OneDim } |
| Public Types inherited from osl::move_probability::PatternCommon | |
| enum | { SupportSize = PTYPE_SIZE , AttackSize = PTYPE_SIZE , AttackBase = SupportSize , EffectSize = 9 , EffectBase = AttackBase+AttackSize , OpKingSize = 4 , OpKingBase = EffectBase+EffectSize , MyKingSize = 3 , MyKingBase = OpKingBase+OpKingSize , PromotionSize = 2 , PromotionBase = MyKingBase+MyKingSize , PinOpenSize = 4 , PinOpenBase = PromotionBase + PromotionSize , LastToSize = 4 , LastToBase = PinOpenBase + PinOpenSize , LastEffectChangedSize = 6 , LastEffectChangedBase = LastToBase + LastToSize , SquareDim = LastEffectChangedBase + LastEffectChangedSize , PatternCacheSize = PTYPEO_SIZE*SquareDim , OneDim = PTYPE_SIZE*PatternCacheSize } |
Public Member Functions | |
| PatternBase (int x, int y) | |
| double | match (const StateInfo &state, const MoveInfo &info, int offset, const double *w) const |
| Public Member Functions inherited from osl::move_probability::PatternCommon | |
| PatternCommon (const std::string &name, int dim) | |
| double | addOne (const StateInfo &state, int offset, const double *w, Square position) const |
| Public Member Functions inherited from osl::move_probability::Feature | |
| Feature (std::string n, size_t d) | |
| virtual | ~Feature () |
| std::string | name () const |
| size_t | dimension () const |
Static Public Member Functions | |
| static std::string | name (int x, int y) |
| Static Public Member Functions inherited from osl::move_probability::PatternCommon | |
| static void | updateCache (StateInfo &info) |
| Static Public Member Functions inherited from osl::move_probability::Feature | |
| static int | classifyEffect9 (const NumEffectState &state, Player player, Square to) |
Private Attributes | |
| int | dx |
| int | black_dy |
Definition at line 510 of file move_probability/feature.h.
| anonymous enum |
| Enumerator | |
|---|---|
| PromotionSize | |
| DIM | |
Definition at line 514 of file move_probability/feature.h.
|
inline |
Definition at line 518 of file move_probability/feature.h.
|
inlinevirtual |
Implements osl::move_probability::Feature.
Definition at line 522 of file move_probability/feature.h.
|
inlinestatic |
Definition at line 550 of file move_probability/feature.h.
|
private |
Definition at line 512 of file move_probability/feature.h.
|
private |
Definition at line 512 of file move_probability/feature.h.