https://github.com/suptarr/findyourhat
An interactive terminal game that the player has lost their hat in a field full of holes, and they must navigate back to it.
https://github.com/suptarr/findyourhat
javascript
Last synced: 8 days ago
JSON representation
An interactive terminal game that the player has lost their hat in a field full of holes, and they must navigate back to it.
- Host: GitHub
- URL: https://github.com/suptarr/findyourhat
- Owner: SupTarr
- Created: 2022-07-07T03:22:44.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-09-18T11:22:58.000Z (almost 3 years ago)
- Last Synced: 2025-10-14T19:33:49.820Z (10 months ago)
- Topics: javascript
- Language: JavaScript
- Homepage: https://replit.com/@SupTarr/findYourHat
- Size: 85.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Find Your Hat
## About The Project
In this project, you’ll be building an *interactive terminal game*. 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.
### Index of Default Map
|**R/C**| **0** | **1** | **2** |
|:-----:|:------:|:------:|:------:|
| **0** | 00 | 01 | 02 |
| **1** | 10 | 11 | 12 |
| **2** | 20 | 21 | 22 |
### Default Map For Testing
|**R/C**| **0** | **1** | **2** |
|:-----:|:------:|:------:|:------:|
| **0** | * | ░ | O |
| **1** | ░ | O | ░ |
| **2** | ░ | ^ | ░ |
* ``*`` = Player
* ``░`` = Path
* ``^`` = Hat
## Technologies
This project was created with:
* JavaScript Classes
* JavaScript Conditional Statements
## Installation
### Run Locally
Clone the project
```sh
git clone https://github.com/SupTarr/findYourHat.git
```
Play on default map
```sh
node mapDefault.js
```
Play on generated Map
```sh
node mapGenerate.js
```