This is a simple terminal-playable Pokemon game with JavaScript basics. I completed the project by extending the original mission requirements to make it more interactive and fun.The game involves two players choosing a trainer each and taking turns to make moves to try to defeat each other's Pokemon. Players select their moves hitting key combinations, and the results are displayed on the screen.
To use this game, you will need to have Node.js and npm installed on your machine. You can download and install both from their official websites.
- Type node pokemon.js in the terminal to start a pokemon fight.
- You will see two signs showing the Pokemon and their skills. Each player can choose one when asked. Just type the name into the terminal.
- When you've picked your pokemon, you'll see it's stats displayed.
- When its your turn to attack, simply type in the attack you want to use.
- Each Pokemon's attacks costs a certain amount of mana. If you run out of mana, you can't attack and will have to skip a turn by typing skip. Skipping will replenish some of your mana. hint: this can also be a tactic to use a stronger attack in the next turn.
- Each pokemon also has defense points. e.g. Jigglypuff's defense is 20. If its opponent has an attack of 45, Jigglypuff will only take 25 damage. If the attack strength is less than the defense points, no damage will be done.
- First player to get the other to 0 or less health wins!!
- At the end of the game, the Pikachu of the winning player's color declares the winner.
* *
* * * WINNER * * *
* *
****************
___________
'._==_==_=_."-._
.\\: / '.
| (o)__(o) |
\\ .. /
'------\' `