| 547 | } |
| 548 | |
| 549 | std::string Board::positionString() const |
| 550 | { |
| 551 | std::stringstream ss; |
| 552 | for (int i = 0; i < ply(); i++) { |
| 553 | Pos pos = getHistoryMove(i); |
| 554 | if (pos == Pos::PASS) |
| 555 | ss << "--"; |
| 556 | else |
| 557 | ss << char('a' + pos.x()) << (1 + pos.y()); |
| 558 | } |
| 559 | return ss.str(); |
| 560 | } |
| 561 | |
| 562 | std::string Board::trace() const |
| 563 | { |