Facedown cards seeeem to be alright

This commit is contained in:
2025-03-08 00:01:47 +00:00
parent a64031e3bc
commit b86df849bc

View File

@@ -90,6 +90,9 @@ fn deck_widget(cards_in_deck: &Vec<card_stuffs::Card>) -> Paragraph<'static> {
}
fn card_widget<'a>(card: &'a card_stuffs::Card, top: bool, highlight: bool, select: bool) -> Paragraph<'a> {
if !card.visible {
return facedown_card(top);
}
let card_image = format!(
"{value}{suit}