A direction can be LEFT or RIGHT, or if you're at the end of a hallway, it can be FRONT.
LEFT
RIGHT
FRONT
You can refer to these directions as Direction.LEFT or Direction.RIGHT, for example, but it may be easier to do this if you're using them a lot:
Direction.LEFT
Direction.RIGHT
const { LEFT, RIGHT, FRONT } = Direction; console.log(LEFT); console.log(RIGHT);
Generated using TypeDoc
A direction can be
LEFT
orRIGHT
, or if you're at the end of a hallway, it can beFRONT
.You can refer to these directions as
Direction.LEFT
orDirection.RIGHT
, for example, but it may be easier to do this if you're using them a lot:const { LEFT, RIGHT, FRONT } = Direction; console.log(LEFT); console.log(RIGHT);