Loading repository data…
Loading repository data…
elhadjx / repository
A simple command-line text-basedgame built in JavaScript, where the player must navigate a field of holes in order to find their lost hat.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
A simple command-line text-basedgame built in JavaScript, where the player must navigate a field of holes in order to find their lost hat.

O: Hole░: Empty field^: Hidden hat*: Player's pathThe field is generated with a 2D array of characters. The field dimensions and the percentage of holes can be adjusted. The game also has a "hard mode" option that increases the number of holes that are added to the field each time the player moves.
To run the game, you will need to have Node.js and npm (node package manager) installed on your computer.
git clone https://github.com/elhadjx/findyourhat.git
cd findyourhat
npm i
node index.js
You can customize the game by adjusting the parameters passed to the generateField function in the index.js file.
Feel free to contribute and submit pull requests to improve the game.