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