17 lines
296 B
Java
17 lines
296 B
Java
|
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;
|
||
|
}
|
||
|
}
|