retris 0.3.0

This is a Rust implementation of tetris using the Cursive library
Documentation
1
2
3
4
5
6
7
pub fn padding(num: usize, length: usize) -> String {
    let mut output = num.to_string();
    while output.len() < length {
        output = format!("0{}", output);
    }
    output
}