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.
- Host: GitHub
- URL: https://github.com/ricopella/zombie-challenge
- Owner: ricopella
- Created: 2017-07-08T16:27:20.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-09T05:38:50.000Z (almost 8 years ago)
- Last Synced: 2025-01-19T23:44:02.382Z (4 months ago)
- Topics: commandline-game, inquirer, javascript, nodejs
- Language: JavaScript
- Homepage:
- Size: 1.27 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
