Esempio n. 1
0
        public void MinefieldModelGamOver1Test()
        {
            MinefieldTable table = new MinefieldTable();

            _model.NewGame();

            table = _model.Table;

            table.fieldValues[8, 9] = FieldType.HeavyB;

            _model.AdvanceTime();

            Assert.AreEqual(_model.IsGameOver, true);
            Assert.AreEqual(table.fieldValues[9, 9], FieldType.HeavyB);
        }
Esempio n. 2
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     _model.AdvanceTime(); // játék léptetése
 }
Esempio n. 3
0
 private void Timer_Tick(object sender, EventArgs e)
 {
     _model.AdvanceTime();
 }