I think its done

This commit is contained in:
2020-12-16 17:19:25 -07:00
parent a792de99f3
commit e335ce3c68
34 changed files with 5679 additions and 927 deletions

View File

@@ -24,6 +24,6 @@ namespace ConsoleApp.Sim
public static List<Cell> GetCoveredCells(
ISquareMap squareMap,
Cell centerCell,
int detectorRadius) => squareMap.GetRange(centerCell, detectorRadius);
int detectorRadius) => squareMap.GetRange(centerCell, detectorRadius * 2 - detectorRadius%2);
}
}

View File

@@ -10,6 +10,6 @@ namespace ConsoleApp.Sim
int TurnRadius { get; }
int DetectorRadius { get;}
Coordinate2D CurrentHexCell { get; set; }
ICell CurrentSquareCell { get; set; }
Cell CurrentSquareCell { get; set; }
}
}

View File

@@ -11,7 +11,7 @@ namespace ConsoleApp.Sim
public int TurnRadius { get; }
public int DetectorRadius { get;}
public HexCore.Coordinate2D CurrentHexCell { get; set; }
public ICell CurrentSquareCell { get; set; }
public Cell CurrentSquareCell { get; set; }

View File

@@ -1,5 +1,5 @@
{
"Length": 1,
"Width": 1,
"DetectorRadius": 1
"DetectorRadius": 2
}