This webpage allows users to interact with a virtual pet tamagotchi. Different events will occur based on the passage of time using asynchronous code.
- Clone this repository from GitHub.
- Open the downloaded directory in a text editor of your choice. (VSCode, Atom, etc.)
- Run npm install in your terminal to download the necessary dependencies, plugins, and modules.
- The command npm run start will build and open the compiled code in a browser of your choice using a local host.
There are no known bugs at the time of this update.
Have a bug or an issue with this application? Open a new issue here on GitHub.
- HTML
- CSS with Bootstrap Framework
- Git and GitHub
- JavaScript with jQuery Library
- Webpack with Babel, ESLint, and Node Package Manager
- Jest
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!” |
This software is licensed under the MIT license.
Copyright (c) 2020 Jessica Hvozdovich and Nathan Watkins-Hoagland