Reveals the location by parsing and evaluating the string.

revealLocation(hiddenLocation)

Arguments

hiddenLocation

A character vector of calculation strings.

Value

Returns the value of the each calculation.

See also

Examples

trueLoc <- hideLocation(3,100) trueLoc
#> [1] "2^(log(8542330233307635712, base=5) - 25.5)"
revealLocation(trueLoc)
#> [1] 3
n <- 200 trueLoc <- sample(1:n, 3) trueLoc
#> [1] 186 66 76
ans <- hideLocation(trueLoc , n) ans
#> [1] "2^(log(1.42134939202773e+34, base=15) - 21.5)" #> [2] "2^(log(6.50141073010706e+25, base=7) - 24.5)" #> [3] "2^(log(1.68251629901732e+24, base=13) - 15.5)"
revealLocation(ans)
#> [1] 186 66 76