ptypeEvalTraits.h
Go to the documentation of this file.
/* ptypeEvalTraits.h
*/
#ifndef EVAL_PTYPEEVALTRAITS_H
#define EVAL_PTYPEEVALTRAITS_H
#include "osl/basic_type.h"
namespace osl
{
namespace eval
{
template<Ptype T>
struct PtypeEvalTraits;
template<>
struct PtypeEvalTraits<PAWN>{
static const int val=128;
};
template<>
struct PtypeEvalTraits<PPAWN>{
static const int val=768;
};
template<>
struct PtypeEvalTraits<LANCE>{
static const int val=512;
};
template<>
struct PtypeEvalTraits<PLANCE>{
static const int val=768;
};
template<>
struct PtypeEvalTraits<KNIGHT>{
static const int val=512;
};
template<>
struct PtypeEvalTraits<PKNIGHT>{
static const int val=768;
};
template<>
struct PtypeEvalTraits<SILVER>{
static const int val=704;
};
template<>
struct PtypeEvalTraits<PSILVER>{
static const int val=768;
};
template<>
struct PtypeEvalTraits<GOLD>{
static const int val=768;
};
template<>
struct PtypeEvalTraits<BISHOP>{
static const int val=1024;
};
template<>
struct PtypeEvalTraits<PBISHOP>{
static const int val=1472;
};
template<>
struct PtypeEvalTraits<ROOK>{
static const int val=1216;
};
template<>
struct PtypeEvalTraits<PROOK>{
static const int val=1664;
};
template<>
struct PtypeEvalTraits<KING>{
static const int val=12800;
};
} // namespace eval
} // namespace osl
#endif /* EVAL_PTYPEEVALTRAITS_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
basic_type.h
osl::eval
Definition eval_pieceStand.cc:468
osl
Definition additionalEffect.h:6
osl::ROOK
@ ROOK
Definition basic_type.h:100
osl::PPAWN
@ PPAWN
Definition basic_type.h:87
osl::BISHOP
@ BISHOP
Definition basic_type.h:99
osl::PROOK
@ PROOK
Definition basic_type.h:92
osl::PAWN
@ PAWN
Definition basic_type.h:95
osl::KING
@ KING
Definition basic_type.h:93
osl::KNIGHT
@ KNIGHT
Definition basic_type.h:97
osl::SILVER
@ SILVER
Definition basic_type.h:98
osl::PKNIGHT
@ PKNIGHT
Definition basic_type.h:89
osl::GOLD
@ GOLD
Definition basic_type.h:94
osl::PLANCE
@ PLANCE
Definition basic_type.h:88
osl::PBISHOP
@ PBISHOP
Definition basic_type.h:91
osl::LANCE
@ LANCE
Definition basic_type.h:96
osl::PSILVER
@ PSILVER
Definition basic_type.h:90
osl::eval::PtypeEvalTraits< BISHOP >::val
static const int val
Definition ptypeEvalTraits.h:61
osl::eval::PtypeEvalTraits< GOLD >::val
static const int val
Definition ptypeEvalTraits.h:56
osl::eval::PtypeEvalTraits< KING >::val
static const int val
Definition ptypeEvalTraits.h:81
osl::eval::PtypeEvalTraits< KNIGHT >::val
static const int val
Definition ptypeEvalTraits.h:36
osl::eval::PtypeEvalTraits< LANCE >::val
static const int val
Definition ptypeEvalTraits.h:26
osl::eval::PtypeEvalTraits< PAWN >::val
static const int val
Definition ptypeEvalTraits.h:16
osl::eval::PtypeEvalTraits< PBISHOP >::val
static const int val
Definition ptypeEvalTraits.h:66
osl::eval::PtypeEvalTraits< PKNIGHT >::val
static const int val
Definition ptypeEvalTraits.h:41
osl::eval::PtypeEvalTraits< PLANCE >::val
static const int val
Definition ptypeEvalTraits.h:31
osl::eval::PtypeEvalTraits< PPAWN >::val
static const int val
Definition ptypeEvalTraits.h:21
osl::eval::PtypeEvalTraits< PROOK >::val
static const int val
Definition ptypeEvalTraits.h:76
osl::eval::PtypeEvalTraits< PSILVER >::val
static const int val
Definition ptypeEvalTraits.h:51
osl::eval::PtypeEvalTraits< ROOK >::val
static const int val
Definition ptypeEvalTraits.h:71
osl::eval::PtypeEvalTraits< SILVER >::val
static const int val
Definition ptypeEvalTraits.h:46
osl::eval::PtypeEvalTraits
Definition ptypeEvalTraits.h:12