Kniffel/domain/sheets/FourOfKind.java

17 lines
295 B
Java

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