/tamagotchi

Primary LanguageJavaScript

Tamagotchi

Tamagotchi is a handheld digital pet, created in Japan by Akihiro Yokoi of WiZ and Aki Maita of Bandai. It was released by Bandai on November 23, 1996 in Japan. 02.10.2020

Developed by: Jose Amesquita

Description

As soon as Tamagotchi hatches, it will beep at you for attention. This is where the health meter comes in handy. You can determine the mood, health and behavior of Tomagotchi with the health meter. Tamagotchi will need to be fed and played with soon after it hatches. In order to start Tamagotchi on a good growth path, you must take good care of Tamagotchi right from the start.

  • FEED: Press A button until knife and fork icon is highlighted, then press B. Select either Meal or Snack by pressing the B button to feed Tamagotchi. Be careful not to over feed Tamagotchi; if you do it will refuse to eat.

  • PLAY: Press A button until the bat and ball icon is highlighted, then press B button to begin the game. The object is to guess which way Tamagotchi will turn. To choose left, press the A button, to choose right, press the B button. If you choose the correct direction, Tamagotchi will be happy. There are 5 chances in each game to match Tamagotchi; the more you match, the happier Tamagotchi will be. To stop the game press the C button. After playing, check the happiness meter to see if it went up or down.

  • HAPPY METER: Check Tamagotchi's health, by pressing the A button until the Health Meter icon is highlighted, then press B button to check Tamagotchi's age/weight, discipline, hunger and happiness. After you have checked all the screens to see if Tamagotchi needs anything, press C to return to the main screen. You should also check this screen if Tamagotchi beeps at you and the "attention" icon is highlighted.

Setup/Installation Requirements

  1. visit https://github.com/joseamesquita/tamagotchi.git
  2. click the green button: Clone or download
  3. select copy and open terminal from your desktop
  4. on terminal browse to your desktop: cd Desktop
  5. type: 'git clone https://github.com/joseamesquita/tamagotchi.git'
  6. type: 'code .'
  7. to run the application type: 'open index.html' within the tamagotchi folder

Specs

  • Happiness should deplete by -10 units/sec.

    • Input: After 1 second upon initialization.
    • Output: Happiness is (90);
  • Hunger should deplete by -10 units/sec.

    • Input: After 1 second upon initialization.
    • Output: Hunger is (90);
  • Hunger should deplete by -5 units/3 secs, and Happiness increases by +5/3 secs as the Tamagotchi plays.

    • Input: After 1 second upon "play".
    • Output: Hunger is (85); Happiness increments to 100 max.
  • Happiness maximum is 100

    • Input: Click; happiness, sleep, and hunger do not go over 100.
    • Output: Maximum is 100.
  • User hits button to play with Tamagotchi

    • Input: Click. Tamagotchi plays for 3 seconds.
    • Output: Increment Happiness by +5/3 seconds.
  • Pet Tamagotchi

    • Input: Upon button press, relenish happiness by +5/ 3 seconds.
    • Output: Happiness increments +5/3 seconds.

Known Bugs

This application is under-developed and is currently improving.

Support and contact details

If you have any questions, collaborate on a project email, or grab a cup of coffee please email me @ joseamesquita11@gmail.com.

Technologies Used

  • JavaScript & JQuery
  • form inputs
  • branching
  • Git
  • Looping & Arrays
  • ES6 featues including classes, let and const
  • Testing: Jest
  • Webpack: lint, bundle, and process code
  • Dependencies are managed with npm

License

This is licensed by MIT.

Copyright (c) 2020 Jose Amesquita