public class Game {
	private int rolls[] = new int[21];
	private int currentRoll = 0;

	public void roll(int pins) {
		rolls[currentRoll++] = pins;
	}

	public int score() {
		int score = 0;
		int i = 0;
		for (int frame = 0; frame < 10; frame++) {
			if (rolls[i] + rolls[i + 1] == 10) { //spare
				score += 10 + rolls[i + 2];
			} else {
				score += rolls[i] + rolls[i + 1];
			}
			i += 2;
		}
		return score;
	}
}
@@ -190,17 +190,26 @@
 ;%0A%09%09int 
-i
+frameIndex
  = 0;%0A%09%09
@@ -260,36 +260,54 @@
 %09%09if (rolls%5B
-i%5D + rolls%5Bi
+frameIndex%5D + rolls%5BframeIndex
  + 1%5D == 10)
@@ -341,17 +341,26 @@
 + rolls%5B
-i
+frameIndex
  + 2%5D;%0A%09
@@ -393,20 +393,38 @@
 lls%5B
-i%5D + rolls%5Bi
+frameIndex%5D + rolls%5BframeIndex
  + 1
@@ -434,17 +434,26 @@
 %09%09%09%7D%0A%09%09%09
-i
+frameIndex
  += 2;%0A%09

rename var i in bowling kata