private void nextMino() { foreach (var point in this.mino.getBlockPoints()) { this.stage[point.Y][point.X] = this.mino.shape + 2; } Random rand = new System.Random(); this.mino = new Mino(this.g, 5, 1, rand.Next(0, 7)); }
public Field(Graphics g) { this.g = g; foreach (var item in this.stage) { Console.WriteLine(item.ToString()); } Random rand = new System.Random(); this.mino = new Mino(this.g, 5, 1, rand.Next(0, 7)); }