public void Simulate() { List<Coordinate> Locations = retrieveLocations(); int min = int.MaxValue; int bestX = -1, bestY = -1; foreach (Coordinate currPos in Locations) { string[,] tempMap = new string[globalMap.GetLength(0), globalMap.GetLength(1)]; matrixCopy(globalMap, tempMap); int result = processData(currPos, tempMap); if (result < min) { min = result; bestX = currPos.X; bestY = currPos.Y; } } MessageBox.Show(bestX + " " + bestY + " " + min); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)