Stuff and Code


Jack of all trades, Master of some. This is a place to write down thoughts about projects I work on.


JavaScript Maze

-JavaScript Maze-

This was a tutorial exercise I did at the beginning of my Amex internship in order to teach myself JavaScript. Since all of the tools I was going to be using during the internship for web development are JS-based starting with JS itself seemed to make sense. The program isn’t terribly complicated but helped me to learn JS syntax and get used to function callbacks and other code structures that I hadn’t used before in OOPs like Java or C++.

To start the game the player places their avatar in the maze:

RobotMaze1


The player then navigates the maze using the provided interface. The player can ask the program if it is a legal action to move forward. In the case pictured below it is, so the page responds “Yes!”

RobotMaze2


When the end of the maze is reached victory is achieved!

RobotMaze3


The code and instructions for playing can be viewed here.