Exemplo n.º 1
0
 public void Restart()
 {
     cup           = new int[cup.GetLength(0), cup.GetLength(1)];
     RND           = new Random(DateTime.Now.Millisecond);
     currentFigure = null;
     nextFigure    = null;
     score         = 0;
     gameOver      = false;
     SetFigures();
 }
Exemplo n.º 2
0
 public void SetFigures() // Смена фигур
 {
     if (nextFigure != null)
     {
         currentFigure = nextFigure;
     }
     else
     {
         currentFigure = ChooseRandomFig(false);
     }
     nextFigure = ChooseRandomFig();
     OnCupChanged(new EventArgs());
     OnNextFigureChanged(new EventArgs());
 }