Skip to main content

decode_text

Function decode_text 

Source
pub fn decode_text<R: Rng>(
    target: &str,
    tick: usize,
    garble_ticks: usize,
    rng: &mut R,
) -> String
Expand description

Combines garble-grow and decode-reveal into a single call. For ticks 0..garble_ticks, grows garbled text from 1 to target length. For ticks >= garble_ticks, progressively reveals the target text.