public Piece(PieceType type) { Debug.Assert(this.type != PieceType.Dead, "New piece was \"Dead\". This should never happen."); this.type = type; blocks = PieceTypeUtils.GetPieceTypeBlocks(type); position = PieceTypeUtils.GetDefaultPosition(type); }
private void GenerateBag() { bag = new Queue <PieceType>(PieceTypeUtils.GetRealPieces().OrderBy(i => Rand.NextDouble())); }