Kniffel/domain/sheets/ThreeOfKind.java

17 lines
296 B
Java
Raw Normal View History

package domain.sheets;
import java.util.ArrayList;
public class ThreeOfKind extends Category {
@Override
public void calcValueFromRoll(ArrayList<Integer> rolls) {
int sum = 0;
for(int roll : rolls){
sum += roll;
}
this.value = sum;
}
}