| 1 |
/* nullEstimator.h |
| 2 |
*/ |
| 3 |
#ifndef _NULLESTIMATOR_H |
| 4 |
#define _NULLESTIMATOR_H |
| 5 |
|
| 6 |
#include "osl/checkmate/king8Info.h" |
| 7 |
#include "osl/move.h" |
| 8 |
namespace osl |
| 9 |
{ |
| 10 |
namespace checkmate |
| 11 |
{ |
| 12 |
/** plain df-pn のためのHの予想 */ |
| 13 |
struct NullEstimator |
| 14 |
{ |
| 15 |
/** 攻撃側の move に対する proof_number と disproof_number を予想する */ |
| 16 |
template <class State> |
| 17 |
static void attackH(Player, const State&, King8Info, Move, |
| 18 |
unsigned int& proof_number, unsigned int& disproof_number) |
| 19 |
{ |
| 20 |
proof_number = 1; |
| 21 |
disproof_number = 1; |
| 22 |
} |
| 23 |
|
| 24 |
/** 防御側の move に対する proof_number と disproof_number を予想する */ |
| 25 |
template <class State> |
| 26 |
static void defenseH(Player attacker, const State&, Move move, |
| 27 |
unsigned int& proof_number, unsigned int& disproof_number) |
| 28 |
{ |
| 29 |
proof_number = 1; |
| 30 |
disproof_number = 1; |
| 31 |
} |
| 32 |
}; |
| 33 |
} // namespace checkmate |
| 34 |
} // namespace osl |
| 35 |
|
| 36 |
#endif /* _NULLESTIMATOR_H */ |
| 37 |
// ;;; Local Variables: |
| 38 |
// ;;; mode:c++ |
| 39 |
// ;;; c-basic-offset:2 |
| 40 |
// ;;; End: |