Skip to content

Instantly share code, notes, and snippets.

View tolbier's full-sized avatar
🏠
Working from home

Lluis Toyos tolbier

🏠
Working from home
View GitHub Profile
@tolbier
tolbier / BowlingGame.java
Created November 18, 2017 15:35
My BowlingGame Kata (still no OOP, but with some improves)
package com.tolbier.bowlinggamekata;
public class Game {
private int currentRoll = 0;
private int rolls[] = new int[21];
int rollIndex ;
public void roll(int pins) {
rolls[currentRoll++] = pins;
}