Ejemplo n.º 1
0
        gameState.clear()
        gameState.prep = True


    if gameState.roundOver:
        buildRoundScore(player1, player2)
        

    if gameState.gameOver:
        player1.totalPoints += player1.calculatePoints()
        player2.totalPoints += player2.calculatePoints()
        buildGameScore(player1, player2)

        gameState.clear()
        if player1.totalPoints < 21 and player2.totalPoints < 21:
            gameState.newGame = True
        else:
            for spot in cardSpots:
                spot.removeCard()
            gameState.waitRO = True

        
    else:
        buildNametags()
        paintAllCards()


    if gameState.displayCM: #here is when we actually execute the move
        if computerMoveType == "Discard":
            computerMove = Discard(table, tup[0], player2, player1)
            discardUI(tup[0])