An open API service indexing awesome lists of open source software.

https://github.com/ricopella/zombie-challenge

A command line node app zombie fighting game.
https://github.com/ricopella/zombie-challenge

commandline-game inquirer javascript nodejs

Last synced: 2 months ago
JSON representation

A command line node app zombie fighting game.

Awesome Lists containing this project

README

        

# 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:
* [Node.JS](https://www.npmjs.com/)
* [Inquirer](https://www.npmjs.com/package/inquirer)
* [Colors](https://www.npmjs.com/package/colors)

### Prerequisites

You will need [Node.JS](https://www.npmjs.com/) and [NPM](https://nodejs.org/en/) installed on your system.

# Commands to run application

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

# Demo

![Demo](https://media.giphy.com/media/1DO0CyhbfER2w/giphy.gif)