[Solved] Java dice game counter unable to add correctly


how are you?

I have made 3 alterations in 2 classes.
have a look to see if it will work for you.

//Computers turn to roll the dice.
    public void computerTurn() {

        computerTurnNumber = 0; // here

        turnScore = 0;
        System.out.println("Computer's turn: ");
        while (computerTurnNumber < 20) { // here is the amount of time the dice will be rolled
            rollTheDice();
            computerTurnNumber++;
            setComputerTotalScore(turnScore);
        }
        getGameScore();
        enterToContinue();
    }

and

//Sets turnScore from whatWasRolled.
    public void setScore(int roundPoints) {
        turnScore = roundPoints; //here, before it was accumulating the points of each turn
    }

solved Java dice game counter unable to add correctly