Esempio n. 1
0
def start_new_game(p: Player, scr) -> None:
    """
    Function that gets called at the start of a new game.

    p: The player object to start the game with.
    """
    # Reset turn counter
    session_objects.s_turn_counter = 0
    
    # Add starter cards into deck
    p.deck = ["copper coin"] * 7
    p.deck += ["land"] * 3
    
    # Copy deck into drawpile
    p.drawpile = p.deck.copy()

    # shuffle draw pile
    random.shuffle(p.drawpile)

    # Draw 5 cards
    p.draw_cards(5, main_screen, verbose=False)