Done for the night

Need to change planning algo for square to go right to left.
This commit is contained in:
2020-12-15 00:09:29 -07:00
parent 5bb82f7579
commit 257aaa331f
13 changed files with 119 additions and 67 deletions

View File

@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using ConsoleApp.Maps;
using ConsoleApp.PathPlanners;
namespace ConsoleApp
{
@@ -27,8 +28,8 @@ namespace ConsoleApp
public void Run()
{
SquareSimulation();
// var hexTask = Task.Run(() => HexSimulation());
//SquareSimulation();
HexSimulation();
// while(!squareTask.IsCompleted && !hexTask.IsCompleted){Thread.Sleep(500);}
}
@@ -37,6 +38,7 @@ namespace ConsoleApp
{
var hexMap = (HexMap)_mapFactory.Maps["HexMap"];
_vehicle.CurrentHexCell = hexMap.StartingCell;
var optimalPath = _pathPlanner.GenerateOptimalHexPath(hexMap, _vehicle);
}