Skip to content

ricopella/zombie-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zombie Challenge

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.

Installing / Getting Started

  1. Clone project:

     `git clone https://github.com/ricopella/zombie-challenge`
    
  2. Inside the root directory of the cloned filed, run the following command in your terminal/bash:

     `npm install`
    

Development

Built With

Packages used:

Prerequisites

You will need Node.JS and NPM installed on your system.

Commands to run application

  1.  `node zombiegame.js`
    
    • Game starts
    • Guess a number between 1 - 5

Demo

Demo

About

A command line node app zombie fighting game.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published