Ejemplo n.º 1
0
 public Tetris(Tetris from, TetrisRNGProvider rng)
 {
     board         = (ushort[])from.board.Clone();
     this.rng      = rng;
     current       = from.current;
     hold          = from.hold;
     pieceX        = from.pieceX;
     pieceY        = from.pieceY;
     pieceRotation = from.pieceRotation;
     blockOut      = from.blockOut;
     held          = from.held;
 }
Ejemplo n.º 2
0
 public Tetris(TetrisRNGProvider rng)
 {
     board    = new ushort[40];
     this.rng = rng;
     SetPiece(rng.NextPiece());
 }