""" Felix Muzny DS 2000 Lecture 20 November 19, 2024 - Card class (in card.py) - diver/main code (in this file itself) Lecture 20: - add a Deck class - play "whose card is higher" between two players (see lec 19 code for blackjack code) """ # so we can access the Card class without saying card.Card from card import Card # random for what we're doing in Lec 20 import random NUM_SUITS = 4 MAX_CARD_NUMBER = 13 def make_card(num_suits, max_card_number): """ Randomly make a card from the given suits and numbers, starting at 1 :param num_suits: int :param max_card_number: int :return: a Card object randomly initialized """ return Card(random.randint(1, num_suits), random.randint(1, max_card_number)) def play_compare_cards(player1, player2): # draw a card for each player # return the name of the player who wins # or "tie" if it is a tie game print("we'll implement this!") def main(): # make and test out some cards, "drawing" randomly c1 = make_card(NUM_SUITS, MAX_CARD_NUMBER) print(c1) c2 = make_card(NUM_SUITS, MAX_CARD_NUMBER) print(c2) print() play_compare_cards("Felix", "Laney") # make a deck main()