send status messages to stderr
why would i put this off lol
This commit is contained in:
parent
a443b3bc5d
commit
e8b3dd36cc
1 changed files with 3 additions and 3 deletions
|
|
@ -19,7 +19,7 @@ fn main() {
|
|||
.collect();
|
||||
|
||||
let target = env::args().nth(1).map_or(LetterSet::FULL, LetterSet::from);
|
||||
println!("letter count: {}", target.len());
|
||||
eprintln!("letter count: {}", target.len());
|
||||
let Some((len, path)) = solve(&mut dictionary, target) else {
|
||||
println!("failed :(");
|
||||
process::exit(1);
|
||||
|
|
@ -33,11 +33,11 @@ fn solve(dictionary: &mut [(String, LetterSet)], target: LetterSet) -> Option<(u
|
|||
let mut bests = (0..=LetterSet::FULL.to_index())
|
||||
.map(|_| (u8::MAX, None))
|
||||
.collect::<Box<[_]>>();
|
||||
println!("allocated!");
|
||||
eprintln!("allocated!");
|
||||
bests[LetterSet::FULL.to_index()] = (0, None);
|
||||
|
||||
dictionary.sort_by_key(|(word, ls)| word.len() - usize::from(ls.len()));
|
||||
println!("sorted!");
|
||||
eprintln!("sorted!");
|
||||
|
||||
score(dictionary, &mut bests, target.negation(), 0);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue