예제 #1
0
        public bool IsMovementAvailable(IChessPiece piece, int x, int y)
        {
            foreach (ChessTile posibleOption in piece.getAvailablePositions())
            {
                if (posibleOption.X == x && posibleOption.Y == y)
                {
                    return(true);
                }
            }

            return(false);
        }