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