The classical game of tomogotchi
- It is a virtual pet game. The game start when a pet is created.
- The pet goes through infant --> teen --> adult --> old --> heaven
- Everyday it needs play time and feeding time
- It follows daily routine of Sitting idle --> Pooping --> Sleeping
- Enjoy
- node
- yarn/ npm
yarn install
yarn run start
tomogotchi
prompt appearsstart
pet <name of pet>
play
feed
- Auto complete feature is on
- Type help anytime to see available commands
exit
To exit the app
This is like starting the clock of life. Pet cannot be created without starting the clock.
Stop the game
You can pause the game with it when it gets too hot.
Resume the game if it is paused
pet <name>
Creates the pet with that name
Play with pet. Increases happiness. Increases hunger. Cannot play when sleeping
Feed the pet. Increases happiness. Decreases hunger. Cannot feed when sleeping
Check the vitals (hunger, happiness) of the pet
- Vorpal is used for cli farmework
- Architecture is such that states, action, etc. can be extended easily
- Everything is as much decoupled as possible.
- Can be easily extended to multiple pets at the same time.
- Can be extended to become a RESTful app by swapping the ui.js
- All configurations are in config.js
yarn run test
Warning: In unit test, there is a pending promise problem. It has to be resolved. But testcases run fine.