项目作者: ricopella

项目描述 :
A command line node app zombie fighting game.
高级语言: JavaScript
项目地址: git://github.com/ricopella/zombie-challenge.git
创建时间: 2017-07-08T16:27:20Z
项目社区:https://github.com/ricopella/zombie-challenge

开源协议:

下载


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:

    1. `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:

    1. `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