예제 #1
0
파일: Form1.cs 프로젝트: simonuks221/Chess
        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);
        }