| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
iterative was higher-lower.lua, interactive asks for a guess,
binary_search always guesses in the middle of the range, and refines the
search area
cheating always gets it right in 0 guesses
|
|
|
|
|
| |
Instead of using global variables, the check_match function can use
closed over values.
|
|
|
|
|
|
|
|
| |
This adds `-f strategy.lua` as a parameter to higher-lower, which loads
the given script, passes a function to check the guess, the lower bound
and the upper bound.
It is expected to return the final result.
|
|
|