def new_game(players): global deck global reveal_cards global monty_match global monty_winner global match_amt global players_staying monty_match = 0 monty_winner = '' match_amt = 0 players_staying.clear() # generate a new, shuffled deck deck = new_deck.make_deck() # convert the raw strings in deck to image file paths for i in range(len(deck)): card = deck [i] deck[i] = get_img_path(card) players_current_hand = players.copy() hands.clear() stage.clear() reveal_cards = False for p in players_current_hand: hands[p] = [] drop_dict[p] = '' hands['monty'] = []
def new_game(players): global deck # generate a new, shuffled deck deck = new_deck.make_deck() # convert the raw strings in deck to image file paths for i in range(len(deck)): card = deck[i] deck[i] = get_img_path(card) players_current_hand = players.copy() hands.clear() stage.clear() for p in players_current_hand: hands[p] = [] hands['comm'] = []
def new_game(players, community_game=True): global deck global show_spit # generate a new, shuffled deck deck = new_deck.make_deck() # convert the raw strings in deck to image file paths for i in range(len(deck)): card = deck[i] deck[i] = get_img_path(card) players_current_hand = players.copy() hands.clear() draw_card_idxs.clear() stage.clear() show_spit = False for p in players_current_hand: hands[p] = [] hands['spit'] = []