bigramAttack.cc
Go to the documentation of this file.
/* bigramAttack.cc
*/
#include "osl/rating/feature/bigramAttack.h"
#include <sstream>
const std::string osl::rating::
BigramAttack::name(int x1, int y1, int x2, int y2, int king_index, bool same, bool focus_x)
{
std::ostringstream os;
os << "BA(" << x1 << "," << y1 << ")(" << x2 << "," << y2 << ")" << (same ? "=" : "!")
<< (focus_x ? "X" : "Y") << king_index;
return os.str();
}
/* ------------------------------------------------------------------------- */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
bigramAttack.h
osl::rating::BigramAttack::same
bool same
Definition bigramAttack.h:15
osl::rating::BigramAttack::focus_x
bool focus_x
Definition bigramAttack.h:15
osl::rating::Feature::name
const std::string & name() const
Definition rating/feature.h:24