Giter VIP home page Giter VIP logo

pokemon-game's Introduction

Pokemon Fight Game in the Terminal

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.

Installation

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.

How-to:

  1. Type node pokemon.js in the terminal to start a pokemon fight.
  2. 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.

logo

  1. When you've picked your pokemon, you'll see it's stats displayed.
  2. When its your turn to attack, simply type in the attack you want to use.
  3. 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.
  4. 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.
  5. First player to get the other to 0 or less health wins!!
  6. At the end of the game, the Pikachu of the winning player's color declares the winner.

*                    *
*  *  * WINNER *  *  *
*                    *
****************
     ___________      
    '._==_==_=_."-._ 
     .\\:      /    '.
     | (o)__(o)    |  
      \\   ..   /    
       '------\'  ` 

pokemon-game's People

Contributors

sbrycbc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.