Example #1
0
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(']');
}