Question: I am running below javascript, but the bumper ( the object ) does not move / initiate at all and there is no colour lines.
I am running below javascript, but the bumper the object does not moveinitiate at all and there is no colour lines.
function setTailColorcolor
Implementation to set the tail color eg change the color of a variable or object property
function moveToTilex y
Implementation to move Bumper to the specified tile
function exploreAndMapMaze
setTailColorlightblue;
move;
turnLeft;
move;
returnToStart;
function returnToStart
setTailColorred;
turnLeft;
turnLeft;
move;
raceToMiddle;
function raceToMiddle
setTailColorgreen;
let goalTileX ;
let goalTileY ;
if goalTileX getCurrentTileX
turnRight;
move;
else if goalTileX getCurrentTileX
turnLeft;
move;
if goalTileY getCurrentTileY
turnDown;
move;
else if goalTileY getCurrentTileY
turnUp;
move;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
