Exemple #1
0
def level_2(table, player1, player2, player3, player4):
    """Level 2 game play."""
    while table.size() != 52:
        if not player1.is_empty():
            human_move2(table, player1)
        if not player2.is_empty():
            comp_turn2(table, player2)
        if not player3.is_empty():
            comp_turn2(table, player3)
        if not player4.is_empty():
            comp_turn2(table, player4)
Exemple #2
0
def level_5(table, player1, player2, player3, player4):
    """Level 5 gameplay."""
    #prev_card = None
    while table.size() != 52:
        if not player1.is_empty():
            human_move2(table, player1)
        if not player2.is_empty():
            comp_turn5(table, player2)
        if not player3.is_empty():
            comp_turn5(table, player3)
        if not player4.is_empty():
            comp_turn5(table, player4)
def level_6(table, player1, player2, player3, player4):
    """Level 3 gameplay."""
    #prev_card = None
    while table.size() != 52:
        players = players_left(player1, player2, player3, player4)
        if not player1.is_empty():
            human_move2(table, player1)

        if not player2.is_empty() and player3.is_empty() and player4.is_empty(
        ):
            comp_turn6(table, player2, player1, players)
        elif not player2.is_empty():
            comp_turn6(table, player2, player1, players)

        if not player3.is_empty() and player4.is_empty():
            comp_turn6(table, player3, player1, players)
        elif not player3.is_empty():
            comp_turn6(table, player3, player1, players)

        if not player4.is_empty():
            comp_turn6(table, player4, player1, players)