/tamagotchi

Primary LanguageJavaScript

Tamagotchi

Epicodus Project, Tamagotchi April 20, 2020

By Jessica Hvozdovich and Nathan Watkins-Hoagland

Description

This webpage allows users to interact with a virtual pet tamagotchi. Different events will occur based on the passage of time using asynchronous code.

Setup/Installation Requirements

  1. Clone this repository from GitHub.
  2. Open the downloaded directory in a text editor of your choice. (VSCode, Atom, etc.)
  3. Run npm install in your terminal to download the necessary dependencies, plugins, and modules.
  4. The command npm run start will build and open the compiled code in a browser of your choice using a local host.

Known Bugs

There are no known bugs at the time of this update.

Support and contact details

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

Technologies Used

  • HTML
  • CSS with Bootstrap Framework
  • Git and GitHub
  • JavaScript with jQuery Library
  • Webpack with Babel, ESLint, and Node Package Manager
  • Jest

Specs

Spec Input Output
User can name a pet User Input:”Name: Jeff” Output: “This is Jeff”
User can acquire food items User Input:”Pick up: Grapes” Output: “Inventory: Grapes”
User can acquire toy items User Input:”Pick up: Ball” Output: “Inventory:Ball”
Pet gets hungry User Input:”Click-Hunger Status” Output: “Full”
Pet can be fed with food items User Input:”Click-Feed Pet, Click-Grapes” Output: “Hunger status-Full”
Pet wants to play User Input:”Click-Emotional Status” Output: “Bored”
User can play with pet using toy items User Input:”Click-Play, Click-Ball” Output: “Happy”
Pet poops User Input:”Click-clean poop” Output: “Stress Decreases”
Pet sleeps User Input:”Click-play" Output: “Can't play-pet is sleeping!”
Turn lights on and off User Input:”Click-light” Output: “Turns light off.”
Pet gets sick User Input:”Click-medicine” Output: “Pet is healthy again!”
Pet progresses through four life stages based on care User Input:”Wait 30 minutes” Output: “Grow from baby to child!”

License

This software is licensed under the MIT license.

Copyright (c) 2020 Jessica Hvozdovich and Nathan Watkins-Hoagland