Optimal path generated for square cells
This commit is contained in:
4
ConsoleApp/IPathPlanner.cs
Normal file
4
ConsoleApp/IPathPlanner.cs
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
$HEADER$namespace $NAMESPACE$
|
||||||
|
{
|
||||||
|
public interface $INTERFACE$ {$END$}
|
||||||
|
}
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
using System;
|
|
||||||
|
|
||||||
namespace ConsoleApp.Maps
|
|
||||||
{
|
|
||||||
public class Direction
|
|
||||||
{
|
|
||||||
public static Tuple<int, int> Forward => _forward;
|
|
||||||
public static Tuple<int, int> Reverse => _reverse;
|
|
||||||
|
|
||||||
|
|
||||||
private static Tuple<int,int> _forward = new Tuple<int, int>(1, 0);
|
|
||||||
private static Tuple<int,int> _reverse = new Tuple<int, int>(-1, 0);
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
7
ConsoleApp/Maps/GlobalDirection.cs
Normal file
7
ConsoleApp/Maps/GlobalDirection.cs
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
namespace ConsoleApp.Maps
|
||||||
|
{
|
||||||
|
public enum Direction
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
4
ConsoleApp/PathPlanner.cs
Normal file
4
ConsoleApp/PathPlanner.cs
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
$HEADER$namespace $NAMESPACE$
|
||||||
|
{
|
||||||
|
public class $CLASS$ {$END$}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user