If a pawn moves to its eighth rank , getting a promotion , the piece chosen is written after the move , for example e1Q or e1 = Q. Castling is written by the special notations 0-0 for kingside castling and 0-0-0 for queenside .
If a pawn moves to its last rank , achieving promotion , the piece chosen is indicated after the move , for example e1Q or e1 = Q. Castling is indicated by the special notations 0 â `` 0 for kingside castling and 0 â `` 0 â `` 0 for queenside castling .