Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ai-balushi/project_adventure-game
Fuel Battle Game is a simple command-line game where you, as a player, engage in a battle of fuel against various opponents. The game is developed in TypeScript and uses inquirer for interactive command-line prompts.
https://github.com/ai-balushi/project_adventure-game
adventure-game
Last synced: about 1 month ago
JSON representation
Fuel Battle Game is a simple command-line game where you, as a player, engage in a battle of fuel against various opponents. The game is developed in TypeScript and uses inquirer for interactive command-line prompts.
- Host: GitHub
- URL: https://github.com/ai-balushi/project_adventure-game
- Owner: AI-Balushi
- Created: 2024-05-03T05:40:02.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-03T05:40:16.000Z (8 months ago)
- Last Synced: 2024-05-03T15:35:16.632Z (8 months ago)
- Topics: adventure-game
- Language: JavaScript
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Fuel Battle Game
Fuel Battle Game is a simple command-line game where you, as a player, engage in a battle of fuel against various opponents. The game is developed in TypeScript and uses inquirer for interactive command-line prompts.
## How to Play
1. **Start the Game**: Run the game using the command `npx @abdul_waheed/fuel-battle-game`.
2. **Enter Your Name**: Enter your name when prompted.
3. **Select Your Opponent**: Choose an opponent to battle against (Skeleton, Assassin, or Zombie).
4. **Battle Begins**: The battle begins with each turn allowing you to choose from three options:
- **Attack**: Attack your opponent and reduce their fuel. You may win or lose based on a random outcome.
- **Drink Potion**: Replenish your fuel by drinking a health potion.
- **Run for your life..**: Choose to flee from the battle. Be cautious, as fleeing might lead to defeat.
5. **Win or Lose**: Keep battling until either you or your opponent runs out of fuel. If your fuel drops to zero, you lose the game. If your opponent's fuel drops to zero, you win!## Technologies Used
- TypeScript
- Inquirer
- Chalk## Installation
To install the game locally, use the following command:
```bash
npm install -g @abdul_waheed/fuel-battle-game
```## Usage
To start the game, run the following command:
```bash
npx @abdul_waheed/fuel-battle-game
```