mirror of
https://github.com/DerTyp7/bowling-kata-java.git
synced 2025-10-29 12:52:12 +01:00
16 lines
211 B
Java
16 lines
211 B
Java
package de.tealfire;
|
|
|
|
public class Bowling {
|
|
int score = 0;
|
|
int roll = 0;
|
|
|
|
public void roll(int i) {
|
|
score += i;
|
|
roll++;
|
|
}
|
|
|
|
public int score() {
|
|
return score;
|
|
}
|
|
}
|