rename function

This commit is contained in:
2026-05-16 22:06:50 -07:00
parent 6fec71ea0a
commit bb558c7983
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -327,7 +327,7 @@ impl KlondikeState {
Tableau::Tableau7 => self.tableau7.face_down().is_empty(),
}
}
pub fn card(&self, src: KlondikePileStack) -> Option<&Card> {
pub fn stack_bottom_card(&self, src: KlondikePileStack) -> Option<&Card> {
match src {
KlondikePileStack::Tableau(TableauStack {
tableau,
@@ -444,7 +444,7 @@ impl KlondikeState {
// other = move to tableau
KlondikeInstruction::DstTableau(dst_tableau) => {
// get the cards
if let Some(src_card) = self.card(dst_tableau.src) {
if let Some(src_card) = self.stack_bottom_card(dst_tableau.src) {
match self.top_card(dst_tableau.tableau) {
// destination card exists
Some(dst_card) => {