From 07c3dc66674dba6c4a86a0cac393a505bc76dfe5 Mon Sep 17 00:00:00 2001 From: Rhys Lloyd Date: Mon, 18 May 2026 13:26:08 -0700 Subject: [PATCH] fix doc --- klondike/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/klondike/src/lib.rs b/klondike/src/lib.rs index c17d881..21141eb 100644 --- a/klondike/src/lib.rs +++ b/klondike/src/lib.rs @@ -625,12 +625,13 @@ impl Klondike { KlondikeInstruction::RotateStock => 4, } } - /// A list of possible moves sorted by a simple prioirty function + /// A single move that usually makes progress towards a winning game pub fn get_auto_move(&self) -> Option { self.possible_instructions() .filter(|ins| !ins.is_useless()) .min_by_key(|ins| self.instruction_priority(ins)) } + /// A list of possible moves sorted by a simple prioirty function pub fn get_sorted_moves(&self) -> Vec { let mut useful_moves: Vec<_> = self .possible_instructions()