-
Welcome to the Pokemon Battle Game. This is a simple console-based game where you can choose your starting Pokemon and engage in a battle with another Pokemon.
-
In this game, you can choose with wich attackskill you want your Pokemon to attack opponent Pokemon. The goal is to defeat your opponent by reducing their health to zero while managing your magic points.
-
Clone the repository:
git clone https://github.com/your-username/pokemon-battle-game.git cd pokemon-battle-game
-
Install Dependencies:
npm install
-
Run the Game:
npm start
- To start the game, run the following command:- node your-file-name.js
- Two playable Pokemon: Pikachu and Bulbasaur.
- Attack skills with different damage and magic points.
- You can teach your Pokemon attack skills.
- Available attack skills are "Lightning" and "Poison Seed".
- Turn-based battle system.
- Health and magic points management.
- Informative console output with colorful text (using Chalk library).
- Game abort option.
- When prompted, enter your name to start the game.
- Choose your starting Pokemon (Pikachu or Bulbasaur) by entering the corresponding letter (A or B).
- Each Pokemon starts with a set amount of health and magic points.
- Attack skills require a specific amount of magic points to use.
- You can choose between two attack skills: "Lightning" and "Poison Seed."
- A Pokemon wins the battle by reducing its opponent's health to zero.
- The game continues until one of the Pokemon is defeated.
- The winner of the battle is announced at the end.
Chalk library for colorful console output: https://www.npmjs.com/package/chalk
Synchronous Readline for interactively running to have a conversation with the user: https://www.npmjs.com/package/readline-sync
- Feel free to contribute to the improvement of this Pokemon Battle Game! Fork the repository, make your changes, and submit a pull request.
- The version of the Pokemon was created by [Hetal]