Exemple #1
0
 private void AddRandomTetrominos()
 {
     for (int i = 0; i < tetrominos.Count; i++)
     {
         NextTetrominos.Insert(NextTetrominos.Count - i + rnd.Next(i + 1),
                               new Tetromino(tetrominos[i]));
     }
 }
Exemple #2
0
 void Hold()
 {
     if (HoldTetromino != null)
     {
         NextTetrominos.Insert(0, HoldTetromino);
     }
     HoldTetromino          = CurrentTetromino;
     HoldTetromino.Rotation = 0;
     PickTetromino();
 }