7 #include <boost/algorithm/string/predicate.hpp>
16 vector<std::string> comment;
17 vector<record::SearchInfo> move_comment;
20 if (boost::algorithm::iends_with(filename,
".ki2")) {
21 Ki2File file(filename);
22 record = file.getRecord();
23 state = file.getInitialState();
26 KakinokiFile file(filename);
27 record = file.getRecord();
28 state = file.getInitialState();
30 std::cout <<
"N+" << record.getPlayer(
BLACK) << std::endl;
31 std::cout <<
"N-" << record.getPlayer(
WHITE) << std::endl;
32 record.getMoves(moves, time, comment, move_comment);
34 for (
size_t i=0; i<moves.size(); ++i)
37 if (i < comment.size())
39 std::istringstream is(comment[i]);
41 while (std::getline(is, line))
42 std::cout <<
"'* " << line << std::endl;
47 int main(
int argc,
char **argv)
49 for (
int i=1; i<argc; ++i)