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.
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
).
- JavaScript
- Node.js
- Node modules. Two helpful one:
- prompt-synic: simplifies the I/O operations.
- terminal-kit: decorates your terminal color & styles.
In the terminal, type:
node main.js
Then follows the prompts and enjoy the game!
Click the icon bellow, it will bring you to a cloud based Dev environment.
Run the code in the terminal:
node main.js
Enjoy!