Exemple #1
0
        public List <AvailableMove> GetMoves() //Show valid selected piece moves
        {
            List <AvailableMove> newMoves = new List <AvailableMove>();

            CPClass chessPiece = chessBoardNodeArray[selectedX, selectedY].chessPiece;

            chessPiece.GetAvailableMoves(chessBoardNodeArray, out newMoves);

            return(newMoves);
        }