(self)
return "".join(fen)
Gets the FEN representation of the position.
Gets the FEN representation of the position.
Gets the FEN representation of the position .
def fen(self):
        """Gets the FEN representation of the position."""
        fen = []

        # Position, turn, castling and en passant.
        fen.append(self.epd())

        # Half moves.
        fen.append(" ")
        fen.append(str(self.half_moves))

        # Ply.
        fen.append(" ")
        fen.append(str(self.ply))

        return "".join(fen)
def fen ( self ) : fen = [ ] # Position, turn, castling and en passant. fen . append ( self . epd ( ) ) # Half moves. fen . append ( " " ) fen . append ( str ( self . half_moves ) ) # Ply. fen . append ( " " ) fen . append ( str ( self . ply ) ) return "" . join ( fen )