Complex sentence: Depending on how well you did a level (part of the history) you are given a rank, ranging from F to A, with F being bad and A very good.
Split into simpler sentences: Depending on how well the player performed in a level (part of the history) the player is given a rank. The ranks rang from F to A, with F being bad and A very good.