Пример #1
0
 public GamePanel()
 {
     InitializeComponent();
     AddNew();
     Color();
     _Score         = 0;
     WhichWay       = new NextMove(this.Controls);
     timer1.Enabled = true;
 }
Пример #2
0
        public bool Combine(char Direction, out int Score, out bool Lose, out bool WIN)
        {
            int  S = 0;
            bool R = WhichWay.Move(Direction, out S, out WIN);

            _Score += S;
            Score   = _Score;
            if (R)
            {
                AddNew();
                Color();
                WhichWay = new NextMove(this.Controls);
                Lose     = WhichWay.LOSE;
                return(R);
            }
            Lose = WhichWay.LOSE;
            return(R);
        }