Skip to content

An interactive terminal game in JavaScript and NodeJS, The scenario is that the player has lost their hat in a field full of holes, and they must navigate back to it without falling down one of the holes or stepping outside of the field.

Notifications You must be signed in to change notification settings

ShiqiHe000/Find_your_hat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaScript Interactive Game: Find Your Hat

An interactive terminal game in JavaScript and NodeJS. The scenario is that the player has lost their hat in a field full of holes, and they must navigate back to it without falling down one of the holes or stepping outside of the field.

Introduction

You start at * position, your goal is to find your hat ^. You can move up, down, left and right. But be careful, you must not letting yourself dropping in to a hole (o).

Setup

  • JavaScript
  • Node.js
  • Node modules. Two helpful one:

Play the Game

In the terminal, type:

node main.js

Then follows the prompts and enjoy the game!

Try It Online with Gitpod!

Click the icon bellow, it will bring you to a cloud based Dev environment.

Open in Gitpod

Run the code in the terminal:

node main.js

Enjoy!

About

An interactive terminal game in JavaScript and NodeJS, The scenario is that the player has lost their hat in a field full of holes, and they must navigate back to it without falling down one of the holes or stepping outside of the field.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published