Ejemplo n.º 1
0
                gameState.clear()
                gameState.last = True
            else:
                handNumber += 1
        else:
            turnNumber += 1
            gameState.waitGM = True
   
    elif gameState.waitCM2:
        gameState.clear()
        gameState.displayCM = True

    elif gameState.waitRO:
        pygame.time.wait(3000)
        gameState.clear()
        gameState.roundOver = True


    #-- the prep state: dealing cards to the two players and possibly the table --#
    if gameState.prep:
        #on the first hand, deal 4 to the table
        if handNumber == 0:
            for i in range(4):
                table.allCards.append(deck.draw())

            dealToTableUI(table.allCards)

        #on all 6 hands, deal 4 cards to each player
        for i in range(4):
            player1.hand.append(deck.draw())
            player2.hand.append(deck.draw())