protected override void context()
        {
            _game = new BowlingGame();
            _game.Roll(9,1);

            for (int i = 0; i < 9; i++) { _game.Roll(2,2); }
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Bowling game");
            Console.WriteLine("\nAdd your points\n");

            BowlingGame game = new BowlingGame();

            string Throw = Console.ReadLine();

            Console.WriteLine("pisteita tahan mennessa" + game.Score);
        }
Beispiel #3
0
 public MainWindow()
 {
     InitializeComponent();
     BG          = new BowlingGame();
     DataContext = BG.Rounds;
 }
 protected override void context()
 {
     _game = new BowlingGame();
     for (int i = 0; i < 10; i++) { _game.Roll(0,0); }
 }
 protected override void context()
 {
     _game = new BowlingGame();
     for (int i = 0; i < 9; i++) _game.RollStrike();
     _game.RollLastFrame(10,10,10);
 }
 protected override void context()
 {
     _game = new BowlingGame();
     _game.RollStrike();
     _game.Roll(4, 6);
     _game.RollStrike();
     _game.Roll(7, 3);
     _game.RollStrike();
     _game.Roll(9, 1);
     _game.RollStrike();
     _game.Roll(5, 5);
     _game.RollStrike();
     _game.RollLastFrame(8, 2, 10);
 }