Example #1
0
    public bool CanPlaceItem(BoardItem item, Index index)
    {
        foreach (var temp in _items)
        {
            foreach (var cur in temp.GetIndexes())
            {
                foreach (var ind in item.GetIndexes())
                {
                    if (cur == ind)
                    {
                        return(false);
                    }
                }
            }
        }

        return(true);
    }