00001
00002
00003 #include "osl/rating/feature/bigramAttack.h"
00004 #include <sstream>
00005
00006 const std::string osl::rating::
00007 BigramAttack::name(int x1, int y1, int x2, int y2, int king_index, bool same, bool focus_x)
00008 {
00009 std::ostringstream os;
00010 os << "BA(" << x1 << "," << y1 << ")(" << x2 << "," << y2 << ")" << (same ? "=" : "!")
00011 << (focus_x ? "X" : "Y") << king_index;
00012 return os.str();
00013
00014 }
00015
00016 const std::string osl::rating::
00017 BigramAttackTable::name(int first)
00018 {
00019 std::ostringstream os;
00020 os << "BA(" << first << ")";
00021 return os.str();
00022 }
00023
00024
00025
00026
00027
00028