stock face down does not matter for trivial win

This commit is contained in:
2026-05-26 22:39:46 -07:00
parent a80f2ae3c9
commit 5ab1b8bac7
+1 -1
View File
@@ -582,7 +582,7 @@ impl Klondike {
/// Check if the game should be auto-completed
pub fn is_win_trivial(&self) -> bool {
// all face down cards empty means win
self.state.stock.face_down().is_empty()
self.state.stock.is_empty()
&& self.state.tableau1.face_down().is_empty()
&& self.state.tableau2.face_down().is_empty()
&& self.state.tableau3.face_down().is_empty()