A wordfeud library for Rust.
This crate allows you to calculate the best scores in a game of wordfeud.
It can be used to study strategies in the game, or just to cheat.
This library is a Rust port of the excellent wordfeudplayer
python library.
It can use the rayon
crate to calculate moves in parallel.
The time required to evaluate a board is in the order of 1 millisecond.
How to use wordfeud_solver
Start by creating a wordfeud board, then specify the wordlist to be used, and the tiles on the board.
By default a standard board is used, but you can specify your own "random" board.
The wordlist must be in utf-8 and contain one word per line.
Several wordfeud wordlists are available on the internet.
A wordlist for the dutch language is available here.
It is based on the OpenTaal
wordlist, with modifications by the author.
Basic usage
# use ;
let mut board = default.with_wordlist_from_words?;
let results = board.calc_all_word_scores?;
assert_eq!;
for s in results
board.play_word?;
println!;
# Ok::