Beispiel #1
0
        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);
        }
Beispiel #2
0
 private void GenerateBag()
 {
     bag = new Queue <PieceType>(PieceTypeUtils.GetRealPieces().OrderBy(i => Rand.NextDouble()));
 }