00001 /* piecePairPieceEval.h 00002 */ 00003 #ifndef EVAL_PPAIR_PIECEPAIRPIECEEVAL_H 00004 #define EVAL_PPAIR_PIECEPAIRPIECEEVAL_H 00005 00006 #include "osl/eval/ppair/piecePairWithStand.h" 00007 #include "osl/eval/ppair/piecePairTable.h" 00008 00009 namespace osl 00010 { 00011 namespace eval 00012 { 00013 namespace ppair 00014 { 00015 class PiecePairPieceTable : public PiecePairTable<signed short> 00016 { 00017 public: 00018 PiecePairPieceTable(); 00019 ~PiecePairPieceTable(); 00024 bool setUp(const char *filename) const; 00025 00027 static const PiecePairPieceTable Table; 00028 static PtypeEvalTable Piece_Value; 00029 }; 00030 00034 class PiecePairPieceEval 00035 : public PiecePairWithStand<PiecePairPieceTable> 00036 { 00037 public: 00038 typedef PiecePairWithStand<PiecePairPieceTable> base_t; 00039 explicit PiecePairPieceEval(const SimpleState& state) 00040 : base_t(state) 00041 { 00042 } 00043 static int adjustableDimension() { return PTYPE_SIZE; } 00044 static void resetWeights(const int *w); 00045 }; 00046 00047 } // namespace ppair 00048 using ppair::PiecePairPieceTable; 00049 using ppair::PiecePairPieceEval; 00050 } // namespace eval 00051 } // namespace osl 00052 00053 00054 #endif /* EVAL_PPAIR_PIECEPAIRPIECEEVAL_H */ 00055 // ;;; Local Variables: 00056 // ;;; mode:c++ 00057 // ;;; c-basic-offset:2 00058 // ;;; coding:utf-8 00059 // ;;; End: