Example #1
0
        public bool UpdateShip(Ship BS)
        {
            if (BS == null)
                return false;

            int[,] locs = BS.GetPositions();
            for (int r = 0; r < BS.GetSize(); r++)
            {
                if (board[locs[r, 0], locs[r, 1]] == 1)
                {
                    return false;
                }
            }
            return true;
        }