bigramAttack.cc Source File

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
bigramAttack.cc
Go to the documentation of this file.
1 /* bigramAttack.cc
2 */
3 #include "osl/rating/feature/bigramAttack.h"
4 #include <sstream>
5
6 const std::string osl::rating::
7 BigramAttack::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: