private void AddLastChanse(bool withStrike) { if (withStrike) { game.RollTheLastBowl(2, 8, 6); } else { game.RollTheBowl(3, 4); } }
public void Arrange() { game = new Game(); game.RollTheBowl(1, 4); game.RollTheBowl(4, 5); game.RollTheBowl(6, 4); game.RollTheBowl(5, 5); game.RollTheBowl(10, 0); game.RollTheBowl(0, 1); game.RollTheBowl(7, 3); game.RollTheBowl(6, 4); game.RollTheBowl(10, 0); }
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); }