rename take_cards to take_stack
This commit is contained in:
+2
-2
@@ -342,7 +342,7 @@ impl KlondikeState {
|
|||||||
KlondikePile::Stock => self.stock.face_up().last(),
|
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 {
|
match src {
|
||||||
KlondikePileStack::Tableau(TableauStack {
|
KlondikePileStack::Tableau(TableauStack {
|
||||||
tableau,
|
tableau,
|
||||||
@@ -539,7 +539,7 @@ impl Game for Klondike {
|
|||||||
self.state.extend(foundation.into(), cards);
|
self.state.extend(foundation.into(), cards);
|
||||||
}
|
}
|
||||||
KlondikeInstruction::DstTableau(DstTableau { src, tableau }) => {
|
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);
|
self.state.extend(tableau.into(), cards);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user