public final static String pieceAndSquareToString(int currentPieceType,int p,int sq){
  StringBuilder ret=new StringBuilder();
  if (currentPieceType == PGNOptions.PT_FIGURINE) {
    ret.append(Piece.toUniCode(p));
  }
 else {
    boolean localized=(currentPieceType != PGNOptions.PT_ENGLISH);
    if ((p == Piece.WPAWN) || (p == Piece.BPAWN))     ret.append(localized ? pieceNames[0] : "P");
 else     ret.append(localized ? pieceToCharLocalized(p) : pieceToChar(p));
  }
  ret.append(squareToString(sq));
  return ret.toString();
}

public final static String pieceAndSquareToString ( int currentPieceType , int p , int sq ) { StringBuilder ret = new StringBuilder ( ) ; if ( currentPieceType == PGNOptions . PT_FIGURINE ) { ret . append ( Piece . toUniCode ( p ) ) ; } else { boolean localized = ( currentPieceType != PGNOptions . PT_ENGLISH ) ; if ( ( p == Piece . WPAWN ) || ( p == Piece . BPAWN ) ) ret . append ( localized ? pieceNames [ 0 ] : "P" ) ; else ret . append ( localized ? pieceToCharLocalized ( p ) : pieceToChar ( p ) ) ; } ret . append ( squareToString ( sq ) ) ; return ret . toString ( ) ; }
convert a piece and a square to a string , such as nf3 .
