When a pawn moves to its eighth rank , it must be changed for a piece : a queen , rook , bishop , or knight of the same color ( player 's choice ) . When a pawn advances to the eighth rank , as a part of the move it is promoted and must be exchanged for the player 's choice of queen , rook , bishop , or knight of the same color .