예제 #1
0
        private bool IsValidNextPoint(PointInMatrix point)
        {
            if (point.Row >= 0 &&
                point.Col >= 0 &&
                point.Row < this.labyrinth.GetLength(0) &&
                point.Col < this.labyrinth.GetLength(1))
            {
                if (this.labyrinth[point.Row, point.Col] == "0")
                {
                    return true;
                }
            }

            return false;
        }
예제 #2
0
파일: Buyer.cs 프로젝트: paxan102/Diplom
 void SetupPoint(int i, int j, PointInMatrix point)
 {
     point.i     = i;
     point.j     = j;
     point.point = points[i][j];
 }