8 #include <boost/foreach.hpp>
16 return toupper(a) == toupper(b);
21 return s1.size() == s2.size() &&
46 static const CArray<const osl::record::Color,17> colors = {{
66 : value(value), name(name), valid(valid)
76 assert((1 <= n) && (n <= 18));
87 case 10:
return K_K10;
88 case 11:
return K_K11;
89 case 12:
return K_K12;
90 case 13:
return K_K13;
91 case 14:
return K_K14;
92 case 15:
return K_K15;
93 case 16:
return K_K16;
94 case 17:
return K_K17;
95 case 18:
return K_K18;
163 return os << c.
value;
169 if (!color.isValid())
return;
170 os <<
"\033[" << color <<
"m";
176 if (!color.isValid())
return;
202 for(
int x=9*pieces->getSuji(1).size();x>0;x--)
206 os <<
"+" << std::endl;
208 for(
int y=1;y<=9;y++)
244 for(
int x=9*pieces->getSuji(1).size();x>0;x--)
248 os <<
"+" << std::endl;
260 os << state.
turn() << std::endl;