예제 #1
0
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'] = []
예제 #2
0
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'] = []
예제 #3
0
파일: spit.py 프로젝트: tallPaul66/poker_v2
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'] = []