My Project
bigramAttack.cc
Go to the documentation of this file.
1/* bigramAttack.cc
2 */
4#include <sstream>
5
6const std::string osl::rating::
7BigramAttack::name(int x1, int y1, int x2, int y2, int king_index, bool same, bool focus_x)
8{
9 std::ostringstream os;
10 os << "BA(" << x1 << "," << y1 << ")(" << x2 << "," << y2 << ")" << (same ? "=" : "!")
11 << (focus_x ? "X" : "Y") << king_index;
12 return os.str();
13
14}
15
16/* ------------------------------------------------------------------------- */
17// ;;; Local Variables:
18// ;;; mode:c++
19// ;;; c-basic-offset:2
20// ;;; End:
const std::string & name() const