rename take_cards to take_stack

This commit is contained in:
2026-05-16 12:32:22 -07:00
parent ae591a6ee1
commit 35299309e0
+2 -2
View File
@@ -342,7 +342,7 @@ impl KlondikeState {
KlondikePile::Stock => self.stock.face_up().last(),
}
}
fn take_cards(&mut self, src: KlondikePileStack) -> Stack<13> {
fn take_stack(&mut self, src: KlondikePileStack) -> Stack<13> {
match src {
KlondikePileStack::Tableau(TableauStack {
tableau,
@@ -539,7 +539,7 @@ impl Game for Klondike {
self.state.extend(foundation.into(), cards);
}
KlondikeInstruction::DstTableau(DstTableau { src, tableau }) => {
let cards = self.state.take_cards(src);
let cards = self.state.take_stack(src);
self.state.extend(tableau.into(), cards);
}
}