10 #include <boost/foreach.hpp> 
   27   output << 
"N+" << black << std::endl
 
   28          << 
"N-" << white << std::endl;
 
   29   output << state << std::flush;
 
   37   output << std::endl << 
"T" << seconds << std::endl << std::flush;
 
   43   pushMove(move.move, seconds);
 
   44   if (! move.moves.empty()) 
 
   46     output << 
"'** " << move.value;
 
   47     BOOST_FOREACH(
Move m, move.moves)
 
   52     output << std::endl << std::flush;
 
   66          << std::endl << std::flush;
 
   72   output << line << std::endl << std::flush;
 
   78   output << 
"'" << comment << std::endl << std::flush;
 
   85   const time_t t = time(0);
 
   86   output << 
"'" << 
ctime_r(&t, ctime_buf);      
 
   92   output << 
"%TORYO" << std::endl;
 
   93   writeWinner(
alt(resigned));
 
  100   output << 
"'!!! input error: " << message << std::endl << std::flush;
 
  106   output << 
"%CHUDAN" << std::endl << std::flush;
 
  112   output << 
"%SENNICHITE" << std::endl;
 
  113   output << 
"'" << result << std::endl << std::flush;
 
  116     writeWinner(result.
winner());
 
  118     writeComment(
"draw");
 
  125   output << 
"%KACHI" << std::endl;
 
  126   output << 
"'declared by " << declarer << std::endl << std::flush;
 
  133   output << 
"'" << winner << 
" win" << std::endl << std::flush;