/hungry-bears-game

Did You Get Eaten? Continue to build out the logic from the game in this weekend’s lessons. Add levels, difficulty settings and different items. In addition to the bear’s food level, consider adding other levels such as a mood level, sleep level, etc.

Primary LanguageJavaScript

Hungry Bear

An application to practice using setInterval(). , Feb 2020

By Benjamin Thom and Hristo Dzhambov

Description

you need to feed the bear regularly or the bear will try to eat you. Specifically, the bear needs to be fed every ten seconds or you'll get eaten. (It really is very hungry!)

Project Specifications

Behavior Input Output
Level 1:
User must feed the bear must be fed every 10 seconds, is not user will be eaten User feeds bear every 10 seconds User is not eaten
User does not feed bear every within 10 seconds User is eaten
Bear should have a name and a food level of 10 when it is created NA NA
Bear should have a food level of 7 after 3001 milliseconds NA NA
Level 2:
User must feed the bear must be fed every 7 seconds, is not user will be eaten User feeds bear every 7 seconds User is not eaten
User does not feed bear every within 7 seconds User is eaten
Bear should have a name and a food level of 7 when it is created NA NA
Bear should have a food level of 4 after 3001 milliseconds NA NA

Setup/Installation Requirements

In Terminal:

  • Navigate to where you want this application to be saved, i.e.: cd desktop
  • Clone the file from GitHub with HTTPS git clone https://github.com/benjamin-thompdx/Epicodus_hungry-bear.git
  • Open file in your preferred text editor
  • On Mac: open -a {your text editor} Epicodus_hungry-bear
  • On Windows: ```Epicodus_hungry-bear``

Download Manually:

  • Navigate to https://github.com/benjamin-thompdx/Epicodus_hungry-bear.
  • Click green "Clone or Download" button.
  • Click "Download ZIP".
  • Click downloaded file to unzip.
  • Open folder called "Epicodus_hungry-bear".
  • Right click "index.html" and select your preferred browser or text editor.

Note For Editors:

  • Once cloned/downloaded, to run and make changes, in the terminal simply run $ npm install to download necessary dependencies. Then run $ npm run build to create your own dist folder with a bundle.js file.

Known Bugs

No known bugs at this time.

Support and contact details

Have a bug or an issue with this application? Open a new issue here on GitHub.

Technologies Used

  • Javascript
  • jQuery
  • Webpack
  • Node.js
  • Jest

License

MIT

Copyright (c) 2020 Benjamin Thom and Hristo Dzhambov