In the game of 31, a player achieves a perfect score when they hold three cards with identical suits that add up to precisely 31 points. Achieving this feat awards them the maximum possible score and guarantees victory for that round.