Beispiel #1
0
        public bool CanPerformMove(BoardMove move)
        {
            IPiece pickedPiece = Board.GetPiece(move.Current);

            if (pickedPiece != null && pickedPiece.Color == CurrentPlayerColor)
            {
                return(pickedPiece.GetMoveTo(move.Destination) != null);
            }
            return(false);
        }