Command line maze game using DFS in combination of 2D arrays. Written in JavaScript in a NodeJS enviroment.
Install dependencies from npm
npm install keypress
npm install cli-color
- No need for a desktop to play, only a command line. (Great for bored server administrators)
- 'Black out' - Run down every path in the maze to win (by default right now)
- Leaves a red trail to show you where you have been.
- Add game menu
- Add more game types (Lights out, Classical point A to point B, invisible maze)
- Option to save current maze state to a file (bitmap).
- Option to load previously saved maze state from a file (bitmap).
- Option to toggle red trail.
- Command line arguments.
node maze.js
To move around use keys WASD (W up, A left, S down, D right)
To exit the program press ENTER (return);
https://i.imgur.com/ABl6LLt.png
I am unsure if my code is 'good' at all, I could probably optimize a ton of things within the code to make it faster and smaller file size. Constructive criticism appreciated
GNU GPL v3 https://choosealicense.com/licenses/gpl-3.0/