This is a practice challange from Codecademy.com. It is a terminal game, a user(represented by *) needs to find the hat(represented by ^) while avoiding falling in holes(represented by O).
git clone the repository, then run npm install
- run
node main.js
to start the application - When the game starts, the player starts from a random location
- Press 'u' to move the player's path up; press 'd' the path will move down; press 'l' the path moves left; press 'r' the path moves right.
- When the player is outside of the field boundary, fell in a hole, the game ends, the player loses.
- When the player finds the hat, the game ends, the player wins.
Here's a demo video of the project
This project is under MIT license.
Contact me via: ruxinqu@gmail.com if you have questions.