toLabel

Converts the difficulty level to a string representation using the provided difficulty labels.

Return

The corresponding difficulty label based on the ordinal position of the Difficulty enum value within the array.

Parameters

labels

An array of difficulty labels.

Throws

if the ordinal is out of bounds for the provided labels array.