Newer
Older
Labyrinth / src / NavigationEndpoint.ts
import {
    Direction,
    MazeTile,
} from "./MazeMap";

export function startGame(): MazeTile
{
    const StartingPoint = new MazeTile("start");
    StartingPoint.paths.push(Direction.right);
    return StartingPoint;
}

export function navigate(currentPosition:string, direction:Direction): MazeTile
{
    const newPosition = new MazeTile("");
    newPosition.paths.push(Direction.left);
    return newPosition;
}