std::string action2str()

in simple_game/two_suited_bridge.h [245:252]


  std::string action2str(int action) const override { 
    assert(card1_ >= 0 && card2_ >= 0);
    assert(action >= 0 && action < numBidding_); 
    if (action == kPass) {
      return publicActions_.empty() ? "0N" : "P";
    }
    return std::to_string((action - 1) / 2 + 1) + ((action - 1) % 2 == 0 ? "H" : "S");
  }