void TBV::PrintSqrSet(const Pos& pos) const { // Print a TBV as a set of squares bool needspace = false; PrintChar('['); for (tidType tid = 0; tid < tidLen; tid++) if (TestTid(tid)) { const sqrType sqr = pos.GetTidToSqr(tid); if (needspace) PrintSpace(); PrintSqrBasic(sqr); needspace = true; }; PrintChar(']'); }
void TBV::PrintManSqrSet(const Pos& pos) const { // Print a TBV as a set of chessmen/square pairs bool needspace = false; PrintChar('['); for (tidType tid = 0; tid < tidLen; tid++) if (TestTid(tid)) { const sqrType sqr = pos.GetTidToSqr(tid); const manType man = pos.GetMan(sqr); if (needspace) PrintSpace(); PrintMan(man); PrintChar('/'); PrintSqrBasic(sqr); needspace = true; }; PrintChar(']'); }