MCPcopy Create free account
hub / github.com/dhbloo/rapfi / positionString

Method positionString

Rapfi/game/board.cpp:549–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

547}
548
549std::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
562std::string Board::trace() const
563{

Callers 3

databaseMethod · 0.45
selfplayMethod · 0.45
opengenMethod · 0.45

Calls 3

xMethod · 0.80
yMethod · 0.80
strMethod · 0.80

Tested by

no test coverage detected