powered by
revealLocation
Reveals the location by parsing and evaluating the string.
revealLocation(hiddenLocation)
A character vector of calculation strings.
Returns the value of the each calculation.
hideLocation
# NOT RUN { trueLoc <- hideLocation(3,100) trueLoc revealLocation(trueLoc) n <- 200 trueLoc <- sample(1:n, 3) trueLoc ans <- hideLocation(trueLoc , n) ans revealLocation(ans) # }
Run the code above in your browser using DataLab