private void AddLastChanse(bool withStrike) { if (withStrike) { game.RollTheLastBowl(2, 8, 6); } else { game.RollTheBowl(3, 4); } }
private Game CreateNewGame() { var game = new Game(); foreach (var item in inputData) { if (item.Length < 3) { game.RollTheBowl(item[0], item[1]); } else { game.RollTheLastBowl(item[0], item[1], item[2]); } } return(game); }