示例#1
0
        private void ApplyPlace(GameState game)
        {
            TakPiece piece;

            if (Piece == TakPiece.PieceType.Capstone)
            {
                game[PieceColor].NumCapstones--;
                piece = new Capstone(PieceColor);
            }
            else
            {
                game[PieceColor].NumPieces--;
                piece = new TakPiece(PieceColor)
                {
                    IsWall = Piece == TakPiece.PieceType.Wall
                };
            }

            game.Board[Row, Column].Place(piece);
        }
示例#2
0
 public Capstone(Capstone src) : base(src)
 {
 }