Function scramble::score_word[][src]

pub fn score_word(word: &str) -> i32

Returns a score based on the length of the passed string. Note: there is also a score_bonus() to be applied at the end of a round