This is my interpretation on how to solve MAQE Bot challenge from MAQE challenge.
The goal of this bot is to return X
, Y
, and Direction
.
Walking command can only be these followings:
Command | Explanation |
---|---|
W | Walk forward to that particular direction, step must be follow by this command |
L | Turn left |
R | Turn right |
RW10RW10
with the given input, what is answer of those steps?
Key | Value |
---|---|
X | X-axis |
Y | Y-axis |
Direction | North, East, South, West |
{
X: 10,
Y: -10,
Direction: 'South',
}
yarn global remove @thestrayed/maqebot
-
Clone project
-
Install project's dependencies
yarn
-
Build project
yarn build
-
Install to npm global locally
-
Start the CLI
yarn dev
-
Build project
yarn build
-
Running follow command to execute test
yarn test