mirror of
https://github.com/DerTyp7/bowling-kata-java.git
synced 2025-10-30 05:07:15 +01:00
init
This commit is contained in:
15
src/main/java/de/tealfire/Bowling.java
Normal file
15
src/main/java/de/tealfire/Bowling.java
Normal file
@@ -0,0 +1,15 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user