Ejemplo n.º 1
0
        public GameModel()
        {
            _playerTurn   = new PlayerTurn();
            _computerTurn = new ComputerTurn();

            Score     = 0;
            HighScore = 0;

            StartTiles  = 2;
            KeepPlaying = true;

            Grid = new GridModel(4);
        }
Ejemplo n.º 2
0
 private void timerComputerPlay_Tick(object sender, EventArgs e)
 {
     timerComputerPlay.Stop();
     ComputerTurn.Invoke();
 }