Fixed display of top card in waste
This commit is contained in:
@@ -234,6 +234,7 @@ impl Klondike {
|
|||||||
self.current_num_passes_through_deck += 1;
|
self.current_num_passes_through_deck += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//pub fn move_one_stack_to_another(self, )
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for Klondike {
|
impl Default for Klondike {
|
||||||
@@ -250,6 +251,9 @@ impl Default for Klondike {
|
|||||||
piles[pile].push(c);
|
piles[pile].push(c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
for card in &mut deck.cards {
|
||||||
|
card.visible = true;
|
||||||
|
}
|
||||||
Self {
|
Self {
|
||||||
piles,
|
piles,
|
||||||
deck: deck.cards,
|
deck: deck.cards,
|
||||||
|
|||||||
Reference in New Issue
Block a user