In this game, you and a zombie will each be given a certain amount of health. (Perhaps: You 70, Zombie 50).
For each round, you will be asked to guess a random number between 1 and 5. If your guess matches the random number of the Zombie -- you inflict a random amount of damage between 1 and 5. If your guess does not match the random number of the Zombie -- the Zombie inflicts a random amount of damage to you between 1 and 5. Each round the zombie is given a new random number and you must guess again.
The game ends when you or the zombie gets to 0 health.
-
Clone project:
`git clone https://github.com/ricopella/zombie-challenge`
-
Inside the root directory of the cloned filed, run the following command in your terminal/bash:
`npm install`
Packages used:
You will need Node.JS and NPM installed on your system.
-
`node zombiegame.js`
- Game starts
- Guess a number between 1 - 5