/game-find-your-hat

This is a terminal game in which the user, represented by *, needs to find the hat, represented by ^, while avoiding falling into holes, represented by O.

Primary LanguageJavaScript

game-find-your-hat

badge MIT license

Description

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).

Table of Contents

Installation

git clone the repository, then run npm install

Usage

  • 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

project demovideo

License

This project is under MIT license.

Technologies Used

Question

Contact me via: ruxinqu@gmail.com if you have questions.