임보경/spring/homework/src/main/java/lbk/homework/day0727/secondDiceGame/entity/Score.java
package lbk.homework.day0727.secondDiceGame.entity;

import lombok.Getter;

@Getter
public class Score {
    private int totalScore;

    public void calScore(int score){

        totalScore += score;
        if(totalScore < 0) { totalScore = 0; }

    }
}
