I put this underneath bugs because the code is exactly the same as the course answer page. Whenever i try to beat the level, i get the error, “TypeError: game.setGameState is not a function.”
Here is all of the code, any information would be greatly appreciated.
try changing setGameState to setGoalState. You sure this is the answer given by Code Combat? (If it’s written by your teacher it might be a typo). Also did u hand-copy this or did u copy and paste it?