challenge-prompt
challenge-prompt
makes the user pause before doing something.
Command line tool
Install:
$ cargo install challenge-prompt
Run:
$ challenge-prompt
Solve: (5 + 15) mod 5 = ?
Library example
Add this to your Cargo.toml
:
[dependencies]
challenge-prompt = "0.2"
and this to your crate root:
extern crate challenge_prompt;
Basic example:
extern crate challenge_prompt;
if ! Arithmetic.prompt
See also the full documentation.