I worked on this game as part of a Codecademy challenge project.
This an interactive game written in JavaScript
and running in Node.js
using the terminal.
The scenario is that the player (*) has lost their hat (^) in a field (░) full of holes (O), and they must navigate back to it without falling down one of the holes or stepping outside of the field.
From visual studio code, you'll need to open the internal terminal.
In your terminal, make sure you are on the game directory. You may change the working directory with the cwd
command.
Type in your terminal node main.js
to display the game interface in the terminal.
- You are * and your hat is ^.
- Avoid the holes (O) and find your hat!
- Don't go out of bounds or you may lose!
- Use the u, d, l, and r keys to navigate the field.
- u = up, d = down, l = left, r = right.
- Good luck!