Challenge Difficulty Levels

difficulty_levels

format_difficulty(params)

Arguments

params

Challenge parameters as list.

Format

difficulty_levels is a character vector of valid difficulty levels.

Value

format_difficulty() returns a character value indicating the challenge difficulty.

Examples

difficulty_levels
#> [1] "Novice"       "Intermediate" "Advanced"    

params <- list(difficulty = "novice")
cat(format_difficulty(params))
#> Novice