revealLocation
Revealing locations encoded as a string calculation.R/revealLocation.R
revealLocation.Rd
Reveals the location by parsing and evaluating the string.
revealLocation(hiddenLocation)
hiddenLocation | A character vector of calculation strings. |
---|
Returns the value of the each calculation.
#> [1] "2^(log(8542330233307635712, base=5) - 25.5)"revealLocation(trueLoc)#> [1] 3#> [1] 186 66 76#> [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